Browse Source

添加滚动计划相关表

master
Claude Lee 2 months ago
parent
commit
27a4a17b71
  1. 104
      ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanDetailController.java
  2. 104
      ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanDetailRecordController.java
  3. 104
      ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanTitleController.java
  4. 104
      ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanTitleRecordController.java

104
ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanDetailController.java

@ -1,104 +0,0 @@ @@ -1,104 +0,0 @@
package com.ruoyi.dhc.controller;
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;
/**
* 滚动计划明细Controller
*
* @author ruoyi
* @date 2024-09-23
*/
@RestController
@RequestMapping("/dhc/detail")
public class DhcRollPlanDetailController extends BaseController
{
@Autowired
private IDhcRollPlanDetailService dhcRollPlanDetailService;
/**
* 查询滚动计划明细列表
*/
@PreAuthorize("@ss.hasPermi('dhc:detail:list')")
@GetMapping("/list")
public TableDataInfo list(DhcRollPlanDetail dhcRollPlanDetail)
{
startPage();
List<DhcRollPlanDetail> list = dhcRollPlanDetailService.selectDhcRollPlanDetailList(dhcRollPlanDetail);
return getDataTable(list);
}
/**
* 导出滚动计划明细列表
*/
@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, "滚动计划明细数据");
}
/**
* 获取滚动计划明细详细信息
*/
@PreAuthorize("@ss.hasPermi('dhc:detail:query')")
@GetMapping(value = "/{rollPlanDetailId}")
public AjaxResult getInfo(@PathVariable("rollPlanDetailId") Long rollPlanDetailId)
{
return success(dhcRollPlanDetailService.selectDhcRollPlanDetailByRollPlanDetailId(rollPlanDetailId));
}
/**
* 新增滚动计划明细
*/
@PreAuthorize("@ss.hasPermi('dhc:detail:add')")
@Log(title = "滚动计划明细", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DhcRollPlanDetail dhcRollPlanDetail)
{
return toAjax(dhcRollPlanDetailService.insertDhcRollPlanDetail(dhcRollPlanDetail));
}
/**
* 修改滚动计划明细
*/
@PreAuthorize("@ss.hasPermi('dhc:detail:edit')")
@Log(title = "滚动计划明细", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DhcRollPlanDetail dhcRollPlanDetail)
{
return toAjax(dhcRollPlanDetailService.updateDhcRollPlanDetail(dhcRollPlanDetail));
}
/**
* 删除滚动计划明细
*/
@PreAuthorize("@ss.hasPermi('dhc:detail:remove')")
@Log(title = "滚动计划明细", businessType = BusinessType.DELETE)
@DeleteMapping("/{rollPlanDetailIds}")
public AjaxResult remove(@PathVariable Long[] rollPlanDetailIds)
{
return toAjax(dhcRollPlanDetailService.deleteDhcRollPlanDetailByRollPlanDetailIds(rollPlanDetailIds));
}
}

104
ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanDetailRecordController.java

@ -1,104 +0,0 @@ @@ -1,104 +0,0 @@
package com.ruoyi.dhc.controller;
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;
/**
* 滚动计划明细历史记录Controller
*
* @author ruoyi
* @date 2024-09-23
*/
@RestController
@RequestMapping("/dhc/record")
public class DhcRollPlanDetailRecordController extends BaseController
{
@Autowired
private IDhcRollPlanDetailRecordService dhcRollPlanDetailRecordService;
/**
* 查询滚动计划明细历史记录列表
*/
@PreAuthorize("@ss.hasPermi('dhc:record:list')")
@GetMapping("/list")
public TableDataInfo list(DhcRollPlanDetailRecord dhcRollPlanDetailRecord)
{
startPage();
List<DhcRollPlanDetailRecord> list = dhcRollPlanDetailRecordService.selectDhcRollPlanDetailRecordList(dhcRollPlanDetailRecord);
return getDataTable(list);
}
/**
* 导出滚动计划明细历史记录列表
*/
@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, "滚动计划明细历史记录数据");
}
/**
* 获取滚动计划明细历史记录详细信息
*/
@PreAuthorize("@ss.hasPermi('dhc:record:query')")
@GetMapping(value = "/{rollPlanDetailRecordId}")
public AjaxResult getInfo(@PathVariable("rollPlanDetailRecordId") Long rollPlanDetailRecordId)
{
return success(dhcRollPlanDetailRecordService.selectDhcRollPlanDetailRecordByRollPlanDetailRecordId(rollPlanDetailRecordId));
}
/**
* 新增滚动计划明细历史记录
*/
@PreAuthorize("@ss.hasPermi('dhc:record:add')")
@Log(title = "滚动计划明细历史记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DhcRollPlanDetailRecord dhcRollPlanDetailRecord)
{
return toAjax(dhcRollPlanDetailRecordService.insertDhcRollPlanDetailRecord(dhcRollPlanDetailRecord));
}
/**
* 修改滚动计划明细历史记录
*/
@PreAuthorize("@ss.hasPermi('dhc:record:edit')")
@Log(title = "滚动计划明细历史记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DhcRollPlanDetailRecord dhcRollPlanDetailRecord)
{
return toAjax(dhcRollPlanDetailRecordService.updateDhcRollPlanDetailRecord(dhcRollPlanDetailRecord));
}
/**
* 删除滚动计划明细历史记录
*/
@PreAuthorize("@ss.hasPermi('dhc:record:remove')")
@Log(title = "滚动计划明细历史记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{rollPlanDetailRecordIds}")
public AjaxResult remove(@PathVariable Long[] rollPlanDetailRecordIds)
{
return toAjax(dhcRollPlanDetailRecordService.deleteDhcRollPlanDetailRecordByRollPlanDetailRecordIds(rollPlanDetailRecordIds));
}
}

104
ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanTitleController.java

@ -1,104 +0,0 @@ @@ -1,104 +0,0 @@
package com.ruoyi.dhc.controller;
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;
/**
* 滚动计划头Controller
*
* @author ruoyi
* @date 2024-09-23
*/
@RestController
@RequestMapping("/dhc/title")
public class DhcRollPlanTitleController extends BaseController
{
@Autowired
private IDhcRollPlanTitleService dhcRollPlanTitleService;
/**
* 查询滚动计划头列表
*/
@PreAuthorize("@ss.hasPermi('dhc:title:list')")
@GetMapping("/list")
public TableDataInfo list(DhcRollPlanTitle dhcRollPlanTitle)
{
startPage();
List<DhcRollPlanTitle> list = dhcRollPlanTitleService.selectDhcRollPlanTitleList(dhcRollPlanTitle);
return getDataTable(list);
}
/**
* 导出滚动计划头列表
*/
@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, "滚动计划头数据");
}
/**
* 获取滚动计划头详细信息
*/
@PreAuthorize("@ss.hasPermi('dhc:title:query')")
@GetMapping(value = "/{rollPlanId}")
public AjaxResult getInfo(@PathVariable("rollPlanId") Long rollPlanId)
{
return success(dhcRollPlanTitleService.selectDhcRollPlanTitleByRollPlanId(rollPlanId));
}
/**
* 新增滚动计划头
*/
@PreAuthorize("@ss.hasPermi('dhc:title:add')")
@Log(title = "滚动计划头", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DhcRollPlanTitle dhcRollPlanTitle)
{
return toAjax(dhcRollPlanTitleService.insertDhcRollPlanTitle(dhcRollPlanTitle));
}
/**
* 修改滚动计划头
*/
@PreAuthorize("@ss.hasPermi('dhc:title:edit')")
@Log(title = "滚动计划头", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DhcRollPlanTitle dhcRollPlanTitle)
{
return toAjax(dhcRollPlanTitleService.updateDhcRollPlanTitle(dhcRollPlanTitle));
}
/**
* 删除滚动计划头
*/
@PreAuthorize("@ss.hasPermi('dhc:title:remove')")
@Log(title = "滚动计划头", businessType = BusinessType.DELETE)
@DeleteMapping("/{rollPlanIds}")
public AjaxResult remove(@PathVariable Long[] rollPlanIds)
{
return toAjax(dhcRollPlanTitleService.deleteDhcRollPlanTitleByRollPlanIds(rollPlanIds));
}
}

104
ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanTitleRecordController.java

@ -1,104 +0,0 @@ @@ -1,104 +0,0 @@
package com.ruoyi.dhc.controller;
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.DhcRollPlanTitleRecord;
import com.ruoyi.dhc.service.IDhcRollPlanTitleRecordService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 滚动计划头历史记录Controller
*
* @author ruoyi
* @date 2024-09-23
*/
@RestController
@RequestMapping("/dhc/record")
public class DhcRollPlanTitleRecordController extends BaseController
{
@Autowired
private IDhcRollPlanTitleRecordService dhcRollPlanTitleRecordService;
/**
* 查询滚动计划头历史记录列表
*/
@PreAuthorize("@ss.hasPermi('dhc:record:list')")
@GetMapping("/list")
public TableDataInfo list(DhcRollPlanTitleRecord dhcRollPlanTitleRecord)
{
startPage();
List<DhcRollPlanTitleRecord> list = dhcRollPlanTitleRecordService.selectDhcRollPlanTitleRecordList(dhcRollPlanTitleRecord);
return getDataTable(list);
}
/**
* 导出滚动计划头历史记录列表
*/
@PreAuthorize("@ss.hasPermi('dhc:record:export')")
@Log(title = "滚动计划头历史记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DhcRollPlanTitleRecord dhcRollPlanTitleRecord)
{
List<DhcRollPlanTitleRecord> list = dhcRollPlanTitleRecordService.selectDhcRollPlanTitleRecordList(dhcRollPlanTitleRecord);
ExcelUtil<DhcRollPlanTitleRecord> util = new ExcelUtil<DhcRollPlanTitleRecord>(DhcRollPlanTitleRecord.class);
util.exportExcel(response, list, "滚动计划头历史记录数据");
}
/**
* 获取滚动计划头历史记录详细信息
*/
@PreAuthorize("@ss.hasPermi('dhc:record:query')")
@GetMapping(value = "/{rollPlanRecordId}")
public AjaxResult getInfo(@PathVariable("rollPlanRecordId") Long rollPlanRecordId)
{
return success(dhcRollPlanTitleRecordService.selectDhcRollPlanTitleRecordByRollPlanRecordId(rollPlanRecordId));
}
/**
* 新增滚动计划头历史记录
*/
@PreAuthorize("@ss.hasPermi('dhc:record:add')")
@Log(title = "滚动计划头历史记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DhcRollPlanTitleRecord dhcRollPlanTitleRecord)
{
return toAjax(dhcRollPlanTitleRecordService.insertDhcRollPlanTitleRecord(dhcRollPlanTitleRecord));
}
/**
* 修改滚动计划头历史记录
*/
@PreAuthorize("@ss.hasPermi('dhc:record:edit')")
@Log(title = "滚动计划头历史记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DhcRollPlanTitleRecord dhcRollPlanTitleRecord)
{
return toAjax(dhcRollPlanTitleRecordService.updateDhcRollPlanTitleRecord(dhcRollPlanTitleRecord));
}
/**
* 删除滚动计划头历史记录
*/
@PreAuthorize("@ss.hasPermi('dhc:record:remove')")
@Log(title = "滚动计划头历史记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{rollPlanRecordIds}")
public AjaxResult remove(@PathVariable Long[] rollPlanRecordIds)
{
return toAjax(dhcRollPlanTitleRecordService.deleteDhcRollPlanTitleRecordByRollPlanRecordIds(rollPlanRecordIds));
}
}
Loading…
Cancel
Save