8 changed files with 339 additions and 566 deletions
@ -0,0 +1,113 @@
@@ -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<DhcRollPlanDetail> 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<DhcRollPlanDetail> list = dhcRollPlanDetailService.selectDhcRollPlanDetailList(dhcRollPlanDetail); |
||||
ExcelUtil<DhcRollPlanDetail> util = new ExcelUtil<DhcRollPlanDetail>(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)); |
||||
} |
||||
} |
@ -0,0 +1,113 @@
@@ -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<DhcRollPlanDetailRecord> 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<DhcRollPlanDetailRecord> list = dhcRollPlanDetailRecordService.selectDhcRollPlanDetailRecordList(dhcRollPlanDetailRecord); |
||||
ExcelUtil<DhcRollPlanDetailRecord> util = new ExcelUtil<DhcRollPlanDetailRecord>(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)); |
||||
} |
||||
} |
@ -0,0 +1,113 @@
@@ -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<DhcRollPlanTitle> 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<DhcRollPlanTitle> list = dhcRollPlanTitleService.selectDhcRollPlanTitleList(dhcRollPlanTitle); |
||||
ExcelUtil<DhcRollPlanTitle> util = new ExcelUtil<DhcRollPlanTitle>(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)); |
||||
} |
||||
} |
@ -1,222 +0,0 @@
@@ -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(); |
||||
} |
||||
} |
@ -1,61 +0,0 @@
@@ -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<DhcRollPlanTitleRecord> 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); |
||||
} |
@ -1,61 +0,0 @@
@@ -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<DhcRollPlanTitleRecord> 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); |
||||
} |
@ -1,96 +0,0 @@
@@ -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<DhcRollPlanTitleRecord> 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); |
||||
} |
||||
} |
@ -1,126 +0,0 @@
@@ -1,126 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper |
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.ruoyi.dhc.mapper.DhcRollPlanTitleRecordMapper"> |
||||
|
||||
<resultMap type="DhcRollPlanTitleRecord" id="DhcRollPlanTitleRecordResult"> |
||||
<result property="rollPlanRecordId" column="roll_plan_record_id" /> |
||||
<result property="rollPlanId" column="roll_plan_id" /> |
||||
<result property="productLine" column="product_line" /> |
||||
<result property="productLineName" column="product_line_name" /> |
||||
<result property="areaCodeLarge" column="area_code_large" /> |
||||
<result property="areaNameLarge" column="area_name_large" /> |
||||
<result property="areaCodeSmall" column="area_code_small" /> |
||||
<result property="areaNameSmall" column="area_name_small" /> |
||||
<result property="planYear" column="plan_year" /> |
||||
<result property="planWeek" column="plan_week" /> |
||||
<result property="lockWeeks" column="lock_weeks" /> |
||||
<result property="status" column="status" /> |
||||
<result property="delFlag" column="del_flag" /> |
||||
<result property="createBy" column="create_by" /> |
||||
<result property="createTime" column="create_time" /> |
||||
<result property="updateBy" column="update_by" /> |
||||
<result property="updateTime" column="update_time" /> |
||||
</resultMap> |
||||
|
||||
<sql id="selectDhcRollPlanTitleRecordVo"> |
||||
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 |
||||
</sql> |
||||
|
||||
<select id="selectDhcRollPlanTitleRecordList" parameterType="DhcRollPlanTitleRecord" resultMap="DhcRollPlanTitleRecordResult"> |
||||
<include refid="selectDhcRollPlanTitleRecordVo"/> |
||||
<where> |
||||
<if test="rollPlanId != null "> and roll_plan_id = #{rollPlanId}</if> |
||||
<if test="productLine != null and productLine != ''"> and product_line = #{productLine}</if> |
||||
<if test="productLineName != null and productLineName != ''"> and product_line_name like concat('%', #{productLineName}, '%')</if> |
||||
<if test="areaCodeLarge != null and areaCodeLarge != ''"> and area_code_large = #{areaCodeLarge}</if> |
||||
<if test="areaNameLarge != null and areaNameLarge != ''"> and area_name_large = #{areaNameLarge}</if> |
||||
<if test="areaCodeSmall != null and areaCodeSmall != ''"> and area_code_small = #{areaCodeSmall}</if> |
||||
<if test="areaNameSmall != null and areaNameSmall != ''"> and area_name_small = #{areaNameSmall}</if> |
||||
<if test="planYear != null "> and plan_year = #{planYear}</if> |
||||
<if test="planWeek != null "> and plan_week = #{planWeek}</if> |
||||
<if test="lockWeeks != null "> and lock_weeks = #{lockWeeks}</if> |
||||
<if test="status != null and status != ''"> and status = #{status}</if> |
||||
</where> |
||||
</select> |
||||
|
||||
<select id="selectDhcRollPlanTitleRecordByRollPlanRecordId" parameterType="Long" resultMap="DhcRollPlanTitleRecordResult"> |
||||
<include refid="selectDhcRollPlanTitleRecordVo"/> |
||||
where roll_plan_record_id = #{rollPlanRecordId} |
||||
</select> |
||||
|
||||
<insert id="insertDhcRollPlanTitleRecord" parameterType="DhcRollPlanTitleRecord" useGeneratedKeys="true" keyProperty="rollPlanRecordId"> |
||||
insert into dhc_roll_plan_title_record |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<if test="rollPlanId != null">roll_plan_id,</if> |
||||
<if test="productLine != null">product_line,</if> |
||||
<if test="productLineName != null">product_line_name,</if> |
||||
<if test="areaCodeLarge != null">area_code_large,</if> |
||||
<if test="areaNameLarge != null">area_name_large,</if> |
||||
<if test="areaCodeSmall != null">area_code_small,</if> |
||||
<if test="areaNameSmall != null">area_name_small,</if> |
||||
<if test="planYear != null">plan_year,</if> |
||||
<if test="planWeek != null">plan_week,</if> |
||||
<if test="lockWeeks != null">lock_weeks,</if> |
||||
<if test="status != null">status,</if> |
||||
<if test="delFlag != null">del_flag,</if> |
||||
<if test="createBy != null">create_by,</if> |
||||
<if test="createTime != null">create_time,</if> |
||||
<if test="updateBy != null">update_by,</if> |
||||
<if test="updateTime != null">update_time,</if> |
||||
</trim> |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
<if test="rollPlanId != null">#{rollPlanId},</if> |
||||
<if test="productLine != null">#{productLine},</if> |
||||
<if test="productLineName != null">#{productLineName},</if> |
||||
<if test="areaCodeLarge != null">#{areaCodeLarge},</if> |
||||
<if test="areaNameLarge != null">#{areaNameLarge},</if> |
||||
<if test="areaCodeSmall != null">#{areaCodeSmall},</if> |
||||
<if test="areaNameSmall != null">#{areaNameSmall},</if> |
||||
<if test="planYear != null">#{planYear},</if> |
||||
<if test="planWeek != null">#{planWeek},</if> |
||||
<if test="lockWeeks != null">#{lockWeeks},</if> |
||||
<if test="status != null">#{status},</if> |
||||
<if test="delFlag != null">#{delFlag},</if> |
||||
<if test="createBy != null">#{createBy},</if> |
||||
<if test="createTime != null">#{createTime},</if> |
||||
<if test="updateBy != null">#{updateBy},</if> |
||||
<if test="updateTime != null">#{updateTime},</if> |
||||
</trim> |
||||
</insert> |
||||
|
||||
<update id="updateDhcRollPlanTitleRecord" parameterType="DhcRollPlanTitleRecord"> |
||||
update dhc_roll_plan_title_record |
||||
<trim prefix="SET" suffixOverrides=","> |
||||
<if test="rollPlanId != null">roll_plan_id = #{rollPlanId},</if> |
||||
<if test="productLine != null">product_line = #{productLine},</if> |
||||
<if test="productLineName != null">product_line_name = #{productLineName},</if> |
||||
<if test="areaCodeLarge != null">area_code_large = #{areaCodeLarge},</if> |
||||
<if test="areaNameLarge != null">area_name_large = #{areaNameLarge},</if> |
||||
<if test="areaCodeSmall != null">area_code_small = #{areaCodeSmall},</if> |
||||
<if test="areaNameSmall != null">area_name_small = #{areaNameSmall},</if> |
||||
<if test="planYear != null">plan_year = #{planYear},</if> |
||||
<if test="planWeek != null">plan_week = #{planWeek},</if> |
||||
<if test="lockWeeks != null">lock_weeks = #{lockWeeks},</if> |
||||
<if test="status != null">status = #{status},</if> |
||||
<if test="delFlag != null">del_flag = #{delFlag},</if> |
||||
<if test="createBy != null">create_by = #{createBy},</if> |
||||
<if test="createTime != null">create_time = #{createTime},</if> |
||||
<if test="updateBy != null">update_by = #{updateBy},</if> |
||||
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
</trim> |
||||
where roll_plan_record_id = #{rollPlanRecordId} |
||||
</update> |
||||
|
||||
<delete id="deleteDhcRollPlanTitleRecordByRollPlanRecordId" parameterType="Long"> |
||||
delete from dhc_roll_plan_title_record where roll_plan_record_id = #{rollPlanRecordId} |
||||
</delete> |
||||
|
||||
<delete id="deleteDhcRollPlanTitleRecordByRollPlanRecordIds" parameterType="String"> |
||||
delete from dhc_roll_plan_title_record where roll_plan_record_id in |
||||
<foreach item="rollPlanRecordId" collection="array" open="(" separator="," close=")"> |
||||
#{rollPlanRecordId} |
||||
</foreach> |
||||
</delete> |
||||
</mapper> |
Loading…
Reference in new issue