diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/BusinessDataController.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/BusinessDataController.java new file mode 100644 index 0000000..70d89fa --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/BusinessDataController.java @@ -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 save(@RequestBody @ApiParam("果酱模块化官网 业务数据表") BusinessData businessData) { + businessDataService.save(businessData); + return R.ok(); + } + + /** + * 根据主键删除果酱模块化官网 业务数据表。 + * + * @param id 主键 + * @return {@code true} 删除成功,{@code false} 删除失败 + */ + @DeleteMapping("/remove/{id}") + @ApiOperation("根据主键果酱模块化官网 业务数据表") + public R remove(@PathVariable @ApiParam("果酱模块化官网 业务数据表主键") Serializable id) { + businessDataService.removeById(id); + return R.ok(); + } + + /** + * 根据主键更新果酱模块化官网 业务数据表。 + * + * @param businessData 果酱模块化官网 业务数据表 + * @return {@code true} 更新成功,{@code false} 更新失败 + */ + @PutMapping("/update") + @ApiOperation("根据主键更新果酱模块化官网 业务数据表") + public R update(@RequestBody @ApiParam("果酱模块化官网 业务数据表主键") BusinessData businessData) { + businessDataService.updateById(businessData); + return R.ok(); + } + + /** + * 查询所有果酱模块化官网 业务数据表。 + * + * @return 所有数据 + */ + @GetMapping("/list") + @ApiOperation("查询所有果酱模块化官网 业务数据表") + public R> list() { + return R.ok(businessDataService.list()); + } + + /** + * 根据果酱模块化官网 业务数据表主键获取详细信息。 + * + * @param id 果酱模块化官网 业务数据表主键 + * @return 果酱模块化官网 业务数据表详情 + */ + @GetMapping("/getInfo/{id}") + @ApiOperation("根据主键获取果酱模块化官网 业务数据表") + public R getInfo(@PathVariable @ApiParam("果酱模块化官网 业务数据表主键") Serializable id) { + return R.ok(businessDataService.getById(id)); + } + + /** + * 分页查询果酱模块化官网 业务数据表。 + * + * @param page 分页对象 + * @return 分页对象 + */ + @GetMapping("/page") + @ApiOperation("分页查询果酱模块化官网 业务数据表") + public R> page(@ApiParam("分页信息") Page page) { + return R.ok(businessDataService.page(page)); + } + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/BusinessIntroController.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/BusinessIntroController.java new file mode 100644 index 0000000..0a28e3d --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/BusinessIntroController.java @@ -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 save(@RequestBody @ApiParam("果酱模块化官网 业务介绍表") BusinessIntro businessIntro) { + businessIntroService.save(businessIntro); + return R.ok(); + } + + /** + * 根据主键删除果酱模块化官网 业务介绍表。 + * + * @param id 主键 + * @return {@code true} 删除成功,{@code false} 删除失败 + */ + @DeleteMapping("/remove/{id}") + @ApiOperation("根据主键果酱模块化官网 业务介绍表") + public R remove(@PathVariable @ApiParam("果酱模块化官网 业务介绍表主键") Serializable id) { + businessIntroService.removeById(id); + return R.ok(); + } + + /** + * 根据主键更新果酱模块化官网 业务介绍表。 + * + * @param businessIntro 果酱模块化官网 业务介绍表 + * @return {@code true} 更新成功,{@code false} 更新失败 + */ + @PutMapping("/update") + @ApiOperation("根据主键更新果酱模块化官网 业务介绍表") + public R update(@RequestBody @ApiParam("果酱模块化官网 业务介绍表主键") BusinessIntro businessIntro) { + businessIntroService.updateById(businessIntro); + return R.ok(); + } + + /** + * 查询所有果酱模块化官网 业务介绍表。 + * + * @return 所有数据 + */ + @GetMapping("/list") + @ApiOperation("查询所有果酱模块化官网 业务介绍表") + public R> list() { + return R.ok(businessIntroService.list()); + } + + /** + * 根据果酱模块化官网 业务介绍表主键获取详细信息。 + * + * @param id 果酱模块化官网 业务介绍表主键 + * @return 果酱模块化官网 业务介绍表详情 + */ + @GetMapping("/getInfo/{id}") + @ApiOperation("根据主键获取果酱模块化官网 业务介绍表") + public R getInfo(@PathVariable @ApiParam("果酱模块化官网 业务介绍表主键") Serializable id) { + return R.ok(businessIntroService.getById(id)); + } + + /** + * 分页查询果酱模块化官网 业务介绍表。 + * + * @param page 分页对象 + * @return 分页对象 + */ + @GetMapping("/page") + @ApiOperation("分页查询果酱模块化官网 业务介绍表") + public R> page(@ApiParam("分页信息") Page page) { + return R.ok(businessIntroService.page(page)); + } + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/CompanyIntroController.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/CompanyIntroController.java new file mode 100644 index 0000000..f2ad89f --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/CompanyIntroController.java @@ -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 save(@RequestBody @ApiParam("果酱模块化官网 公司简介表") CompanyIntro companyIntro) { + companyIntroService.save(companyIntro); + return R.ok(); + } + + /** + * 根据主键删除果酱模块化官网 公司简介表。 + * + * @param id 主键 + * @return {@code true} 删除成功,{@code false} 删除失败 + */ + @DeleteMapping("/remove/{id}") + @ApiOperation("根据主键果酱模块化官网 公司简介表") + public R remove(@PathVariable @ApiParam("果酱模块化官网 公司简介表主键") Serializable id) { + companyIntroService.removeById(id); + return R.ok(); + } + + /** + * 根据主键更新果酱模块化官网 公司简介表。 + * + * @param companyIntro 果酱模块化官网 公司简介表 + * @return {@code true} 更新成功,{@code false} 更新失败 + */ + @PutMapping("/update") + @ApiOperation("根据主键更新果酱模块化官网 公司简介表") + public R update(@RequestBody @ApiParam("果酱模块化官网 公司简介表主键") CompanyIntro companyIntro) { + companyIntroService.updateById(companyIntro); + return R.ok(); + } + + /** + * 查询所有果酱模块化官网 公司简介表。 + * + * @return 所有数据 + */ + @GetMapping("/list") + @ApiOperation("查询所有果酱模块化官网 公司简介表") + public R> list() { + return R.ok(companyIntroService.list()); + } + + /** + * 根据果酱模块化官网 公司简介表主键获取详细信息。 + * + * @param id 果酱模块化官网 公司简介表主键 + * @return 果酱模块化官网 公司简介表详情 + */ + @GetMapping("/getInfo/{id}") + @ApiOperation("根据主键获取果酱模块化官网 公司简介表") + public R getInfo(@PathVariable @ApiParam("果酱模块化官网 公司简介表主键") Serializable id) { + return R.ok(companyIntroService.getById(id)); + } + + /** + * 分页查询果酱模块化官网 公司简介表。 + * + * @param page 分页对象 + * @return 分页对象 + */ + @GetMapping("/page") + @ApiOperation("分页查询果酱模块化官网 公司简介表") + public R> page(@ApiParam("分页信息") Page page) { + return R.ok(companyIntroService.page(page)); + } + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/CooperationController.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/CooperationController.java new file mode 100644 index 0000000..9dcaab8 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/CooperationController.java @@ -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 save(@RequestBody @ApiParam("果酱模块化官网 合作平台表") Cooperation cooperation) { + cooperationService.save(cooperation); + return R.ok(); + } + + /** + * 根据主键删除果酱模块化官网 合作平台表。 + * + * @param id 主键 + * @return {@code true} 删除成功,{@code false} 删除失败 + */ + @DeleteMapping("/remove/{id}") + @ApiOperation("根据主键果酱模块化官网 合作平台表") + public R remove(@PathVariable @ApiParam("果酱模块化官网 合作平台表主键") Serializable id) { + cooperationService.removeById(id); + return R.ok(); + } + + /** + * 根据主键更新果酱模块化官网 合作平台表。 + * + * @param cooperation 果酱模块化官网 合作平台表 + * @return {@code true} 更新成功,{@code false} 更新失败 + */ + @PutMapping("/update") + @ApiOperation("根据主键更新果酱模块化官网 合作平台表") + public R update(@RequestBody @ApiParam("果酱模块化官网 合作平台表主键") Cooperation cooperation) { + cooperationService.updateById(cooperation); + return R.ok(); + } + + /** + * 查询所有果酱模块化官网 合作平台表。 + * + * @return 所有数据 + */ + @GetMapping("/list") + @ApiOperation("查询所有果酱模块化官网 合作平台表") + public R> list() { + return R.ok(cooperationService.selectTypeNameList()); + } + + /** + * 根据果酱模块化官网 合作平台表主键获取详细信息。 + * + * @param id 果酱模块化官网 合作平台表主键 + * @return 果酱模块化官网 合作平台表详情 + */ + @GetMapping("/getInfo/{id}") + @ApiOperation("根据主键获取果酱模块化官网 合作平台表") + public R 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> + **/ + @GetMapping("/page") + @ApiOperation("分页查询果酱模块化官网 合作平台表") + public R> page(@ApiParam("平台类型") String typeId) { + Page cooperationPage = cooperationService.getPage(typeId); + return R.ok(cooperationPage); + } + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/CooperationTypeController.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/CooperationTypeController.java new file mode 100644 index 0000000..b8ba5d0 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/CooperationTypeController.java @@ -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 save(@RequestBody @ApiParam("果酱模块化官网 合作类别表") CooperationType cooperationType) { + cooperationTypeService.save(cooperationType); + return R.ok(); + } + + /** + * 根据主键删除果酱模块化官网 合作类别表。 + * + * @param id 主键 + * @return {@code true} 删除成功,{@code false} 删除失败 + */ + @DeleteMapping("/remove/{id}") + @ApiOperation("根据主键果酱模块化官网 合作类别表") + public R remove(@PathVariable @ApiParam("果酱模块化官网 合作类别表主键") Serializable id) { + cooperationTypeService.removeById(id); + return R.ok(); + } + + /** + * 根据主键更新果酱模块化官网 合作类别表。 + * + * @param cooperationType 果酱模块化官网 合作类别表 + * @return {@code true} 更新成功,{@code false} 更新失败 + */ + @PutMapping("/update") + @ApiOperation("根据主键更新果酱模块化官网 合作类别表") + public R update(@RequestBody @ApiParam("果酱模块化官网 合作类别表主键") CooperationType cooperationType) { + cooperationTypeService.updateById(cooperationType); + return R.ok(); + } + + /** + * 查询所有果酱模块化官网 合作类别表。 + * + * @return 所有数据 + */ + @GetMapping("/list") + @ApiOperation("查询所有果酱模块化官网 合作类别表") + public R> list() { + List cooperationTypeVoList = cooperationTypeService.getList(); + return R.ok(cooperationTypeVoList); + } + + /** + * 根据果酱模块化官网 合作类别表主键获取详细信息。 + * + * @param id 果酱模块化官网 合作类别表主键 + * @return 果酱模块化官网 合作类别表详情 + */ + @GetMapping("/getInfo/{id}") + @ApiOperation("根据主键获取果酱模块化官网 合作类别表") + public R getInfo(@PathVariable @ApiParam("果酱模块化官网 合作类别表主键") Serializable id) { + return R.ok(cooperationTypeService.getById(id)); + } + + /** + * 分页查询果酱模块化官网 合作类别表。 + * + * @param page 分页对象 + * @return 分页对象 + */ + @GetMapping("/page") + @ApiOperation("分页查询果酱模块化官网 合作类别表") + public R> page(@ApiParam("分页信息") Page page) { + return R.ok(cooperationTypeService.page(page)); + } + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/DevelopmentController.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/DevelopmentController.java new file mode 100644 index 0000000..e3b3eae --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/DevelopmentController.java @@ -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 save(@RequestBody @ApiParam("果酱模块化官网 发展历程表") Development development) { + developmentService.save(development); + return R.ok(); + } + + /** + * 根据主键删除果酱模块化官网 发展历程表。 + * + * @param id 主键 + * @return {@code true} 删除成功,{@code false} 删除失败 + */ + @DeleteMapping("/remove/{id}") + @ApiOperation("根据主键果酱模块化官网 发展历程表") + public R remove(@PathVariable @ApiParam("果酱模块化官网 发展历程表主键") Serializable id) { + developmentService.removeById(id); + return R.ok(); + } + + /** + * 根据主键更新果酱模块化官网 发展历程表。 + * + * @param development 果酱模块化官网 发展历程表 + * @return {@code true} 更新成功,{@code false} 更新失败 + */ + @PutMapping("/update") + @ApiOperation("根据主键更新果酱模块化官网 发展历程表") + public R update(@RequestBody @ApiParam("果酱模块化官网 发展历程表主键") Development development) { + developmentService.updateById(development); + return R.ok(); + } + + /** + * 查询所有果酱模块化官网 发展历程表。 + * + * @return 所有数据 + */ + @GetMapping("/list") + @ApiOperation("查询所有果酱模块化官网 发展历程表") + public R> list() { + return R.ok(developmentService.list()); + } + + /** + * 根据果酱模块化官网 发展历程表主键获取详细信息。 + * + * @param id 果酱模块化官网 发展历程表主键 + * @return 果酱模块化官网 发展历程表详情 + */ + @GetMapping("/getInfo/{id}") + @ApiOperation("根据主键获取果酱模块化官网 发展历程表") + public R getInfo(@PathVariable @ApiParam("果酱模块化官网 发展历程表主键") Serializable id) { + return R.ok(developmentService.getById(id)); + } + + /** + * 分页查询果酱模块化官网 发展历程表。 + * + * @param page 分页对象 + * @return 分页对象 + */ + @GetMapping("/page") + @ApiOperation("分页查询果酱模块化官网 发展历程表") + public R> 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 developmentPage = developmentService.selectPage(title,startDate,endDate); + return R.ok(developmentPage); + } + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/NavigationController.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/NavigationController.java new file mode 100644 index 0000000..6d33a6d --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/NavigationController.java @@ -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 save(@RequestBody @ApiParam("果酱模块化官网 导航栏表") Navigation navigation) { + navigationService.save(navigation); + return R.ok(); + } + + /** + * 根据主键删除果酱模块化官网 导航栏表。 + * + * @param id 主键 + * @return {@code true} 删除成功,{@code false} 删除失败 + */ + @DeleteMapping("/remove/{id}") + @ApiOperation("根据主键果酱模块化官网 导航栏表") + public R remove(@PathVariable @ApiParam("果酱模块化官网 导航栏表主键") Serializable id) { + navigationService.removeById(id); + return R.ok(); + } + + /** + * 根据主键更新果酱模块化官网 导航栏表。 + * + * @param navigation 果酱模块化官网 导航栏表 + * @return {@code true} 更新成功,{@code false} 更新失败 + */ + @PutMapping("/update") + @ApiOperation("根据主键更新果酱模块化官网 导航栏表") + public R update(@RequestBody @ApiParam("果酱模块化官网 导航栏表主键") Navigation navigation) { + navigationService.updateById(navigation); + return R.ok(); + } + + /** + * 查询所有果酱模块化官网 导航栏表。 + * + * @return 所有数据 + */ + @GetMapping("/list") + @ApiOperation("查询所有果酱模块化官网 导航栏表") + public R> list() { + List navigationVoList = navigationService.getList(); + return R.ok(navigationVoList); + } + + /** + * 根据果酱模块化官网 导航栏表主键获取详细信息。 + * + * @param id 果酱模块化官网 导航栏表主键 + * @return 果酱模块化官网 导航栏表详情 + */ + @GetMapping("/getInfo/{id}") + @ApiOperation("根据主键获取果酱模块化官网 导航栏表") + public R getInfo(@PathVariable @ApiParam("果酱模块化官网 导航栏表主键") Serializable id) { + return R.ok(navigationService.getById(id)); + } + + /** + * 分页查询果酱模块化官网 导航栏表。 + * + * @param page 分页对象 + * @return 分页对象 + */ + @GetMapping("/page") + @ApiOperation("分页查询果酱模块化官网 导航栏表") + public R> page(@ApiParam("分页信息") Page page) { + return R.ok(navigationService.page(page)); + } + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/ProductController.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/ProductController.java new file mode 100644 index 0000000..e185761 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/backstage/website/ProductController.java @@ -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 save(@RequestBody @ApiParam("果酱模块化官网 核心产品表") Product product) { + productService.save(product); + return R.ok(); + } + + /** + * 根据主键删除果酱模块化官网 核心产品表。 + * + * @param id 主键 + * @return {@code true} 删除成功,{@code false} 删除失败 + */ + @DeleteMapping("/remove/{id}") + @ApiOperation("根据主键果酱模块化官网 核心产品表") + public R remove(@PathVariable @ApiParam("果酱模块化官网 核心产品表主键") Serializable id) { + productService.removeById(id); + return R.ok(); + } + + /** + * 根据主键更新果酱模块化官网 核心产品表。 + * + * @param product 果酱模块化官网 核心产品表 + * @return {@code true} 更新成功,{@code false} 更新失败 + */ + @PutMapping("/update") + @ApiOperation("根据主键更新果酱模块化官网 核心产品表") + public R update(@RequestBody @ApiParam("果酱模块化官网 核心产品表主键") Product product) { + productService.updateById(product); + return R.ok(); + } + + /** + * 查询所有果酱模块化官网 核心产品表。 + * + * @return 所有数据 + */ + @GetMapping("/list") + @ApiOperation("查询所有果酱模块化官网 核心产品表") + public R> list() { + return R.ok(productService.list()); + } + + /** + * 根据果酱模块化官网 核心产品表主键获取详细信息。 + * + * @param id 果酱模块化官网 核心产品表主键 + * @return 果酱模块化官网 核心产品表详情 + */ + @GetMapping("/getInfo/{id}") + @ApiOperation("根据主键获取果酱模块化官网 核心产品表") + public R getInfo(@PathVariable @ApiParam("果酱模块化官网 核心产品表主键") Serializable id) { + return R.ok(productService.getById(id)); + } + + /** + * 分页查询果酱模块化官网 核心产品表。 + * + * @param page 分页对象 + * @return 分页对象 + */ + @GetMapping("/page") + @ApiOperation("分页查询果酱模块化官网 核心产品表") + public R> page(@ApiParam("分页信息") Page page) { + return R.ok(productService.page(page)); + } + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/website/WebsiteController.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/website/WebsiteController.java new file mode 100644 index 0000000..ecfa4df --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/website/WebsiteController.java @@ -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(); + } + + + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/BusinessData.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/BusinessData.java new file mode 100644 index 0000000..276f58e --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/BusinessData.java @@ -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; + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/BusinessIntro.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/BusinessIntro.java new file mode 100644 index 0000000..9592395 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/BusinessIntro.java @@ -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; + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/CompanyIntro.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/CompanyIntro.java new file mode 100644 index 0000000..f6f89de --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/CompanyIntro.java @@ -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; + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/Cooperation.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/Cooperation.java new file mode 100644 index 0000000..f86720a --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/Cooperation.java @@ -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; + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/CooperationType.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/CooperationType.java new file mode 100644 index 0000000..63419b2 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/CooperationType.java @@ -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; + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/Development.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/Development.java new file mode 100644 index 0000000..5c1d05e --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/Development.java @@ -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; + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/Navigation.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/Navigation.java new file mode 100644 index 0000000..d28ebfb --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/Navigation.java @@ -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; + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/Product.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/Product.java new file mode 100644 index 0000000..43834e1 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/entity/website/Product.java @@ -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; + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/BusinessDataMapper.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/BusinessDataMapper.java new file mode 100644 index 0000000..27c7894 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/BusinessDataMapper.java @@ -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 { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/BusinessIntroMapper.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/BusinessIntroMapper.java new file mode 100644 index 0000000..7945a72 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/BusinessIntroMapper.java @@ -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 { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/CompanyIntroMapper.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/CompanyIntroMapper.java new file mode 100644 index 0000000..40475df --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/CompanyIntroMapper.java @@ -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 { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/CooperationMapper.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/CooperationMapper.java new file mode 100644 index 0000000..f451291 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/CooperationMapper.java @@ -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 { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/CooperationTypeMapper.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/CooperationTypeMapper.java new file mode 100644 index 0000000..79b7ad6 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/CooperationTypeMapper.java @@ -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 { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/DevelopmentMapper.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/DevelopmentMapper.java new file mode 100644 index 0000000..f265d0b --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/DevelopmentMapper.java @@ -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 { + + /** + * 去重查找发布时间点 + * + * @author: Yxz + * @date: 2024/1/21 12:21 + * @param: [] + * @return: java.util.List + **/ + List selectDistinctPublishTime(); + + /** + * 根据发布时间点查找文章 + * + * @author: Yxz + * @date: 2024/1/21 14:32 + * @param: [] + * @return: java.util.List + **/ + List selectDevelopmentByPublishTime(String publishTime); +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/NavigationMapper.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/NavigationMapper.java new file mode 100644 index 0000000..e6c158d --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/NavigationMapper.java @@ -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 { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/ProductMapper.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/ProductMapper.java new file mode 100644 index 0000000..865d030 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/mapper/ProductMapper.java @@ -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 { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/BusinessDataService.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/BusinessDataService.java new file mode 100644 index 0000000..4243c6e --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/BusinessDataService.java @@ -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 { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/BusinessIntroService.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/BusinessIntroService.java new file mode 100644 index 0000000..7f17619 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/BusinessIntroService.java @@ -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 { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/CompanyIntroService.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/CompanyIntroService.java new file mode 100644 index 0000000..7e53b49 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/CompanyIntroService.java @@ -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 { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/CooperationService.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/CooperationService.java new file mode 100644 index 0000000..2f5286e --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/CooperationService.java @@ -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 { + + /** + * 查询所有果酱模块化官网 合作平台表 + * + * @author: Yxz + * @date: 2024/1/21 14:22 + * @param: [] + * @return: java.lang.Object + **/ + List selectTypeNameList(); + + /** + * 分页查询果酱模块化官网 合作平台表 + * + * @author: Yxz + * @date: 2024/1/21 15:39 + * @param: [typeId] + * @return: com.mybatisflex.core.paginate.Page + **/ + Page getPage(String typeId); +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/CooperationTypeService.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/CooperationTypeService.java new file mode 100644 index 0000000..4e2159a --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/CooperationTypeService.java @@ -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 { + + /** + * 查询所有果酱模块化官网 合作类别表。 + * + * @author: Yxz + * @date: 2024/1/22 19:18 + * @param: [] + * @return: java.util.List + **/ + List getList(); +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/DevelopmentService.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/DevelopmentService.java new file mode 100644 index 0000000..aeca9de --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/DevelopmentService.java @@ -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 { + + /** + * 分页查询果酱模块化官网 发展历程表 + * + * @author: Yxz + * @date: 2024/1/21 15:53 + * @param: [title, link, publishTime] + * @return: com.mybatisflex.core.paginate.Page + **/ + Page selectPage(String title, LocalDate startTime,LocalDate endTime); +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/NavigationService.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/NavigationService.java new file mode 100644 index 0000000..0c2dddd --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/NavigationService.java @@ -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 { + /** + * 查询所有果酱模块化官网 导航栏表 + * + * @author: Yxz + * @date: 2024/1/22 18:52 + * @param: [] + * @return: java.util.List + **/ + List getList(); +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/ProductService.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/ProductService.java new file mode 100644 index 0000000..66f09e4 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/ProductService.java @@ -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 { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/WebsiteService.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/WebsiteService.java new file mode 100644 index 0000000..006537a --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/WebsiteService.java @@ -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 + **/ + List 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(); + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/BusinessDataServiceImpl.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/BusinessDataServiceImpl.java new file mode 100644 index 0000000..b0bb535 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/BusinessDataServiceImpl.java @@ -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 implements BusinessDataService { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/BusinessIntroServiceImpl.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/BusinessIntroServiceImpl.java new file mode 100644 index 0000000..f297c99 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/BusinessIntroServiceImpl.java @@ -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 implements BusinessIntroService { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/CompanyIntroServiceImpl.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/CompanyIntroServiceImpl.java new file mode 100644 index 0000000..3194a2f --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/CompanyIntroServiceImpl.java @@ -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 implements CompanyIntroService { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/CooperationServiceImpl.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/CooperationServiceImpl.java new file mode 100644 index 0000000..9e0c1c7 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/CooperationServiceImpl.java @@ -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 implements CooperationService { + @Autowired + private CooperationTypeService cooperationTypeService; + + /** + * 查询所有果酱模块化官网 合作平台表 + * + * @author: Yxz + * @date: 2024/1/21 14:27 + * @param: [] + * @return: java.util.List + **/ + @Override + public List selectTypeNameList() { + List 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 + **/ + @Override + public Page getPage(String typeId) { + PageDomain pageDomain = SqlUtils.getInstance().getPageDomain(); + Page cooperationPage = this.mapper.paginate(Page.of(pageDomain.getPageNum(), pageDomain.getPageSize()), QueryWrapper.create().eq("type_id", typeId)); + return cooperationPage; + } +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/CooperationTypeServiceImpl.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/CooperationTypeServiceImpl.java new file mode 100644 index 0000000..2e904b6 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/CooperationTypeServiceImpl.java @@ -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 implements CooperationTypeService { + + /** + * 查询所有果酱模块化官网 合作类别表。 + * + * @author: Yxz + * @date: 2024/1/22 19:19 + * @param: [] + * @return: java.util.List + **/ + @Override + public List getList() { + List 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; + } +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/DevelopmentServiceImpl.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/DevelopmentServiceImpl.java new file mode 100644 index 0000000..3c18835 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/DevelopmentServiceImpl.java @@ -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 implements DevelopmentService { + + + /** + * 分页查询果酱模块化官网 合作平台表 + * + * @author: Yxz + * @date: 2024/1/21 15:59 + * @param: [title, link, publishTime] + * @return: com.mybatisflex.core.paginate.Page + **/ + @Override + public Page selectPage(String title, LocalDate startTime,LocalDate endTime) { + PageDomain pageDomain = SqlUtils.getInstance().getPageDomain(); + Page cooperationPage = this.mapper.paginate(Page.of(pageDomain.getPageNum(), pageDomain.getPageSize()), + QueryWrapper.create().like("title", title) + .between("publish_time",startTime,endTime)); + return cooperationPage; + } +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/NavigationServiceImpl.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/NavigationServiceImpl.java new file mode 100644 index 0000000..635846b --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/NavigationServiceImpl.java @@ -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 implements NavigationService { + + /** + * 查询所有果酱模块化官网 导航栏表 + * + * @author: Yxz + * @date: 2024/1/22 18:53 + * @param: [] + * @return: java.util.List + **/ + @Override + public List getList() { + List 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; + } +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/ProductServiceImpl.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/ProductServiceImpl.java new file mode 100644 index 0000000..1f04b65 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/ProductServiceImpl.java @@ -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 implements ProductService { + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/WebsiteServiceImpl.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/WebsiteServiceImpl.java new file mode 100644 index 0000000..8551887 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/WebsiteServiceImpl.java @@ -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 + **/ + @Override + public List getCooperationPlatform() { + // 根据sort倒序查找合作平台种类 + List cooperationTypeList = cooperationTypeService.list(QueryWrapper.create().orderBy("sort", false)); + List voList = cooperationTypeList.stream().map(entity -> { + // 根据type_id 及 sort倒序查找合作平台 + CooperationPlatformVo vo = new CooperationPlatformVo(); + vo.setTypeName(entity.getTypeName()); + + List 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 publishTimeList = developmentMapper.selectDistinctPublishTime(); + List developmentVoList = publishTimeList.stream().map(entity ->{ + DevelopmentVo vo = new DevelopmentVo(); + vo.setMilestone(entity); + List developmentList = developmentMapper.selectDevelopmentByPublishTime(entity); + vo.setDevelopmentList(developmentList); + return vo; + }).collect(Collectors.toList()); + return R.ok(developmentVoList); + } + +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/CompanyIntroVo.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/CompanyIntroVo.java new file mode 100644 index 0000000..e8e3e93 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/CompanyIntroVo.java @@ -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; +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/CooperationPlatformVo.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/CooperationPlatformVo.java new file mode 100644 index 0000000..3b58fe5 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/CooperationPlatformVo.java @@ -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 cooperationList; +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/CooperationTypeVo.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/CooperationTypeVo.java new file mode 100644 index 0000000..01e258a --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/CooperationTypeVo.java @@ -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; +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/DevelopmentVo.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/DevelopmentVo.java new file mode 100644 index 0000000..d965317 --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/DevelopmentVo.java @@ -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 developmentList; +} diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/NavigationVo.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/NavigationVo.java new file mode 100644 index 0000000..c78a31d --- /dev/null +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/vo/NavigationVo.java @@ -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; + +} diff --git a/Cpop-Jambox/src/main/resources/mapper/BusinessDataMapper.xml b/Cpop-Jambox/src/main/resources/mapper/BusinessDataMapper.xml new file mode 100644 index 0000000..7a4a240 --- /dev/null +++ b/Cpop-Jambox/src/main/resources/mapper/BusinessDataMapper.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/Cpop-Jambox/src/main/resources/mapper/BusinessIntroMapper.xml b/Cpop-Jambox/src/main/resources/mapper/BusinessIntroMapper.xml new file mode 100644 index 0000000..f48f956 --- /dev/null +++ b/Cpop-Jambox/src/main/resources/mapper/BusinessIntroMapper.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/Cpop-Jambox/src/main/resources/mapper/CompanyIntroMapper.xml b/Cpop-Jambox/src/main/resources/mapper/CompanyIntroMapper.xml new file mode 100644 index 0000000..d73c5b1 --- /dev/null +++ b/Cpop-Jambox/src/main/resources/mapper/CompanyIntroMapper.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/Cpop-Jambox/src/main/resources/mapper/CooperationMapper.xml b/Cpop-Jambox/src/main/resources/mapper/CooperationMapper.xml new file mode 100644 index 0000000..04ca6c8 --- /dev/null +++ b/Cpop-Jambox/src/main/resources/mapper/CooperationMapper.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/Cpop-Jambox/src/main/resources/mapper/CooperationTypeMapper.xml b/Cpop-Jambox/src/main/resources/mapper/CooperationTypeMapper.xml new file mode 100644 index 0000000..39d5663 --- /dev/null +++ b/Cpop-Jambox/src/main/resources/mapper/CooperationTypeMapper.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/Cpop-Jambox/src/main/resources/mapper/DevelopmentMapper.xml b/Cpop-Jambox/src/main/resources/mapper/DevelopmentMapper.xml new file mode 100644 index 0000000..a8f4ba2 --- /dev/null +++ b/Cpop-Jambox/src/main/resources/mapper/DevelopmentMapper.xml @@ -0,0 +1,30 @@ + + + + + + + + diff --git a/Cpop-Jambox/src/main/resources/mapper/NavigationMapper.xml b/Cpop-Jambox/src/main/resources/mapper/NavigationMapper.xml new file mode 100644 index 0000000..a4b26bf --- /dev/null +++ b/Cpop-Jambox/src/main/resources/mapper/NavigationMapper.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/Cpop-Jambox/src/main/resources/mapper/ProductMapper.xml b/Cpop-Jambox/src/main/resources/mapper/ProductMapper.xml new file mode 100644 index 0000000..6bf714b --- /dev/null +++ b/Cpop-Jambox/src/main/resources/mapper/ProductMapper.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-dev.yml b/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-dev.yml index 5c8cafc..565886b 100644 --- a/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-dev.yml +++ b/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-dev.yml @@ -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: # 公钥文件 diff --git a/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-prod.yml b/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-prod.yml index 234e7f4..f4d7238 100644 --- a/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-prod.yml +++ b/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-prod.yml @@ -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: diff --git a/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-test.yml b/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-test.yml index 8f005b9..33492b5 100644 --- a/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-test.yml +++ b/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-test.yml @@ -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: