From e0924eeca5b24387aa1743986b4af4496eb4ad20 Mon Sep 17 00:00:00 2001 From: wangwei Date: Fri, 14 Mar 2025 18:13:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0swagger=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dhc/DhcRollPlanDetailController.java | 113 +++++++++ .../DhcRollPlanDetailRecordController.java | 113 +++++++++ .../dhc/DhcRollPlanTitleController.java | 113 +++++++++ .../dhc/domain/DhcRollPlanTitleRecord.java | 222 ------------------ .../mapper/DhcRollPlanTitleRecordMapper.java | 61 ----- .../IDhcRollPlanTitleRecordService.java | 61 ----- .../DhcRollPlanTitleRecordServiceImpl.java | 96 -------- .../dhc/DhcRollPlanTitleRecordMapper.xml | 126 ---------- 8 files changed, 339 insertions(+), 566 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanDetailController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanDetailRecordController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanTitleController.java delete mode 100644 ruoyi-plan/src/main/java/com/ruoyi/dhc/domain/DhcRollPlanTitleRecord.java delete mode 100644 ruoyi-plan/src/main/java/com/ruoyi/dhc/mapper/DhcRollPlanTitleRecordMapper.java delete mode 100644 ruoyi-plan/src/main/java/com/ruoyi/dhc/service/IDhcRollPlanTitleRecordService.java delete mode 100644 ruoyi-plan/src/main/java/com/ruoyi/dhc/service/impl/DhcRollPlanTitleRecordServiceImpl.java delete mode 100644 ruoyi-plan/src/main/resources/mapper/dhc/DhcRollPlanTitleRecordMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanDetailController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanDetailController.java new file mode 100644 index 0000000..184ec59 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanDetailController.java @@ -0,0 +1,113 @@ +package com.ruoyi.web.controller.dhc; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.dhc.domain.DhcRollPlanDetail; +import com.ruoyi.dhc.service.IDhcRollPlanDetailService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; + +/** + * 滚动计划明细Controller + * + * @author ruoyi + * @date 2025-03-14 + */ +@Api(tags = "滚动计划明细管理") +@RestController +@RequestMapping("/dhc/dhcRollPlanDetail") +public class DhcRollPlanDetailController extends BaseController +{ + @Autowired + private IDhcRollPlanDetailService dhcRollPlanDetailService; + + /** + * 查询滚动计划明细列表 + */ + @ApiOperation("查询滚动计划明细列表") + @PreAuthorize("@ss.hasPermi('dhc:detail:list')") + @GetMapping("/list") + public TableDataInfo list(DhcRollPlanDetail dhcRollPlanDetail) + { + startPage(); + List list = dhcRollPlanDetailService.selectDhcRollPlanDetailList(dhcRollPlanDetail); + return getDataTable(list); + } + + /** + * 导出滚动计划明细列表 + */ + @ApiOperation("导出滚动计划明细列表") + @PreAuthorize("@ss.hasPermi('dhc:detail:export')") + @Log(title = "滚动计划明细", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, DhcRollPlanDetail dhcRollPlanDetail) + { + List list = dhcRollPlanDetailService.selectDhcRollPlanDetailList(dhcRollPlanDetail); + ExcelUtil util = new ExcelUtil(DhcRollPlanDetail.class); + util.exportExcel(response, list, "滚动计划明细数据"); + } + + /** + * 获取滚动计划明细详细信息 + */ + @ApiOperation("获取滚动计划明细详细信息") + @PreAuthorize("@ss.hasPermi('dhc:detail:query')") + @GetMapping(value = "/{rollPlanDetailId}") + public AjaxResult getInfo(@PathVariable("rollPlanDetailId") Long rollPlanDetailId) + { + return success(dhcRollPlanDetailService.selectDhcRollPlanDetailByRollPlanDetailId(rollPlanDetailId)); + } + + /** + * 新增滚动计划明细 + */ + @ApiOperation("新增滚动计划明细") + @PreAuthorize("@ss.hasPermi('dhc:detail:add')") + @Log(title = "滚动计划明细", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody DhcRollPlanDetail dhcRollPlanDetail) + { + return toAjax(dhcRollPlanDetailService.insertDhcRollPlanDetail(dhcRollPlanDetail)); + } + + /** + * 修改滚动计划明细 + */ + @ApiOperation("修改滚动计划明细") + @PreAuthorize("@ss.hasPermi('dhc:detail:edit')") + @Log(title = "滚动计划明细", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody DhcRollPlanDetail dhcRollPlanDetail) + { + return toAjax(dhcRollPlanDetailService.updateDhcRollPlanDetail(dhcRollPlanDetail)); + } + + /** + * 删除滚动计划明细 + */ + @ApiOperation("删除滚动计划明细") + @PreAuthorize("@ss.hasPermi('dhc:detail:remove')") + @Log(title = "滚动计划明细", businessType = BusinessType.DELETE) + @DeleteMapping("/{rollPlanDetailIds}") + public AjaxResult remove(@PathVariable Long[] rollPlanDetailIds) + { + return toAjax(dhcRollPlanDetailService.deleteDhcRollPlanDetailByRollPlanDetailIds(rollPlanDetailIds)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanDetailRecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanDetailRecordController.java new file mode 100644 index 0000000..2853bc9 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanDetailRecordController.java @@ -0,0 +1,113 @@ +package com.ruoyi.web.controller.dhc; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.dhc.domain.DhcRollPlanDetailRecord; +import com.ruoyi.dhc.service.IDhcRollPlanDetailRecordService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; + +/** + * 滚动计划明细历史记录Controller + * + * @author ruoyi + * @date 2025-03-14 + */ +@Api(tags = "滚动计划明细历史记录管理") +@RestController +@RequestMapping("/dhc/dhcRollPlanDetailRecord") +public class DhcRollPlanDetailRecordController extends BaseController +{ + @Autowired + private IDhcRollPlanDetailRecordService dhcRollPlanDetailRecordService; + + /** + * 查询滚动计划明细历史记录列表 + */ + @ApiOperation("查询滚动计划明细历史记录列表") + @PreAuthorize("@ss.hasPermi('dhc:record:list')") + @GetMapping("/list") + public TableDataInfo list(DhcRollPlanDetailRecord dhcRollPlanDetailRecord) + { + startPage(); + List list = dhcRollPlanDetailRecordService.selectDhcRollPlanDetailRecordList(dhcRollPlanDetailRecord); + return getDataTable(list); + } + + /** + * 导出滚动计划明细历史记录列表 + */ + @ApiOperation("导出滚动计划明细历史记录列表") + @PreAuthorize("@ss.hasPermi('dhc:record:export')") + @Log(title = "滚动计划明细历史记录", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, DhcRollPlanDetailRecord dhcRollPlanDetailRecord) + { + List list = dhcRollPlanDetailRecordService.selectDhcRollPlanDetailRecordList(dhcRollPlanDetailRecord); + ExcelUtil util = new ExcelUtil(DhcRollPlanDetailRecord.class); + util.exportExcel(response, list, "滚动计划明细历史记录数据"); + } + + /** + * 获取滚动计划明细历史记录详细信息 + */ + @ApiOperation("获取滚动计划明细历史记录详细信息") + @PreAuthorize("@ss.hasPermi('dhc:record:query')") + @GetMapping(value = "/{rollPlanDetailRecordId}") + public AjaxResult getInfo(@PathVariable("rollPlanDetailRecordId") Long rollPlanDetailRecordId) + { + return success(dhcRollPlanDetailRecordService.selectDhcRollPlanDetailRecordByRollPlanDetailRecordId(rollPlanDetailRecordId)); + } + + /** + * 新增滚动计划明细历史记录 + */ + @ApiOperation("新增滚动计划明细历史记录") + @PreAuthorize("@ss.hasPermi('dhc:record:add')") + @Log(title = "滚动计划明细历史记录", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody DhcRollPlanDetailRecord dhcRollPlanDetailRecord) + { + return toAjax(dhcRollPlanDetailRecordService.insertDhcRollPlanDetailRecord(dhcRollPlanDetailRecord)); + } + + /** + * 修改滚动计划明细历史记录 + */ + @ApiOperation("修改滚动计划明细历史记录") + @PreAuthorize("@ss.hasPermi('dhc:record:edit')") + @Log(title = "滚动计划明细历史记录", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody DhcRollPlanDetailRecord dhcRollPlanDetailRecord) + { + return toAjax(dhcRollPlanDetailRecordService.updateDhcRollPlanDetailRecord(dhcRollPlanDetailRecord)); + } + + /** + * 删除滚动计划明细历史记录 + */ + @ApiOperation("删除滚动计划明细历史记录") + @PreAuthorize("@ss.hasPermi('dhc:record:remove')") + @Log(title = "滚动计划明细历史记录", businessType = BusinessType.DELETE) + @DeleteMapping("/{rollPlanDetailRecordIds}") + public AjaxResult remove(@PathVariable Long[] rollPlanDetailRecordIds) + { + return toAjax(dhcRollPlanDetailRecordService.deleteDhcRollPlanDetailRecordByRollPlanDetailRecordIds(rollPlanDetailRecordIds)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanTitleController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanTitleController.java new file mode 100644 index 0000000..79b922c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanTitleController.java @@ -0,0 +1,113 @@ +package com.ruoyi.web.controller.dhc; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.dhc.domain.DhcRollPlanTitle; +import com.ruoyi.dhc.service.IDhcRollPlanTitleService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; + +/** + * 滚动计划头Controller + * + * @author ruoyi + * @date 2025-03-14 + */ +@Api(tags = "滚动计划头管理") +@RestController +@RequestMapping("/dhc/dhcRollPlanTitle") +public class DhcRollPlanTitleController extends BaseController +{ + @Autowired + private IDhcRollPlanTitleService dhcRollPlanTitleService; + + /** + * 查询滚动计划头列表 + */ + @ApiOperation("查询滚动计划头列表") + @PreAuthorize("@ss.hasPermi('dhc:title:list')") + @GetMapping("/list") + public TableDataInfo list(DhcRollPlanTitle dhcRollPlanTitle) + { + startPage(); + List list = dhcRollPlanTitleService.selectDhcRollPlanTitleList(dhcRollPlanTitle); + return getDataTable(list); + } + + /** + * 导出滚动计划头列表 + */ + @ApiOperation("导出滚动计划头列表") + @PreAuthorize("@ss.hasPermi('dhc:title:export')") + @Log(title = "滚动计划头", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, DhcRollPlanTitle dhcRollPlanTitle) + { + List list = dhcRollPlanTitleService.selectDhcRollPlanTitleList(dhcRollPlanTitle); + ExcelUtil util = new ExcelUtil(DhcRollPlanTitle.class); + util.exportExcel(response, list, "滚动计划头数据"); + } + + /** + * 获取滚动计划头详细信息 + */ + @ApiOperation("获取滚动计划头详细信息") + @PreAuthorize("@ss.hasPermi('dhc:title:query')") + @GetMapping(value = "/{rollPlanId}") + public AjaxResult getInfo(@PathVariable("rollPlanId") Long rollPlanId) + { + return success(dhcRollPlanTitleService.selectDhcRollPlanTitleByRollPlanId(rollPlanId)); + } + + /** + * 新增滚动计划头 + */ + @ApiOperation("新增滚动计划头") + @PreAuthorize("@ss.hasPermi('dhc:title:add')") + @Log(title = "滚动计划头", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody DhcRollPlanTitle dhcRollPlanTitle) + { + return toAjax(dhcRollPlanTitleService.insertDhcRollPlanTitle(dhcRollPlanTitle)); + } + + /** + * 修改滚动计划头 + */ + @ApiOperation("修改滚动计划头") + @PreAuthorize("@ss.hasPermi('dhc:title:edit')") + @Log(title = "滚动计划头", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody DhcRollPlanTitle dhcRollPlanTitle) + { + return toAjax(dhcRollPlanTitleService.updateDhcRollPlanTitle(dhcRollPlanTitle)); + } + + /** + * 删除滚动计划头 + */ + @ApiOperation("删除滚动计划头") + @PreAuthorize("@ss.hasPermi('dhc:title:remove')") + @Log(title = "滚动计划头", businessType = BusinessType.DELETE) + @DeleteMapping("/{rollPlanIds}") + public AjaxResult remove(@PathVariable Long[] rollPlanIds) + { + return toAjax(dhcRollPlanTitleService.deleteDhcRollPlanTitleByRollPlanIds(rollPlanIds)); + } +} diff --git a/ruoyi-plan/src/main/java/com/ruoyi/dhc/domain/DhcRollPlanTitleRecord.java b/ruoyi-plan/src/main/java/com/ruoyi/dhc/domain/DhcRollPlanTitleRecord.java deleted file mode 100644 index 6ea4f84..0000000 --- a/ruoyi-plan/src/main/java/com/ruoyi/dhc/domain/DhcRollPlanTitleRecord.java +++ /dev/null @@ -1,222 +0,0 @@ -package com.ruoyi.dhc.domain; - -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; -import com.ruoyi.common.annotation.Excel; -import com.ruoyi.common.core.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -/** - * 滚动计划头历史记录对象 dhc_roll_plan_title_record - * - * @author ruoyi - * @date 2024-09-23 - */ -@ApiModel(value = "DhcRollPlanTitleRecord", description = "滚动计划头历史记录") -public class DhcRollPlanTitleRecord extends BaseEntity -{ - private static final long serialVersionUID = 1L; - - /** 滚动计划头历史记录id */ - private Long rollPlanRecordId; - - /** 滚动计划id */ - @ApiModelProperty("滚动计划id") - @Excel(name = "滚动计划id") - private Long rollPlanId; - - /** 产品线编码 */ - @ApiModelProperty("产品线编码") - @Excel(name = "产品线编码") - private String productLine; - - /** 产品线名称 */ - @ApiModelProperty("产品线名称") - @Excel(name = "产品线名称") - private String productLineName; - - /** 销售大区编码 */ - @ApiModelProperty("销售大区编码") - @Excel(name = "销售大区编码") - private String areaCodeLarge; - - /** 销售大区名称 */ - @ApiModelProperty("销售大区名称") - @Excel(name = "销售大区名称") - private String areaNameLarge; - - /** 销售小区编码 */ - @ApiModelProperty("销售小区编码") - @Excel(name = "销售小区编码") - private String areaCodeSmall; - - /** 销售小区名称 */ - @ApiModelProperty("销售小区名称") - @Excel(name = "销售小区名称") - private String areaNameSmall; - - /** 提报年 */ - @ApiModelProperty("提报年") - @Excel(name = "提报年") - private Long planYear; - - /** 提报周 */ - @ApiModelProperty("提报周") - @Excel(name = "提报周") - private Long planWeek; - - /** 锁定周 */ - @ApiModelProperty("锁定周") - @Excel(name = "锁定周") - private Long lockWeeks; - - /** 滚动计划状态(0初始化 1已提交 2已审核 3评审版已发布 4.正式版已发布) */ - @ApiModelProperty("滚动计划状态(0初始化 1已提交 2已审核 3评审版已发布 4.正式版已发布)") - @Excel(name = "滚动计划状态", readConverterExp = "0=初始化,1=已提交,2=已审核,3=评审版已发布,4=.正式版已发布") - private String status; - - /** 删除标志(0代表存在 1代表删除) */ - private String delFlag; - - public void setRollPlanRecordId(Long rollPlanRecordId) - { - this.rollPlanRecordId = rollPlanRecordId; - } - - public Long getRollPlanRecordId() - { - return rollPlanRecordId; - } - public void setRollPlanId(Long rollPlanId) - { - this.rollPlanId = rollPlanId; - } - - public Long getRollPlanId() - { - return rollPlanId; - } - public void setProductLine(String productLine) - { - this.productLine = productLine; - } - - public String getProductLine() - { - return productLine; - } - public void setProductLineName(String productLineName) - { - this.productLineName = productLineName; - } - - public String getProductLineName() - { - return productLineName; - } - public void setAreaCodeLarge(String areaCodeLarge) - { - this.areaCodeLarge = areaCodeLarge; - } - - public String getAreaCodeLarge() - { - return areaCodeLarge; - } - public void setAreaNameLarge(String areaNameLarge) - { - this.areaNameLarge = areaNameLarge; - } - - public String getAreaNameLarge() - { - return areaNameLarge; - } - public void setAreaCodeSmall(String areaCodeSmall) - { - this.areaCodeSmall = areaCodeSmall; - } - - public String getAreaCodeSmall() - { - return areaCodeSmall; - } - public void setAreaNameSmall(String areaNameSmall) - { - this.areaNameSmall = areaNameSmall; - } - - public String getAreaNameSmall() - { - return areaNameSmall; - } - public void setPlanYear(Long planYear) - { - this.planYear = planYear; - } - - public Long getPlanYear() - { - return planYear; - } - public void setPlanWeek(Long planWeek) - { - this.planWeek = planWeek; - } - - public Long getPlanWeek() - { - return planWeek; - } - public void setLockWeeks(Long lockWeeks) - { - this.lockWeeks = lockWeeks; - } - - public Long getLockWeeks() - { - return lockWeeks; - } - public void setStatus(String status) - { - this.status = status; - } - - public String getStatus() - { - return status; - } - public void setDelFlag(String delFlag) - { - this.delFlag = delFlag; - } - - public String getDelFlag() - { - return delFlag; - } - - @Override - public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("rollPlanRecordId", getRollPlanRecordId()) - .append("rollPlanId", getRollPlanId()) - .append("productLine", getProductLine()) - .append("productLineName", getProductLineName()) - .append("areaCodeLarge", getAreaCodeLarge()) - .append("areaNameLarge", getAreaNameLarge()) - .append("areaCodeSmall", getAreaCodeSmall()) - .append("areaNameSmall", getAreaNameSmall()) - .append("planYear", getPlanYear()) - .append("planWeek", getPlanWeek()) - .append("lockWeeks", getLockWeeks()) - .append("status", getStatus()) - .append("delFlag", getDelFlag()) - .append("createBy", getCreateBy()) - .append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()) - .append("updateTime", getUpdateTime()) - .toString(); - } -} \ No newline at end of file diff --git a/ruoyi-plan/src/main/java/com/ruoyi/dhc/mapper/DhcRollPlanTitleRecordMapper.java b/ruoyi-plan/src/main/java/com/ruoyi/dhc/mapper/DhcRollPlanTitleRecordMapper.java deleted file mode 100644 index e16258d..0000000 --- a/ruoyi-plan/src/main/java/com/ruoyi/dhc/mapper/DhcRollPlanTitleRecordMapper.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.dhc.mapper; - -import java.util.List; -import com.ruoyi.dhc.domain.DhcRollPlanTitleRecord; - -/** - * 滚动计划头历史记录Mapper接口 - * - * @author ruoyi - * @date 2024-09-23 - */ -public interface DhcRollPlanTitleRecordMapper -{ - /** - * 查询滚动计划头历史记录 - * - * @param rollPlanRecordId 滚动计划头历史记录主键 - * @return 滚动计划头历史记录 - */ - public DhcRollPlanTitleRecord selectDhcRollPlanTitleRecordByRollPlanRecordId(Long rollPlanRecordId); - - /** - * 查询滚动计划头历史记录列表 - * - * @param dhcRollPlanTitleRecord 滚动计划头历史记录 - * @return 滚动计划头历史记录集合 - */ - public List selectDhcRollPlanTitleRecordList(DhcRollPlanTitleRecord dhcRollPlanTitleRecord); - - /** - * 新增滚动计划头历史记录 - * - * @param dhcRollPlanTitleRecord 滚动计划头历史记录 - * @return 结果 - */ - public int insertDhcRollPlanTitleRecord(DhcRollPlanTitleRecord dhcRollPlanTitleRecord); - - /** - * 修改滚动计划头历史记录 - * - * @param dhcRollPlanTitleRecord 滚动计划头历史记录 - * @return 结果 - */ - public int updateDhcRollPlanTitleRecord(DhcRollPlanTitleRecord dhcRollPlanTitleRecord); - - /** - * 删除滚动计划头历史记录 - * - * @param rollPlanRecordId 滚动计划头历史记录主键 - * @return 结果 - */ - public int deleteDhcRollPlanTitleRecordByRollPlanRecordId(Long rollPlanRecordId); - - /** - * 批量删除滚动计划头历史记录 - * - * @param rollPlanRecordIds 需要删除的数据主键集合 - * @return 结果 - */ - public int deleteDhcRollPlanTitleRecordByRollPlanRecordIds(Long[] rollPlanRecordIds); -} diff --git a/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/IDhcRollPlanTitleRecordService.java b/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/IDhcRollPlanTitleRecordService.java deleted file mode 100644 index 05e009e..0000000 --- a/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/IDhcRollPlanTitleRecordService.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.dhc.service; - -import java.util.List; -import com.ruoyi.dhc.domain.DhcRollPlanTitleRecord; - -/** - * 滚动计划头历史记录Service接口 - * - * @author ruoyi - * @date 2024-09-23 - */ -public interface IDhcRollPlanTitleRecordService -{ - /** - * 查询滚动计划头历史记录 - * - * @param rollPlanRecordId 滚动计划头历史记录主键 - * @return 滚动计划头历史记录 - */ - public DhcRollPlanTitleRecord selectDhcRollPlanTitleRecordByRollPlanRecordId(Long rollPlanRecordId); - - /** - * 查询滚动计划头历史记录列表 - * - * @param dhcRollPlanTitleRecord 滚动计划头历史记录 - * @return 滚动计划头历史记录集合 - */ - public List selectDhcRollPlanTitleRecordList(DhcRollPlanTitleRecord dhcRollPlanTitleRecord); - - /** - * 新增滚动计划头历史记录 - * - * @param dhcRollPlanTitleRecord 滚动计划头历史记录 - * @return 结果 - */ - public int insertDhcRollPlanTitleRecord(DhcRollPlanTitleRecord dhcRollPlanTitleRecord); - - /** - * 修改滚动计划头历史记录 - * - * @param dhcRollPlanTitleRecord 滚动计划头历史记录 - * @return 结果 - */ - public int updateDhcRollPlanTitleRecord(DhcRollPlanTitleRecord dhcRollPlanTitleRecord); - - /** - * 批量删除滚动计划头历史记录 - * - * @param rollPlanRecordIds 需要删除的滚动计划头历史记录主键集合 - * @return 结果 - */ - public int deleteDhcRollPlanTitleRecordByRollPlanRecordIds(Long[] rollPlanRecordIds); - - /** - * 删除滚动计划头历史记录信息 - * - * @param rollPlanRecordId 滚动计划头历史记录主键 - * @return 结果 - */ - public int deleteDhcRollPlanTitleRecordByRollPlanRecordId(Long rollPlanRecordId); -} diff --git a/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/impl/DhcRollPlanTitleRecordServiceImpl.java b/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/impl/DhcRollPlanTitleRecordServiceImpl.java deleted file mode 100644 index f7c138f..0000000 --- a/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/impl/DhcRollPlanTitleRecordServiceImpl.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.ruoyi.dhc.service.impl; - -import java.util.List; -import com.ruoyi.common.utils.DateUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import com.ruoyi.dhc.mapper.DhcRollPlanTitleRecordMapper; -import com.ruoyi.dhc.domain.DhcRollPlanTitleRecord; -import com.ruoyi.dhc.service.IDhcRollPlanTitleRecordService; - -/** - * 滚动计划头历史记录Service业务层处理 - * - * @author ruoyi - * @date 2024-09-23 - */ -@Service -public class DhcRollPlanTitleRecordServiceImpl implements IDhcRollPlanTitleRecordService -{ - @Autowired - private DhcRollPlanTitleRecordMapper dhcRollPlanTitleRecordMapper; - - /** - * 查询滚动计划头历史记录 - * - * @param rollPlanRecordId 滚动计划头历史记录主键 - * @return 滚动计划头历史记录 - */ - @Override - public DhcRollPlanTitleRecord selectDhcRollPlanTitleRecordByRollPlanRecordId(Long rollPlanRecordId) - { - return dhcRollPlanTitleRecordMapper.selectDhcRollPlanTitleRecordByRollPlanRecordId(rollPlanRecordId); - } - - /** - * 查询滚动计划头历史记录列表 - * - * @param dhcRollPlanTitleRecord 滚动计划头历史记录 - * @return 滚动计划头历史记录 - */ - @Override - public List selectDhcRollPlanTitleRecordList(DhcRollPlanTitleRecord dhcRollPlanTitleRecord) - { - return dhcRollPlanTitleRecordMapper.selectDhcRollPlanTitleRecordList(dhcRollPlanTitleRecord); - } - - /** - * 新增滚动计划头历史记录 - * - * @param dhcRollPlanTitleRecord 滚动计划头历史记录 - * @return 结果 - */ - @Override - public int insertDhcRollPlanTitleRecord(DhcRollPlanTitleRecord dhcRollPlanTitleRecord) - { - dhcRollPlanTitleRecord.setCreateTime(DateUtils.getNowDate()); - return dhcRollPlanTitleRecordMapper.insertDhcRollPlanTitleRecord(dhcRollPlanTitleRecord); - } - - /** - * 修改滚动计划头历史记录 - * - * @param dhcRollPlanTitleRecord 滚动计划头历史记录 - * @return 结果 - */ - @Override - public int updateDhcRollPlanTitleRecord(DhcRollPlanTitleRecord dhcRollPlanTitleRecord) - { - dhcRollPlanTitleRecord.setUpdateTime(DateUtils.getNowDate()); - return dhcRollPlanTitleRecordMapper.updateDhcRollPlanTitleRecord(dhcRollPlanTitleRecord); - } - - /** - * 批量删除滚动计划头历史记录 - * - * @param rollPlanRecordIds 需要删除的滚动计划头历史记录主键 - * @return 结果 - */ - @Override - public int deleteDhcRollPlanTitleRecordByRollPlanRecordIds(Long[] rollPlanRecordIds) - { - return dhcRollPlanTitleRecordMapper.deleteDhcRollPlanTitleRecordByRollPlanRecordIds(rollPlanRecordIds); - } - - /** - * 删除滚动计划头历史记录信息 - * - * @param rollPlanRecordId 滚动计划头历史记录主键 - * @return 结果 - */ - @Override - public int deleteDhcRollPlanTitleRecordByRollPlanRecordId(Long rollPlanRecordId) - { - return dhcRollPlanTitleRecordMapper.deleteDhcRollPlanTitleRecordByRollPlanRecordId(rollPlanRecordId); - } -} diff --git a/ruoyi-plan/src/main/resources/mapper/dhc/DhcRollPlanTitleRecordMapper.xml b/ruoyi-plan/src/main/resources/mapper/dhc/DhcRollPlanTitleRecordMapper.xml deleted file mode 100644 index ed1b12d..0000000 --- a/ruoyi-plan/src/main/resources/mapper/dhc/DhcRollPlanTitleRecordMapper.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - select roll_plan_record_id, roll_plan_id, product_line, product_line_name, area_code_large, area_name_large, area_code_small, area_name_small, plan_year, plan_week, lock_weeks, status, del_flag, create_by, create_time, update_by, update_time from dhc_roll_plan_title_record - - - - - - - - insert into dhc_roll_plan_title_record - - roll_plan_id, - product_line, - product_line_name, - area_code_large, - area_name_large, - area_code_small, - area_name_small, - plan_year, - plan_week, - lock_weeks, - status, - del_flag, - create_by, - create_time, - update_by, - update_time, - - - #{rollPlanId}, - #{productLine}, - #{productLineName}, - #{areaCodeLarge}, - #{areaNameLarge}, - #{areaCodeSmall}, - #{areaNameSmall}, - #{planYear}, - #{planWeek}, - #{lockWeeks}, - #{status}, - #{delFlag}, - #{createBy}, - #{createTime}, - #{updateBy}, - #{updateTime}, - - - - - update dhc_roll_plan_title_record - - roll_plan_id = #{rollPlanId}, - product_line = #{productLine}, - product_line_name = #{productLineName}, - area_code_large = #{areaCodeLarge}, - area_name_large = #{areaNameLarge}, - area_code_small = #{areaCodeSmall}, - area_name_small = #{areaNameSmall}, - plan_year = #{planYear}, - plan_week = #{planWeek}, - lock_weeks = #{lockWeeks}, - status = #{status}, - del_flag = #{delFlag}, - create_by = #{createBy}, - create_time = #{createTime}, - update_by = #{updateBy}, - update_time = #{updateTime}, - - where roll_plan_record_id = #{rollPlanRecordId} - - - - delete from dhc_roll_plan_title_record where roll_plan_record_id = #{rollPlanRecordId} - - - - delete from dhc_roll_plan_title_record where roll_plan_record_id in - - #{rollPlanRecordId} - - - \ No newline at end of file