果酱官网模块化
This commit is contained in:
parent
6a4011ad4a
commit
aa8ca0d830
@ -0,0 +1,110 @@
|
||||
package com.cpop.jambox.business.controller.backstage.website;
|
||||
|
||||
import com.cpop.core.base.R;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.cpop.jambox.business.entity.website.BusinessData;
|
||||
import com.cpop.jambox.business.service.BusinessDataService;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 业务数据表 控制层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "果酱模块化官网 业务数据表接口")
|
||||
@RequestMapping("/businessData")
|
||||
public class BusinessDataController {
|
||||
|
||||
@Autowired
|
||||
private BusinessDataService businessDataService;
|
||||
|
||||
/**
|
||||
* 添加果酱模块化官网 业务数据表。
|
||||
*
|
||||
* @param businessData 果酱模块化官网 业务数据表
|
||||
* @return {@code true} 添加成功,{@code false} 添加失败
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperation("保存果酱模块化官网 业务数据表")
|
||||
public R<Void> save(@RequestBody @ApiParam("果酱模块化官网 业务数据表") BusinessData businessData) {
|
||||
businessDataService.save(businessData);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键删除果酱模块化官网 业务数据表。
|
||||
*
|
||||
* @param id 主键
|
||||
* @return {@code true} 删除成功,{@code false} 删除失败
|
||||
*/
|
||||
@DeleteMapping("/remove/{id}")
|
||||
@ApiOperation("根据主键果酱模块化官网 业务数据表")
|
||||
public R<Void> remove(@PathVariable @ApiParam("果酱模块化官网 业务数据表主键") Serializable id) {
|
||||
businessDataService.removeById(id);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键更新果酱模块化官网 业务数据表。
|
||||
*
|
||||
* @param businessData 果酱模块化官网 业务数据表
|
||||
* @return {@code true} 更新成功,{@code false} 更新失败
|
||||
*/
|
||||
@PutMapping("/update")
|
||||
@ApiOperation("根据主键更新果酱模块化官网 业务数据表")
|
||||
public R<Void> update(@RequestBody @ApiParam("果酱模块化官网 业务数据表主键") BusinessData businessData) {
|
||||
businessDataService.updateById(businessData);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 业务数据表。
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询所有果酱模块化官网 业务数据表")
|
||||
public R<List<BusinessData>> list() {
|
||||
return R.ok(businessDataService.list());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据果酱模块化官网 业务数据表主键获取详细信息。
|
||||
*
|
||||
* @param id 果酱模块化官网 业务数据表主键
|
||||
* @return 果酱模块化官网 业务数据表详情
|
||||
*/
|
||||
@GetMapping("/getInfo/{id}")
|
||||
@ApiOperation("根据主键获取果酱模块化官网 业务数据表")
|
||||
public R<BusinessData> getInfo(@PathVariable @ApiParam("果酱模块化官网 业务数据表主键") Serializable id) {
|
||||
return R.ok(businessDataService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询果酱模块化官网 业务数据表。
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 分页对象
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperation("分页查询果酱模块化官网 业务数据表")
|
||||
public R<Page<BusinessData>> page(@ApiParam("分页信息") Page<BusinessData> page) {
|
||||
return R.ok(businessDataService.page(page));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
package com.cpop.jambox.business.controller.backstage.website;
|
||||
|
||||
import com.cpop.core.base.R;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.cpop.jambox.business.entity.website.BusinessIntro;
|
||||
import com.cpop.jambox.business.service.BusinessIntroService;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 业务介绍表 控制层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "果酱模块化官网 业务介绍表接口")
|
||||
@RequestMapping("/businessIntro")
|
||||
public class BusinessIntroController {
|
||||
|
||||
@Autowired
|
||||
private BusinessIntroService businessIntroService;
|
||||
|
||||
/**
|
||||
* 添加果酱模块化官网 业务介绍表。
|
||||
*
|
||||
* @param businessIntro 果酱模块化官网 业务介绍表
|
||||
* @return {@code true} 添加成功,{@code false} 添加失败
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperation("保存果酱模块化官网 业务介绍表")
|
||||
public R<Void> save(@RequestBody @ApiParam("果酱模块化官网 业务介绍表") BusinessIntro businessIntro) {
|
||||
businessIntroService.save(businessIntro);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键删除果酱模块化官网 业务介绍表。
|
||||
*
|
||||
* @param id 主键
|
||||
* @return {@code true} 删除成功,{@code false} 删除失败
|
||||
*/
|
||||
@DeleteMapping("/remove/{id}")
|
||||
@ApiOperation("根据主键果酱模块化官网 业务介绍表")
|
||||
public R<Void> remove(@PathVariable @ApiParam("果酱模块化官网 业务介绍表主键") Serializable id) {
|
||||
businessIntroService.removeById(id);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键更新果酱模块化官网 业务介绍表。
|
||||
*
|
||||
* @param businessIntro 果酱模块化官网 业务介绍表
|
||||
* @return {@code true} 更新成功,{@code false} 更新失败
|
||||
*/
|
||||
@PutMapping("/update")
|
||||
@ApiOperation("根据主键更新果酱模块化官网 业务介绍表")
|
||||
public R<Void> update(@RequestBody @ApiParam("果酱模块化官网 业务介绍表主键") BusinessIntro businessIntro) {
|
||||
businessIntroService.updateById(businessIntro);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 业务介绍表。
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询所有果酱模块化官网 业务介绍表")
|
||||
public R<List<BusinessIntro>> list() {
|
||||
return R.ok(businessIntroService.list());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据果酱模块化官网 业务介绍表主键获取详细信息。
|
||||
*
|
||||
* @param id 果酱模块化官网 业务介绍表主键
|
||||
* @return 果酱模块化官网 业务介绍表详情
|
||||
*/
|
||||
@GetMapping("/getInfo/{id}")
|
||||
@ApiOperation("根据主键获取果酱模块化官网 业务介绍表")
|
||||
public R<BusinessIntro> getInfo(@PathVariable @ApiParam("果酱模块化官网 业务介绍表主键") Serializable id) {
|
||||
return R.ok(businessIntroService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询果酱模块化官网 业务介绍表。
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 分页对象
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperation("分页查询果酱模块化官网 业务介绍表")
|
||||
public R<Page<BusinessIntro>> page(@ApiParam("分页信息") Page<BusinessIntro> page) {
|
||||
return R.ok(businessIntroService.page(page));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
package com.cpop.jambox.business.controller.backstage.website;
|
||||
|
||||
import com.cpop.core.base.R;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.cpop.jambox.business.entity.website.CompanyIntro;
|
||||
import com.cpop.jambox.business.service.CompanyIntroService;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 公司简介表 控制层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "果酱模块化官网 公司简介表接口")
|
||||
@RequestMapping("/companyIntro")
|
||||
public class CompanyIntroController {
|
||||
|
||||
@Autowired
|
||||
private CompanyIntroService companyIntroService;
|
||||
|
||||
/**
|
||||
* 添加果酱模块化官网 公司简介表。
|
||||
*
|
||||
* @param companyIntro 果酱模块化官网 公司简介表
|
||||
* @return {@code true} 添加成功,{@code false} 添加失败
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperation("保存果酱模块化官网 公司简介表")
|
||||
public R<Void> save(@RequestBody @ApiParam("果酱模块化官网 公司简介表") CompanyIntro companyIntro) {
|
||||
companyIntroService.save(companyIntro);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键删除果酱模块化官网 公司简介表。
|
||||
*
|
||||
* @param id 主键
|
||||
* @return {@code true} 删除成功,{@code false} 删除失败
|
||||
*/
|
||||
@DeleteMapping("/remove/{id}")
|
||||
@ApiOperation("根据主键果酱模块化官网 公司简介表")
|
||||
public R<Void> remove(@PathVariable @ApiParam("果酱模块化官网 公司简介表主键") Serializable id) {
|
||||
companyIntroService.removeById(id);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键更新果酱模块化官网 公司简介表。
|
||||
*
|
||||
* @param companyIntro 果酱模块化官网 公司简介表
|
||||
* @return {@code true} 更新成功,{@code false} 更新失败
|
||||
*/
|
||||
@PutMapping("/update")
|
||||
@ApiOperation("根据主键更新果酱模块化官网 公司简介表")
|
||||
public R<Void> update(@RequestBody @ApiParam("果酱模块化官网 公司简介表主键") CompanyIntro companyIntro) {
|
||||
companyIntroService.updateById(companyIntro);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 公司简介表。
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询所有果酱模块化官网 公司简介表")
|
||||
public R<List<CompanyIntro>> list() {
|
||||
return R.ok(companyIntroService.list());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据果酱模块化官网 公司简介表主键获取详细信息。
|
||||
*
|
||||
* @param id 果酱模块化官网 公司简介表主键
|
||||
* @return 果酱模块化官网 公司简介表详情
|
||||
*/
|
||||
@GetMapping("/getInfo/{id}")
|
||||
@ApiOperation("根据主键获取果酱模块化官网 公司简介表")
|
||||
public R<CompanyIntro> getInfo(@PathVariable @ApiParam("果酱模块化官网 公司简介表主键") Serializable id) {
|
||||
return R.ok(companyIntroService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询果酱模块化官网 公司简介表。
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 分页对象
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperation("分页查询果酱模块化官网 公司简介表")
|
||||
public R<Page<CompanyIntro>> page(@ApiParam("分页信息") Page<CompanyIntro> page) {
|
||||
return R.ok(companyIntroService.page(page));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,113 @@
|
||||
package com.cpop.jambox.business.controller.backstage.website;
|
||||
|
||||
import com.cpop.core.base.R;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.cpop.jambox.business.entity.website.Cooperation;
|
||||
import com.cpop.jambox.business.service.CooperationService;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 合作平台表 控制层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "果酱模块化官网 合作平台表接口")
|
||||
@RequestMapping("/cooperation")
|
||||
public class CooperationController {
|
||||
|
||||
@Autowired
|
||||
private CooperationService cooperationService;
|
||||
|
||||
/**
|
||||
* 添加果酱模块化官网 合作平台表。
|
||||
*
|
||||
* @param cooperation 果酱模块化官网 合作平台表
|
||||
* @return {@code true} 添加成功,{@code false} 添加失败
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperation("保存果酱模块化官网 合作平台表")
|
||||
public R<Void> save(@RequestBody @ApiParam("果酱模块化官网 合作平台表") Cooperation cooperation) {
|
||||
cooperationService.save(cooperation);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键删除果酱模块化官网 合作平台表。
|
||||
*
|
||||
* @param id 主键
|
||||
* @return {@code true} 删除成功,{@code false} 删除失败
|
||||
*/
|
||||
@DeleteMapping("/remove/{id}")
|
||||
@ApiOperation("根据主键果酱模块化官网 合作平台表")
|
||||
public R<Void> remove(@PathVariable @ApiParam("果酱模块化官网 合作平台表主键") Serializable id) {
|
||||
cooperationService.removeById(id);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键更新果酱模块化官网 合作平台表。
|
||||
*
|
||||
* @param cooperation 果酱模块化官网 合作平台表
|
||||
* @return {@code true} 更新成功,{@code false} 更新失败
|
||||
*/
|
||||
@PutMapping("/update")
|
||||
@ApiOperation("根据主键更新果酱模块化官网 合作平台表")
|
||||
public R<Void> update(@RequestBody @ApiParam("果酱模块化官网 合作平台表主键") Cooperation cooperation) {
|
||||
cooperationService.updateById(cooperation);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 合作平台表。
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询所有果酱模块化官网 合作平台表")
|
||||
public R<List<Cooperation>> list() {
|
||||
return R.ok(cooperationService.selectTypeNameList());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据果酱模块化官网 合作平台表主键获取详细信息。
|
||||
*
|
||||
* @param id 果酱模块化官网 合作平台表主键
|
||||
* @return 果酱模块化官网 合作平台表详情
|
||||
*/
|
||||
@GetMapping("/getInfo/{id}")
|
||||
@ApiOperation("根据主键获取果酱模块化官网 合作平台表")
|
||||
public R<Cooperation> getInfo(@PathVariable @ApiParam("果酱模块化官网 合作平台表主键") Serializable id) {
|
||||
return R.ok(cooperationService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询果酱模块化官网 合作平台表
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 15:42
|
||||
* @param: [typeId]
|
||||
* @return: com.cpop.core.base.R<com.mybatisflex.core.paginate.Page<com.cpop.jambox.business.entity.website.Cooperation>>
|
||||
**/
|
||||
@GetMapping("/page")
|
||||
@ApiOperation("分页查询果酱模块化官网 合作平台表")
|
||||
public R<Page<Cooperation>> page(@ApiParam("平台类型") String typeId) {
|
||||
Page<Cooperation> cooperationPage = cooperationService.getPage(typeId);
|
||||
return R.ok(cooperationPage);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,112 @@
|
||||
package com.cpop.jambox.business.controller.backstage.website;
|
||||
|
||||
import com.cpop.core.base.R;
|
||||
import com.cpop.jambox.business.vo.CooperationTypeVo;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.cpop.jambox.business.entity.website.CooperationType;
|
||||
import com.cpop.jambox.business.service.CooperationTypeService;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 合作类别表 控制层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "果酱模块化官网 合作类别表接口")
|
||||
@RequestMapping("/cooperationType")
|
||||
public class CooperationTypeController {
|
||||
|
||||
@Autowired
|
||||
private CooperationTypeService cooperationTypeService;
|
||||
|
||||
/**
|
||||
* 添加果酱模块化官网 合作类别表。
|
||||
*
|
||||
* @param cooperationType 果酱模块化官网 合作类别表
|
||||
* @return {@code true} 添加成功,{@code false} 添加失败
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperation("保存果酱模块化官网 合作类别表")
|
||||
public R<Void> save(@RequestBody @ApiParam("果酱模块化官网 合作类别表") CooperationType cooperationType) {
|
||||
cooperationTypeService.save(cooperationType);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键删除果酱模块化官网 合作类别表。
|
||||
*
|
||||
* @param id 主键
|
||||
* @return {@code true} 删除成功,{@code false} 删除失败
|
||||
*/
|
||||
@DeleteMapping("/remove/{id}")
|
||||
@ApiOperation("根据主键果酱模块化官网 合作类别表")
|
||||
public R<Void> remove(@PathVariable @ApiParam("果酱模块化官网 合作类别表主键") Serializable id) {
|
||||
cooperationTypeService.removeById(id);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键更新果酱模块化官网 合作类别表。
|
||||
*
|
||||
* @param cooperationType 果酱模块化官网 合作类别表
|
||||
* @return {@code true} 更新成功,{@code false} 更新失败
|
||||
*/
|
||||
@PutMapping("/update")
|
||||
@ApiOperation("根据主键更新果酱模块化官网 合作类别表")
|
||||
public R<Void> update(@RequestBody @ApiParam("果酱模块化官网 合作类别表主键") CooperationType cooperationType) {
|
||||
cooperationTypeService.updateById(cooperationType);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 合作类别表。
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询所有果酱模块化官网 合作类别表")
|
||||
public R<List<CooperationTypeVo>> list() {
|
||||
List<CooperationTypeVo> cooperationTypeVoList = cooperationTypeService.getList();
|
||||
return R.ok(cooperationTypeVoList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据果酱模块化官网 合作类别表主键获取详细信息。
|
||||
*
|
||||
* @param id 果酱模块化官网 合作类别表主键
|
||||
* @return 果酱模块化官网 合作类别表详情
|
||||
*/
|
||||
@GetMapping("/getInfo/{id}")
|
||||
@ApiOperation("根据主键获取果酱模块化官网 合作类别表")
|
||||
public R<CooperationType> getInfo(@PathVariable @ApiParam("果酱模块化官网 合作类别表主键") Serializable id) {
|
||||
return R.ok(cooperationTypeService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询果酱模块化官网 合作类别表。
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 分页对象
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperation("分页查询果酱模块化官网 合作类别表")
|
||||
public R<Page<CooperationType>> page(@ApiParam("分页信息") Page<CooperationType> page) {
|
||||
return R.ok(cooperationTypeService.page(page));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,108 @@
|
||||
package com.cpop.jambox.business.controller.backstage.website;
|
||||
|
||||
import com.cpop.core.base.R;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.cpop.jambox.business.entity.website.Development;
|
||||
import com.cpop.jambox.business.service.DevelopmentService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 发展历程表 控制层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "果酱模块化官网 发展历程表接口")
|
||||
@RequestMapping("/development")
|
||||
public class DevelopmentController {
|
||||
|
||||
@Autowired
|
||||
private DevelopmentService developmentService;
|
||||
|
||||
/**
|
||||
* 添加果酱模块化官网 发展历程表。
|
||||
*
|
||||
* @param development 果酱模块化官网 发展历程表
|
||||
* @return {@code true} 添加成功,{@code false} 添加失败
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperation("保存果酱模块化官网 发展历程表")
|
||||
public R<Void> save(@RequestBody @ApiParam("果酱模块化官网 发展历程表") Development development) {
|
||||
developmentService.save(development);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键删除果酱模块化官网 发展历程表。
|
||||
*
|
||||
* @param id 主键
|
||||
* @return {@code true} 删除成功,{@code false} 删除失败
|
||||
*/
|
||||
@DeleteMapping("/remove/{id}")
|
||||
@ApiOperation("根据主键果酱模块化官网 发展历程表")
|
||||
public R<Void> remove(@PathVariable @ApiParam("果酱模块化官网 发展历程表主键") Serializable id) {
|
||||
developmentService.removeById(id);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键更新果酱模块化官网 发展历程表。
|
||||
*
|
||||
* @param development 果酱模块化官网 发展历程表
|
||||
* @return {@code true} 更新成功,{@code false} 更新失败
|
||||
*/
|
||||
@PutMapping("/update")
|
||||
@ApiOperation("根据主键更新果酱模块化官网 发展历程表")
|
||||
public R<Void> update(@RequestBody @ApiParam("果酱模块化官网 发展历程表主键") Development development) {
|
||||
developmentService.updateById(development);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 发展历程表。
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询所有果酱模块化官网 发展历程表")
|
||||
public R<List<Development>> list() {
|
||||
return R.ok(developmentService.list());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据果酱模块化官网 发展历程表主键获取详细信息。
|
||||
*
|
||||
* @param id 果酱模块化官网 发展历程表主键
|
||||
* @return 果酱模块化官网 发展历程表详情
|
||||
*/
|
||||
@GetMapping("/getInfo/{id}")
|
||||
@ApiOperation("根据主键获取果酱模块化官网 发展历程表")
|
||||
public R<Development> getInfo(@PathVariable @ApiParam("果酱模块化官网 发展历程表主键") Serializable id) {
|
||||
return R.ok(developmentService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询果酱模块化官网 发展历程表。
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 分页对象
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperation("分页查询果酱模块化官网 发展历程表")
|
||||
public R<Page<Development>> page(@ApiParam("标题") String title,
|
||||
@RequestParam(value = "startDate",required = false) @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate startDate,
|
||||
@RequestParam(value = "endDate",required = false) @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate endDate) {
|
||||
Page<Development> developmentPage = developmentService.selectPage(title,startDate,endDate);
|
||||
return R.ok(developmentPage);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,113 @@
|
||||
package com.cpop.jambox.business.controller.backstage.website;
|
||||
|
||||
|
||||
import com.cpop.core.base.R;
|
||||
import com.cpop.jambox.business.vo.NavigationVo;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.cpop.jambox.business.entity.website.Navigation;
|
||||
import com.cpop.jambox.business.service.NavigationService;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 导航栏表 控制层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "果酱模块化官网 导航栏表接口")
|
||||
@RequestMapping("/navigation")
|
||||
public class NavigationController {
|
||||
|
||||
@Autowired
|
||||
private NavigationService navigationService;
|
||||
|
||||
/**
|
||||
* 添加果酱模块化官网 导航栏表。
|
||||
*
|
||||
* @param navigation 果酱模块化官网 导航栏表
|
||||
* @return {@code true} 添加成功,{@code false} 添加失败
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperation("保存果酱模块化官网 导航栏表")
|
||||
public R<Void> save(@RequestBody @ApiParam("果酱模块化官网 导航栏表") Navigation navigation) {
|
||||
navigationService.save(navigation);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键删除果酱模块化官网 导航栏表。
|
||||
*
|
||||
* @param id 主键
|
||||
* @return {@code true} 删除成功,{@code false} 删除失败
|
||||
*/
|
||||
@DeleteMapping("/remove/{id}")
|
||||
@ApiOperation("根据主键果酱模块化官网 导航栏表")
|
||||
public R<Void> remove(@PathVariable @ApiParam("果酱模块化官网 导航栏表主键") Serializable id) {
|
||||
navigationService.removeById(id);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键更新果酱模块化官网 导航栏表。
|
||||
*
|
||||
* @param navigation 果酱模块化官网 导航栏表
|
||||
* @return {@code true} 更新成功,{@code false} 更新失败
|
||||
*/
|
||||
@PutMapping("/update")
|
||||
@ApiOperation("根据主键更新果酱模块化官网 导航栏表")
|
||||
public R<Void> update(@RequestBody @ApiParam("果酱模块化官网 导航栏表主键") Navigation navigation) {
|
||||
navigationService.updateById(navigation);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 导航栏表。
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询所有果酱模块化官网 导航栏表")
|
||||
public R<List<NavigationVo>> list() {
|
||||
List<NavigationVo> navigationVoList = navigationService.getList();
|
||||
return R.ok(navigationVoList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据果酱模块化官网 导航栏表主键获取详细信息。
|
||||
*
|
||||
* @param id 果酱模块化官网 导航栏表主键
|
||||
* @return 果酱模块化官网 导航栏表详情
|
||||
*/
|
||||
@GetMapping("/getInfo/{id}")
|
||||
@ApiOperation("根据主键获取果酱模块化官网 导航栏表")
|
||||
public R<Navigation> getInfo(@PathVariable @ApiParam("果酱模块化官网 导航栏表主键") Serializable id) {
|
||||
return R.ok(navigationService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询果酱模块化官网 导航栏表。
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 分页对象
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperation("分页查询果酱模块化官网 导航栏表")
|
||||
public R<Page<Navigation>> page(@ApiParam("分页信息") Page<Navigation> page) {
|
||||
return R.ok(navigationService.page(page));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
package com.cpop.jambox.business.controller.backstage.website;
|
||||
|
||||
import com.cpop.core.base.R;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.cpop.jambox.business.entity.website.Product;
|
||||
import com.cpop.jambox.business.service.ProductService;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 核心产品表 控制层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "果酱模块化官网 核心产品表接口")
|
||||
@RequestMapping("/product")
|
||||
public class ProductController {
|
||||
|
||||
@Autowired
|
||||
private ProductService productService;
|
||||
|
||||
/**
|
||||
* 添加果酱模块化官网 核心产品表。
|
||||
*
|
||||
* @param product 果酱模块化官网 核心产品表
|
||||
* @return {@code true} 添加成功,{@code false} 添加失败
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperation("保存果酱模块化官网 核心产品表")
|
||||
public R<Void> save(@RequestBody @ApiParam("果酱模块化官网 核心产品表") Product product) {
|
||||
productService.save(product);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键删除果酱模块化官网 核心产品表。
|
||||
*
|
||||
* @param id 主键
|
||||
* @return {@code true} 删除成功,{@code false} 删除失败
|
||||
*/
|
||||
@DeleteMapping("/remove/{id}")
|
||||
@ApiOperation("根据主键果酱模块化官网 核心产品表")
|
||||
public R<Void> remove(@PathVariable @ApiParam("果酱模块化官网 核心产品表主键") Serializable id) {
|
||||
productService.removeById(id);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键更新果酱模块化官网 核心产品表。
|
||||
*
|
||||
* @param product 果酱模块化官网 核心产品表
|
||||
* @return {@code true} 更新成功,{@code false} 更新失败
|
||||
*/
|
||||
@PutMapping("/update")
|
||||
@ApiOperation("根据主键更新果酱模块化官网 核心产品表")
|
||||
public R<Void> update(@RequestBody @ApiParam("果酱模块化官网 核心产品表主键") Product product) {
|
||||
productService.updateById(product);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 核心产品表。
|
||||
*
|
||||
* @return 所有数据
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询所有果酱模块化官网 核心产品表")
|
||||
public R<List<Product>> list() {
|
||||
return R.ok(productService.list());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据果酱模块化官网 核心产品表主键获取详细信息。
|
||||
*
|
||||
* @param id 果酱模块化官网 核心产品表主键
|
||||
* @return 果酱模块化官网 核心产品表详情
|
||||
*/
|
||||
@GetMapping("/getInfo/{id}")
|
||||
@ApiOperation("根据主键获取果酱模块化官网 核心产品表")
|
||||
public R<Product> getInfo(@PathVariable @ApiParam("果酱模块化官网 核心产品表主键") Serializable id) {
|
||||
return R.ok(productService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询果酱模块化官网 核心产品表。
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @return 分页对象
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperation("分页查询果酱模块化官网 核心产品表")
|
||||
public R<Page<Product>> page(@ApiParam("分页信息") Page<Product> page) {
|
||||
return R.ok(productService.page(page));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,121 @@
|
||||
package com.cpop.jambox.business.controller.website;
|
||||
|
||||
import com.cpop.core.base.R;
|
||||
import com.cpop.jambox.business.service.*;
|
||||
import com.mybatisflex.core.query.QueryWrapper;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@RestController
|
||||
@Api(tags = "果酱官网接口")
|
||||
@RequestMapping("/website")
|
||||
public class WebsiteController {
|
||||
|
||||
@Autowired
|
||||
private NavigationService navigationService;
|
||||
@Autowired
|
||||
private BusinessDataService businessDataService;
|
||||
@Autowired
|
||||
private ProductService productService;
|
||||
@Autowired
|
||||
private WebsiteService websiteService;
|
||||
|
||||
/**
|
||||
* @description:获取导航栏
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/19 17:37
|
||||
* @param: []
|
||||
* @return: com.cpop.core.base.R
|
||||
**/
|
||||
@ApiOperation("获取导航栏")
|
||||
@GetMapping("/getNavigationList")
|
||||
public R getNavigationList(){
|
||||
return R.ok(navigationService.list());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @description: 获取公司简介
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/19 17:37
|
||||
* @param: []
|
||||
* @return: com.cpop.core.base.R
|
||||
**/
|
||||
@ApiOperation("获取公司简介")
|
||||
@GetMapping("/getCompanyIntro")
|
||||
public R getCompanyIntro(){
|
||||
return R.ok(websiteService.getCompanyIntro());
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取公司业务数据
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/19 17:38
|
||||
* @param: []
|
||||
* @return: com.cpop.core.base.R
|
||||
**/
|
||||
@ApiOperation("获取公司业务数据")
|
||||
@GetMapping("/getBusinessData")
|
||||
public R getBusinessData(){
|
||||
return R.ok(businessDataService.list());
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取公司业务介绍
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/19 17:38
|
||||
* @param: []
|
||||
* @return: com.cpop.core.base.R
|
||||
**/
|
||||
@ApiOperation("获取公司业务介绍")
|
||||
@GetMapping("/getBusinessIntro")
|
||||
public R getBusinessIntro(){
|
||||
return R.ok(websiteService.getBusinessIntro());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取核心产品列表
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 18:01
|
||||
* @param: []
|
||||
* @return: com.cpop.core.base.R
|
||||
**/
|
||||
@ApiOperation("获取核心产品列表")
|
||||
@GetMapping("/getProductList")
|
||||
public R getProductList(){
|
||||
return R.ok(productService.list(QueryWrapper.create().orderBy("create_time")));
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取合作平台
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/19 17:38
|
||||
* @param: []
|
||||
* @return: com.cpop.core.base.R
|
||||
**/
|
||||
@ApiOperation("获取合作平台")
|
||||
@GetMapping("/getCooperationPlatform")
|
||||
public R getCooperationPlatform(){
|
||||
return R.ok(websiteService.getCooperationPlatform());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取发展历程
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 11:55
|
||||
* @param: []
|
||||
* @return: com.cpop.core.base.R
|
||||
**/
|
||||
@ApiOperation("获取发展历程")
|
||||
@GetMapping("/getDevelopmentCourse")
|
||||
public R getDevelopmentCourse(){
|
||||
return websiteService.getDevelopmentCourse();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package com.cpop.jambox.business.entity.website;
|
||||
|
||||
import com.cpop.core.base.entity.BaseEntity;
|
||||
import com.cpop.core.base.entity.BaseInsertListener;
|
||||
import com.cpop.core.base.entity.BaseUpdateListener;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 业务数据表 实体类。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=false)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@Table(value = "cp_j_web_business_data", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
|
||||
public class BusinessData extends BaseEntity implements Serializable {
|
||||
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 数据名称
|
||||
*/
|
||||
private String dataName;
|
||||
|
||||
/**
|
||||
* 数据
|
||||
*/
|
||||
private String data;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 逻辑删除(0否1是)
|
||||
*/
|
||||
@Column(isLogicDelete = true)
|
||||
private Integer isDelete;
|
||||
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package com.cpop.jambox.business.entity.website;
|
||||
|
||||
import com.cpop.core.base.entity.BaseEntity;
|
||||
import com.cpop.core.base.entity.BaseInsertListener;
|
||||
import com.cpop.core.base.entity.BaseUpdateListener;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 业务介绍表 实体类。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=false)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@Table(value = "cp_j_web_business_intro", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
|
||||
public class BusinessIntro extends BaseEntity implements Serializable {
|
||||
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 业务介绍
|
||||
*/
|
||||
private String intro;
|
||||
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
private String imgUrl;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 逻辑删除(0否1是)
|
||||
*/
|
||||
@Column(isLogicDelete = true)
|
||||
private Integer isDelete;
|
||||
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
package com.cpop.jambox.business.entity.website;
|
||||
|
||||
import com.cpop.core.base.entity.BaseEntity;
|
||||
import com.cpop.core.base.entity.BaseInsertListener;
|
||||
import com.cpop.core.base.entity.BaseUpdateListener;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 公司简介表 实体类。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=false)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@Table(value = "cp_j_web_company_intro", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
|
||||
public class CompanyIntro extends BaseEntity implements Serializable {
|
||||
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 图片一
|
||||
*/
|
||||
private String imgOne;
|
||||
|
||||
/**
|
||||
* 图片二
|
||||
*/
|
||||
private String imgTwo;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 逻辑删除(0否1是)
|
||||
*/
|
||||
@Column(isLogicDelete = true)
|
||||
private Integer isDelete;
|
||||
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
package com.cpop.jambox.business.entity.website;
|
||||
|
||||
import com.cpop.core.base.entity.BaseEntity;
|
||||
import com.cpop.core.base.entity.BaseInsertListener;
|
||||
import com.cpop.core.base.entity.BaseUpdateListener;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 合作平台表 实体类。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=false)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@Table(value = "cp_j_web_cooperation", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
|
||||
public class Cooperation extends BaseEntity implements Serializable {
|
||||
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
private String imgUrl;
|
||||
|
||||
/**
|
||||
* 合作类别id
|
||||
*/
|
||||
private String typeId;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
|
||||
/**
|
||||
* 种类名称
|
||||
**/
|
||||
@Column(ignore = true)
|
||||
private String typeName;
|
||||
|
||||
|
||||
/**
|
||||
* 逻辑删除(0否1是)
|
||||
*/
|
||||
@Column(isLogicDelete = true)
|
||||
private Integer isDelete;
|
||||
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
package com.cpop.jambox.business.entity.website;
|
||||
|
||||
import com.cpop.core.base.entity.BaseEntity;
|
||||
import com.cpop.core.base.entity.BaseInsertListener;
|
||||
import com.cpop.core.base.entity.BaseUpdateListener;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 合作类别表 实体类。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=false)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@Table(value = "cp_j_web_cooperation_type", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
|
||||
public class CooperationType extends BaseEntity implements Serializable {
|
||||
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 种类名称
|
||||
*/
|
||||
private String typeName;
|
||||
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
|
||||
/**
|
||||
* 逻辑删除(0否1是)
|
||||
*/
|
||||
@Column(isLogicDelete = true)
|
||||
private Integer isDelete;
|
||||
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.cpop.jambox.business.entity.website;
|
||||
|
||||
import com.cpop.core.base.entity.BaseEntity;
|
||||
import com.cpop.core.base.entity.BaseInsertListener;
|
||||
import com.cpop.core.base.entity.BaseUpdateListener;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 发展历程表 实体类。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=false)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@Table(value = "cp_j_web_development", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
|
||||
public class Development extends BaseEntity implements Serializable {
|
||||
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
private String imgUrl;
|
||||
|
||||
/**
|
||||
* 跳转链接
|
||||
*/
|
||||
private String link;
|
||||
|
||||
/**
|
||||
* 发布时间
|
||||
*/
|
||||
private LocalDate publishTime;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 逻辑删除(0否1是)
|
||||
*/
|
||||
@Column(isLogicDelete = true)
|
||||
private Integer isDelete;
|
||||
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package com.cpop.jambox.business.entity.website;
|
||||
|
||||
import com.cpop.core.base.entity.BaseEntity;
|
||||
import com.cpop.core.base.entity.BaseInsertListener;
|
||||
import com.cpop.core.base.entity.BaseUpdateListener;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 导航栏表 实体类。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=false)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@Table(value = "cp_j_web_navigation", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
|
||||
public class Navigation extends BaseEntity implements Serializable {
|
||||
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 导航栏名称
|
||||
*/
|
||||
private String navigationName;
|
||||
|
||||
/**
|
||||
* 路径
|
||||
*/
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 父级ID
|
||||
*/
|
||||
private Integer parentId;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 逻辑删除(0否1是)
|
||||
*/
|
||||
@Column(isLogicDelete = true)
|
||||
private Integer isDelete;
|
||||
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
package com.cpop.jambox.business.entity.website;
|
||||
|
||||
import com.cpop.core.base.entity.BaseEntity;
|
||||
import com.cpop.core.base.entity.BaseInsertListener;
|
||||
import com.cpop.core.base.entity.BaseUpdateListener;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 核心产品表 实体类。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=false)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@Table(value = "cp_j_web_product", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
|
||||
public class Product extends BaseEntity implements Serializable {
|
||||
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 产品名称
|
||||
*/
|
||||
private String productName;
|
||||
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
private String imgUrl;
|
||||
|
||||
/**
|
||||
* 产品介绍
|
||||
*/
|
||||
private String intro;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 逻辑删除(0否1是)
|
||||
*/
|
||||
@Column(isLogicDelete = true)
|
||||
private Integer isDelete;
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.cpop.jambox.business.mapper;
|
||||
|
||||
import com.mybatisflex.core.BaseMapper;
|
||||
import com.cpop.jambox.business.entity.website.BusinessData;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 业务数据表 映射层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface BusinessDataMapper extends BaseMapper<BusinessData> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.cpop.jambox.business.mapper;
|
||||
|
||||
import com.mybatisflex.core.BaseMapper;
|
||||
import com.cpop.jambox.business.entity.website.BusinessIntro;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 业务介绍表 映射层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface BusinessIntroMapper extends BaseMapper<BusinessIntro> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.cpop.jambox.business.mapper;
|
||||
|
||||
import com.mybatisflex.core.BaseMapper;
|
||||
import com.cpop.jambox.business.entity.website.CompanyIntro;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 公司简介表 映射层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface CompanyIntroMapper extends BaseMapper<CompanyIntro> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.cpop.jambox.business.mapper;
|
||||
|
||||
import com.mybatisflex.core.BaseMapper;
|
||||
import com.cpop.jambox.business.entity.website.Cooperation;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 合作平台表 映射层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface CooperationMapper extends BaseMapper<Cooperation> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.cpop.jambox.business.mapper;
|
||||
|
||||
import com.mybatisflex.core.BaseMapper;
|
||||
import com.cpop.jambox.business.entity.website.CooperationType;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 合作类别表 映射层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface CooperationTypeMapper extends BaseMapper<CooperationType> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.cpop.jambox.business.mapper;
|
||||
|
||||
import com.mybatisflex.core.BaseMapper;
|
||||
import com.cpop.jambox.business.entity.website.Development;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 发展历程表 映射层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface DevelopmentMapper extends BaseMapper<Development> {
|
||||
|
||||
/**
|
||||
* 去重查找发布时间点
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 12:21
|
||||
* @param: []
|
||||
* @return: java.util.List<java.lang.String>
|
||||
**/
|
||||
List<String> selectDistinctPublishTime();
|
||||
|
||||
/**
|
||||
* 根据发布时间点查找文章
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 14:32
|
||||
* @param: []
|
||||
* @return: java.util.List<com.cpop.jambox.business.entity.website.Development>
|
||||
**/
|
||||
List<Development> selectDevelopmentByPublishTime(String publishTime);
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.cpop.jambox.business.mapper;
|
||||
|
||||
import com.mybatisflex.core.BaseMapper;
|
||||
import com.cpop.jambox.business.entity.website.Navigation;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 导航栏表 映射层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface NavigationMapper extends BaseMapper<Navigation> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.cpop.jambox.business.mapper;
|
||||
|
||||
import com.mybatisflex.core.BaseMapper;
|
||||
import com.cpop.jambox.business.entity.website.Product;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 核心产品表 映射层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface ProductMapper extends BaseMapper<Product> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.cpop.jambox.business.service;
|
||||
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.cpop.jambox.business.entity.website.BusinessData;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 业务数据表 服务层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface BusinessDataService extends IService<BusinessData> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.cpop.jambox.business.service;
|
||||
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.cpop.jambox.business.entity.website.BusinessIntro;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 业务介绍表 服务层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface BusinessIntroService extends IService<BusinessIntro> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.cpop.jambox.business.service;
|
||||
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.cpop.jambox.business.entity.website.CompanyIntro;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 公司简介表 服务层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface CompanyIntroService extends IService<CompanyIntro> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.cpop.jambox.business.service;
|
||||
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.cpop.jambox.business.entity.website.Cooperation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 合作平台表 服务层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface CooperationService extends IService<Cooperation> {
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 合作平台表
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 14:22
|
||||
* @param: []
|
||||
* @return: java.lang.Object
|
||||
**/
|
||||
List<Cooperation> selectTypeNameList();
|
||||
|
||||
/**
|
||||
* 分页查询果酱模块化官网 合作平台表
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 15:39
|
||||
* @param: [typeId]
|
||||
* @return: com.mybatisflex.core.paginate.Page<com.cpop.jambox.business.entity.website.Cooperation>
|
||||
**/
|
||||
Page<Cooperation> getPage(String typeId);
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.cpop.jambox.business.service;
|
||||
|
||||
import com.cpop.jambox.business.vo.CooperationTypeVo;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.cpop.jambox.business.entity.website.CooperationType;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 合作类别表 服务层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface CooperationTypeService extends IService<CooperationType> {
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 合作类别表。
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/22 19:18
|
||||
* @param: []
|
||||
* @return: java.util.List<com.cpop.jambox.business.vo.CooperationTypeVo>
|
||||
**/
|
||||
List<CooperationTypeVo> getList();
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.cpop.jambox.business.service;
|
||||
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.cpop.jambox.business.entity.website.Development;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 发展历程表 服务层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface DevelopmentService extends IService<Development> {
|
||||
|
||||
/**
|
||||
* 分页查询果酱模块化官网 发展历程表
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 15:53
|
||||
* @param: [title, link, publishTime]
|
||||
* @return: com.mybatisflex.core.paginate.Page<com.cpop.jambox.business.entity.website.Development>
|
||||
**/
|
||||
Page<Development> selectPage(String title, LocalDate startTime,LocalDate endTime);
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.cpop.jambox.business.service;
|
||||
|
||||
import com.cpop.jambox.business.vo.NavigationVo;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.cpop.jambox.business.entity.website.Navigation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 导航栏表 服务层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface NavigationService extends IService<Navigation> {
|
||||
/**
|
||||
* 查询所有果酱模块化官网 导航栏表
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/22 18:52
|
||||
* @param: []
|
||||
* @return: java.util.List<com.cpop.jambox.business.vo.NavigationVo>
|
||||
**/
|
||||
List<NavigationVo> getList();
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.cpop.jambox.business.service;
|
||||
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.cpop.jambox.business.entity.website.Product;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 核心产品表 服务层。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
public interface ProductService extends IService<Product> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,55 @@
|
||||
package com.cpop.jambox.business.service;
|
||||
|
||||
import com.cpop.core.base.R;
|
||||
import com.cpop.jambox.business.entity.website.BusinessIntro;
|
||||
import com.cpop.jambox.business.vo.CompanyIntroVo;
|
||||
import com.cpop.jambox.business.vo.CooperationPlatformVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 模块化官网服务层
|
||||
*
|
||||
* @Author: Yxz
|
||||
* @Date: 2024/1/19 18:32
|
||||
*/
|
||||
public interface WebsiteService {
|
||||
/**
|
||||
* @description: 获取合作平台
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/19 18:16
|
||||
* @param: []
|
||||
* @return: java.util.List<com.cpop.jambox.business.vo.CooperationPlatformVo>
|
||||
**/
|
||||
List<CooperationPlatformVo> getCooperationPlatform();
|
||||
|
||||
/**
|
||||
* @description: 获取公司介绍
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/19 18:16
|
||||
* @param: []
|
||||
* @return: com.cpop.jambox.business.vo.CompanyIntroVo
|
||||
**/
|
||||
CompanyIntroVo getCompanyIntro();
|
||||
|
||||
/**
|
||||
* 获取公司业务介绍
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 11:23
|
||||
* @param: []
|
||||
* @return: com.cpop.jambox.business.entity.website.BusinessIntro
|
||||
**/
|
||||
BusinessIntro getBusinessIntro() ;
|
||||
|
||||
/**
|
||||
* 获取发展历程
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 11:57
|
||||
* @param: []
|
||||
* @return: java.lang.Object
|
||||
**/
|
||||
R getDevelopmentCourse();
|
||||
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.cpop.jambox.business.service.impl;
|
||||
|
||||
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||
import com.cpop.jambox.business.entity.website.BusinessData;
|
||||
import com.cpop.jambox.business.mapper.BusinessDataMapper;
|
||||
import com.cpop.jambox.business.service.BusinessDataService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 业务数据表 服务层实现。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Service("businessDataService")
|
||||
public class BusinessDataServiceImpl extends ServiceImpl<BusinessDataMapper, BusinessData> implements BusinessDataService {
|
||||
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.cpop.jambox.business.service.impl;
|
||||
|
||||
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||
import com.cpop.jambox.business.entity.website.BusinessIntro;
|
||||
import com.cpop.jambox.business.mapper.BusinessIntroMapper;
|
||||
import com.cpop.jambox.business.service.BusinessIntroService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 业务介绍表 服务层实现。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Service("businessIntroService")
|
||||
public class BusinessIntroServiceImpl extends ServiceImpl<BusinessIntroMapper, BusinessIntro> implements BusinessIntroService {
|
||||
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.cpop.jambox.business.service.impl;
|
||||
|
||||
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||
import com.cpop.jambox.business.entity.website.CompanyIntro;
|
||||
import com.cpop.jambox.business.mapper.CompanyIntroMapper;
|
||||
import com.cpop.jambox.business.service.CompanyIntroService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 公司简介表 服务层实现。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Service("companyIntroService")
|
||||
public class CompanyIntroServiceImpl extends ServiceImpl<CompanyIntroMapper, CompanyIntro> implements CompanyIntroService {
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.cpop.jambox.business.service.impl;
|
||||
|
||||
import com.cpop.core.base.entity.PageDomain;
|
||||
import com.cpop.core.utils.sql.SqlUtils;
|
||||
import com.cpop.jambox.business.entity.website.CooperationType;
|
||||
import com.cpop.jambox.business.service.CooperationTypeService;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.query.QueryWrapper;
|
||||
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||
import com.cpop.jambox.business.entity.website.Cooperation;
|
||||
import com.cpop.jambox.business.mapper.CooperationMapper;
|
||||
import com.cpop.jambox.business.service.CooperationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 合作平台表 服务层实现。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Service("cooperationService")
|
||||
public class CooperationServiceImpl extends ServiceImpl<CooperationMapper, Cooperation> implements CooperationService {
|
||||
@Autowired
|
||||
private CooperationTypeService cooperationTypeService;
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 合作平台表
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 14:27
|
||||
* @param: []
|
||||
* @return: java.util.List<com.cpop.jambox.business.entity.website.Cooperation>
|
||||
**/
|
||||
@Override
|
||||
public List<Cooperation> selectTypeNameList() {
|
||||
List<Cooperation> cooperationList = this.mapper.selectAll();
|
||||
// 设置种类名称
|
||||
cooperationList.forEach(item -> {
|
||||
CooperationType cooperationType = cooperationTypeService.getById(item.getTypeId());
|
||||
item.setTypeName(cooperationType.getTypeName());
|
||||
});
|
||||
return cooperationList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询果酱模块化官网 合作平台表
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 15:39
|
||||
* @param: [typeId]
|
||||
* @return: com.mybatisflex.core.paginate.Page<com.cpop.jambox.business.entity.website.Cooperation>
|
||||
**/
|
||||
@Override
|
||||
public Page<Cooperation> getPage(String typeId) {
|
||||
PageDomain pageDomain = SqlUtils.getInstance().getPageDomain();
|
||||
Page<Cooperation> cooperationPage = this.mapper.paginate(Page.of(pageDomain.getPageNum(), pageDomain.getPageSize()), QueryWrapper.create().eq("type_id", typeId));
|
||||
return cooperationPage;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.cpop.jambox.business.service.impl;
|
||||
|
||||
import com.cpop.jambox.business.vo.CooperationTypeVo;
|
||||
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||
import com.cpop.jambox.business.entity.website.CooperationType;
|
||||
import com.cpop.jambox.business.mapper.CooperationTypeMapper;
|
||||
import com.cpop.jambox.business.service.CooperationTypeService;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 合作类别表 服务层实现。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Service("cooperationTypeService")
|
||||
public class CooperationTypeServiceImpl extends ServiceImpl<CooperationTypeMapper, CooperationType> implements CooperationTypeService {
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 合作类别表。
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/22 19:19
|
||||
* @param: []
|
||||
* @return: java.util.List<com.cpop.jambox.business.vo.CooperationTypeVo>
|
||||
**/
|
||||
@Override
|
||||
public List<CooperationTypeVo> getList() {
|
||||
List<CooperationTypeVo> cooperationTypeVoList = this.list().stream().map(entity -> {
|
||||
CooperationTypeVo vo = new CooperationTypeVo();
|
||||
BeanUtils.copyProperties(entity,vo,"updateTime");
|
||||
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
String updateTime = entity.getUpdateTime().format(formatter);
|
||||
|
||||
vo.setUpdateTime(updateTime);
|
||||
return vo;
|
||||
}).collect(Collectors.toList());
|
||||
return cooperationTypeVoList;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
package com.cpop.jambox.business.service.impl;
|
||||
|
||||
import com.cpop.core.base.entity.PageDomain;
|
||||
import com.cpop.core.utils.sql.SqlUtils;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.query.QueryWrapper;
|
||||
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||
import com.cpop.jambox.business.entity.website.Development;
|
||||
import com.cpop.jambox.business.mapper.DevelopmentMapper;
|
||||
import com.cpop.jambox.business.service.DevelopmentService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 发展历程表 服务层实现。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Service("developmentService")
|
||||
public class DevelopmentServiceImpl extends ServiceImpl<DevelopmentMapper, Development> implements DevelopmentService {
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询果酱模块化官网 合作平台表
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 15:59
|
||||
* @param: [title, link, publishTime]
|
||||
* @return: com.mybatisflex.core.paginate.Page<com.cpop.jambox.business.entity.website.Development>
|
||||
**/
|
||||
@Override
|
||||
public Page<Development> selectPage(String title, LocalDate startTime,LocalDate endTime) {
|
||||
PageDomain pageDomain = SqlUtils.getInstance().getPageDomain();
|
||||
Page<Development> cooperationPage = this.mapper.paginate(Page.of(pageDomain.getPageNum(), pageDomain.getPageSize()),
|
||||
QueryWrapper.create().like("title", title)
|
||||
.between("publish_time",startTime,endTime));
|
||||
return cooperationPage;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
package com.cpop.jambox.business.service.impl;
|
||||
|
||||
import com.cpop.jambox.business.vo.NavigationVo;
|
||||
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||
import com.cpop.jambox.business.entity.website.Navigation;
|
||||
import com.cpop.jambox.business.mapper.NavigationMapper;
|
||||
import com.cpop.jambox.business.service.NavigationService;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 导航栏表 服务层实现。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Service("navigationService")
|
||||
public class NavigationServiceImpl extends ServiceImpl<NavigationMapper, Navigation> implements NavigationService {
|
||||
|
||||
/**
|
||||
* 查询所有果酱模块化官网 导航栏表
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/22 18:53
|
||||
* @param: []
|
||||
* @return: java.util.List<com.cpop.jambox.business.vo.NavigationVo>
|
||||
**/
|
||||
@Override
|
||||
public List<NavigationVo> getList() {
|
||||
List<NavigationVo> navigationVoList = this.list().stream().map(entity -> {
|
||||
NavigationVo vo = new NavigationVo();
|
||||
BeanUtils.copyProperties(entity,vo,"updateTime");
|
||||
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
// 格式化为字符串
|
||||
String updateTime = entity.getUpdateTime().format(formatter);
|
||||
vo.setUpdateTime(updateTime);
|
||||
|
||||
return vo;
|
||||
}).collect(Collectors.toList());
|
||||
return navigationVoList;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.cpop.jambox.business.service.impl;
|
||||
|
||||
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||
import com.cpop.jambox.business.entity.website.Product;
|
||||
import com.cpop.jambox.business.mapper.ProductMapper;
|
||||
import com.cpop.jambox.business.service.ProductService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 果酱模块化官网 核心产品表 服务层实现。
|
||||
*
|
||||
* @author Yxz
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@Service("productService")
|
||||
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService {
|
||||
|
||||
}
|
||||
@ -0,0 +1,133 @@
|
||||
package com.cpop.jambox.business.service.impl;
|
||||
|
||||
import com.cpop.core.base.R;
|
||||
import com.cpop.jambox.business.entity.website.*;
|
||||
import com.cpop.jambox.business.mapper.DevelopmentMapper;
|
||||
import com.cpop.jambox.business.service.*;
|
||||
import com.cpop.jambox.business.vo.CompanyIntroVo;
|
||||
import com.cpop.jambox.business.vo.CooperationPlatformVo;
|
||||
import com.cpop.jambox.business.vo.DevelopmentVo;
|
||||
import com.mybatisflex.core.query.QueryWrapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 果酱官网接口 服务实现层
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 11:45
|
||||
**/
|
||||
@Service("websiteService")
|
||||
public class WebsiteServiceImpl implements WebsiteService {
|
||||
@Autowired
|
||||
private CooperationTypeService cooperationTypeService;
|
||||
@Autowired
|
||||
private CooperationService cooperationService;
|
||||
@Autowired
|
||||
private NavigationService navigationService;
|
||||
@Autowired
|
||||
private CompanyIntroService companyIntroService;
|
||||
@Autowired
|
||||
private BusinessIntroService businessIntroService;
|
||||
@Autowired
|
||||
private ProductService productService;
|
||||
@Autowired
|
||||
private DevelopmentMapper developmentMapper;
|
||||
|
||||
/**
|
||||
* @description: 获取官网合作平台VO
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/19 17:37
|
||||
* @param: []
|
||||
* @return: java.util.List<com.cpop.jambox.business.vo.CooperationPlatformVo>
|
||||
**/
|
||||
@Override
|
||||
public List<CooperationPlatformVo> getCooperationPlatform() {
|
||||
// 根据sort倒序查找合作平台种类
|
||||
List<CooperationType> cooperationTypeList = cooperationTypeService.list(QueryWrapper.create().orderBy("sort", false));
|
||||
List<CooperationPlatformVo> voList = cooperationTypeList.stream().map(entity -> {
|
||||
// 根据type_id 及 sort倒序查找合作平台
|
||||
CooperationPlatformVo vo = new CooperationPlatformVo();
|
||||
vo.setTypeName(entity.getTypeName());
|
||||
|
||||
List<Cooperation> cooperationList = cooperationService.list(QueryWrapper.create().eq("type_id", entity.getId())
|
||||
.orderBy("sort", false));
|
||||
vo.setCooperationList(cooperationList);
|
||||
return vo;
|
||||
}).collect(Collectors.toList());
|
||||
|
||||
return voList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取公司介绍
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/19 18:32
|
||||
* @param: []
|
||||
* @return: com.cpop.jambox.business.vo.CompanyIntroVo
|
||||
**/
|
||||
@Override
|
||||
public CompanyIntroVo getCompanyIntro() {
|
||||
Navigation navigation = navigationService.getOne(QueryWrapper.create().eq("path", "profile"));
|
||||
CompanyIntro companyIntro = companyIntroService.getOne(QueryWrapper.create());
|
||||
|
||||
CompanyIntroVo vo = new CompanyIntroVo();
|
||||
vo.setHeadline(navigation.getNavigationName());
|
||||
vo.setCompanyIntro(companyIntro);
|
||||
return vo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取公司业务介绍
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 11:28
|
||||
* @param: []
|
||||
* @return: com.cpop.jambox.business.entity.website.BusinessIntro
|
||||
**/
|
||||
@Override
|
||||
public BusinessIntro getBusinessIntro() {
|
||||
BusinessIntro businessIntro = businessIntroService.getOne(QueryWrapper.create());
|
||||
/*// 提取图片json数组中的url
|
||||
try {
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
JsonNode jsonNode = objectMapper.readTree(businessIntro.getImgUrl());
|
||||
JsonNode firstElement = jsonNode.get(0);
|
||||
|
||||
String url = firstElement.get("url").asText();
|
||||
businessIntro.setImgUrl(url);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
|
||||
return businessIntro;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取发展历程
|
||||
*
|
||||
* @author: Yxz
|
||||
* @date: 2024/1/21 11:58
|
||||
* @param: []
|
||||
* @return: com.cpop.core.base.R
|
||||
**/
|
||||
@Override
|
||||
public R getDevelopmentCourse() {
|
||||
// 去重查找发布时间点
|
||||
List<String> publishTimeList = developmentMapper.selectDistinctPublishTime();
|
||||
List<DevelopmentVo> developmentVoList = publishTimeList.stream().map(entity ->{
|
||||
DevelopmentVo vo = new DevelopmentVo();
|
||||
vo.setMilestone(entity);
|
||||
List<Development> developmentList = developmentMapper.selectDevelopmentByPublishTime(entity);
|
||||
vo.setDevelopmentList(developmentList);
|
||||
return vo;
|
||||
}).collect(Collectors.toList());
|
||||
return R.ok(developmentVoList);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.cpop.jambox.business.vo;
|
||||
|
||||
import com.cpop.jambox.business.entity.website.CompanyIntro;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Author: Yxz
|
||||
* @Date: 2024/1/19 18:10
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value = "官网介绍VO")
|
||||
public class CompanyIntroVo {
|
||||
@ApiModelProperty(value = "官网介绍标题")
|
||||
private String headline;
|
||||
private CompanyIntro companyIntro;
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
package com.cpop.jambox.business.vo;
|
||||
|
||||
import com.cpop.jambox.business.entity.website.Cooperation;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: Yxz
|
||||
* @Date: 2024/1/19 16:54
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value = "官网合作平台VO")
|
||||
public class CooperationPlatformVo {
|
||||
@ApiModelProperty(value = "合作平台类别名")
|
||||
private String typeName;
|
||||
@ApiModelProperty(value = "合作平台集合")
|
||||
private List<Cooperation> cooperationList;
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.cpop.jambox.business.vo;
|
||||
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Author: Yxz
|
||||
* @Date: 2024/1/22 19:15
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value = "导航栏VO")
|
||||
public class CooperationTypeVo {
|
||||
@ApiModelProperty(value = "id")
|
||||
private String id;
|
||||
@ApiModelProperty(value = "种类名称")
|
||||
private String typeName;
|
||||
@ApiModelProperty(value = "排序")
|
||||
private Integer sort;
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private String updateTime;
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
package com.cpop.jambox.business.vo;
|
||||
|
||||
import com.cpop.jambox.business.entity.website.Development;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: Yxz
|
||||
* @Date: 2024/1/21 14:02
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value = "官网发展历程VO")
|
||||
public class DevelopmentVo {
|
||||
@ApiModelProperty(value = "发展历程时间点")
|
||||
private String milestone;
|
||||
@ApiModelProperty(value = "文章集合")
|
||||
private List<Development> developmentList;
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.cpop.jambox.business.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @Author: Yxz
|
||||
* @Date: 2024/1/22 18:46
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value = "导航栏VO")
|
||||
public class NavigationVo {
|
||||
@ApiModelProperty(value = "id")
|
||||
private String id;
|
||||
@ApiModelProperty(value = "导航栏名称")
|
||||
private String navigationName;
|
||||
@ApiModelProperty(value = "路径")
|
||||
private String path;
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private String updateTime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cpop.jambox.business.mapper.BusinessDataMapper">
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cpop.jambox.business.mapper.BusinessIntroMapper">
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cpop.jambox.business.mapper.CompanyIntroMapper">
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cpop.jambox.business.mapper.CooperationMapper">
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cpop.jambox.business.mapper.CooperationTypeMapper">
|
||||
|
||||
</mapper>
|
||||
30
Cpop-Jambox/src/main/resources/mapper/DevelopmentMapper.xml
Normal file
30
Cpop-Jambox/src/main/resources/mapper/DevelopmentMapper.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cpop.jambox.business.mapper.DevelopmentMapper">
|
||||
|
||||
<select id="selectDistinctPublishTime" resultType="java.lang.String">
|
||||
SELECT
|
||||
DATE_FORMAT(publish_time, '%Y.%m') AS formatted_publish_time
|
||||
FROM
|
||||
cp_j_web_development
|
||||
WHERE is_delete = '0'
|
||||
GROUP BY
|
||||
formatted_publish_time
|
||||
ORDER BY
|
||||
publish_time ASC;
|
||||
</select>
|
||||
<select id="selectDevelopmentByPublishTime"
|
||||
resultType="com.cpop.jambox.business.entity.website.Development">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
cp_j_web_development
|
||||
WHERE
|
||||
DATE_FORMAT(publish_time, '%Y.%m') = #{publishTime}
|
||||
AND is_delete = '0'
|
||||
ORDER BY publish_time ASC;
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cpop.jambox.business.mapper.NavigationMapper">
|
||||
|
||||
</mapper>
|
||||
7
Cpop-Jambox/src/main/resources/mapper/ProductMapper.xml
Normal file
7
Cpop-Jambox/src/main/resources/mapper/ProductMapper.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cpop.jambox.business.mapper.ProductMapper">
|
||||
|
||||
</mapper>
|
||||
@ -4,7 +4,7 @@ cpop:
|
||||
profile: E:/Cpop/uploadPath
|
||||
jwt:
|
||||
#白名单
|
||||
whiteList: /websocket/*,/login,/getCaptcha,/profile/**,/doc.html,/webjars/**,/favicon.ico,/v2/api-docs/**,/swagger-resources,/wxCp/*,/wxCp/portal/*/registerCode,/sysCommon/miniSyncBrandAndStore,/easyLearn/callback/*/*,/easyLearn/*
|
||||
whiteList: /websocket/*,/login,/getCaptcha,/profile/**,/doc.html,/webjars/**,/favicon.ico,/v2/api-docs/**,/swagger-resources,/wxCp/*,/wxCp/portal/*/registerCode,/sysCommon/miniSyncBrandAndStore,/easyLearn/callback/*/*,/easyLearn/*,/website/**
|
||||
gateway:
|
||||
rsa-keypair:
|
||||
# 公钥文件
|
||||
|
||||
@ -4,7 +4,7 @@ cpop:
|
||||
profile: /root/cpop-union/cpop-oam/upload
|
||||
jwt:
|
||||
#白名单
|
||||
whiteList: /websocket/*,/login,/getCaptcha,/profile/**,/wxOpen/receiveTicket,/wxOpen/*/callback,/wxOpen/bindOpenAccount/*,/wxCp/portal/*,/wxCp/*,/wxCp/portal/*/registerCode,/sysCommon/miniSyncBrandAndStore,/easyLearn/callback/*/*,/easyLearn/*
|
||||
whiteList: /websocket/*,/login,/getCaptcha,/profile/**,/wxOpen/receiveTicket,/wxOpen/*/callback,/wxOpen/bindOpenAccount/*,/wxCp/portal/*,/wxCp/*,/wxCp/portal/*/registerCode,/sysCommon/miniSyncBrandAndStore,/easyLearn/callback/*/*,/easyLearn/*,/website/**
|
||||
#拦截
|
||||
gateway:
|
||||
rsa-keypair:
|
||||
|
||||
@ -4,7 +4,7 @@ cpop:
|
||||
profile: /root/cpop-union/cpop-mall/upload
|
||||
jwt:
|
||||
#白名单
|
||||
whiteList: /websocket/*,/login,/getCaptcha,/profile/**,/doc.html,/webjars/**,/favicon.ico,/v2/api-docs/**,/swagger-resources,/wxOpen/receiveTicket,/wxOpen/*/callback,/wxOpen/bindOpenAccount/*,/wxCp/portal/*,/wxCp/portal/*/registerCode,/wxCp/*,/sysCommon/miniSyncBrandAndStore,/easyLearn/callback/*/*,/easyLearn/*
|
||||
whiteList: /websocket/*,/login,/getCaptcha,/profile/**,/doc.html,/webjars/**,/favicon.ico,/v2/api-docs/**,/swagger-resources,/wxOpen/receiveTicket,/wxOpen/*/callback,/wxOpen/bindOpenAccount/*,/wxCp/portal/*,/wxCp/portal/*/registerCode,/wxCp/*,/sysCommon/miniSyncBrandAndStore,/easyLearn/callback/*/*,/easyLearn/*,/website/**
|
||||
#拦截
|
||||
gateway:
|
||||
rsa-keypair:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user