diff --git a/ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanDetailController.java b/ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanDetailController.java deleted file mode 100644 index faddaac..0000000 --- a/ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanDetailController.java +++ /dev/null @@ -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 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 list = dhcRollPlanDetailService.selectDhcRollPlanDetailList(dhcRollPlanDetail); - ExcelUtil util = new ExcelUtil(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)); - } -} diff --git a/ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanDetailRecordController.java b/ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanDetailRecordController.java deleted file mode 100644 index 67ce6c1..0000000 --- a/ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanDetailRecordController.java +++ /dev/null @@ -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 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 list = dhcRollPlanDetailRecordService.selectDhcRollPlanDetailRecordList(dhcRollPlanDetailRecord); - ExcelUtil util = new ExcelUtil(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)); - } -} diff --git a/ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanTitleController.java b/ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanTitleController.java deleted file mode 100644 index a1c7144..0000000 --- a/ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanTitleController.java +++ /dev/null @@ -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 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 list = dhcRollPlanTitleService.selectDhcRollPlanTitleList(dhcRollPlanTitle); - ExcelUtil util = new ExcelUtil(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)); - } -} diff --git a/ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanTitleRecordController.java b/ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanTitleRecordController.java deleted file mode 100644 index 6f58810..0000000 --- a/ruoyi-plan/src/main/java/com/ruoyi/dhc/controller/DhcRollPlanTitleRecordController.java +++ /dev/null @@ -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 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 list = dhcRollPlanTitleRecordService.selectDhcRollPlanTitleRecordList(dhcRollPlanTitleRecord); - ExcelUtil util = new ExcelUtil(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)); - } -}