From 07f52bd4f92584c3dc2fa1c617ed8cea35c8541b Mon Sep 17 00:00:00 2001 From: 20918 <2091823062@qq.com> Date: Wed, 21 Aug 2024 11:22:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=BD=E4=BD=93=E4=BF=9D=E5=AD=98=E7=BB=B4?= =?UTF-8?q?=E4=BF=AE=E9=94=80=E6=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/carrier/CarrierController.java | 9 --- .../carrier/DestoryCarrierController.java | 68 ++++++++++++++++++ .../carrier/MaintainCarrierController.java | 68 ++++++++++++++++++ .../carrier/ReceiveCarrierController.java | 68 ++++++++++++++++++ .../carrier/SaveCarrierController.java | 69 +++++++++++++++++++ .../carrier/UseCarrierController.java | 69 +++++++++++++++++++ .../TdPropertyEmentDestoryController.java | 2 +- 7 files changed, 343 insertions(+), 10 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/DestoryCarrierController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/MaintainCarrierController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/ReceiveCarrierController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/SaveCarrierController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/UseCarrierController.java diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/CarrierController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/CarrierController.java index 5b1aa6c..c6e2eeb 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/CarrierController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/CarrierController.java @@ -28,20 +28,17 @@ import java.util.List; @RequestMapping("/system/carrier") public class CarrierController extends BaseController { - private String prefix = "system/carrier"; @Resource private CarrierManager carrierManager; - @RequiresPermissions("system:carrier:view") @GetMapping() public String carrier() { return prefix + "/carrier"; } - /** * 载体列表 */ @@ -126,10 +123,4 @@ public class CarrierController extends BaseController { return toAjax(carrierManager.updateStatus(id,status)); } - - - - - - } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/DestoryCarrierController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/DestoryCarrierController.java new file mode 100644 index 0000000..df0c2a4 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/DestoryCarrierController.java @@ -0,0 +1,68 @@ +package com.ruoyi.web.controller.carrier; + +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.carrier.TdCarrier; +import com.ruoyi.web.controller.manager.CarrierManager; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 销毁Controller + */ +@Controller +@RequestMapping("/system/destoryCarrier") +public class DestoryCarrierController extends BaseController { + private String prefix = "system/carrier/destoryCarrier"; + + @Resource + private CarrierManager carrierManager; + + @RequiresPermissions("system:destoryCarrier:view") + @GetMapping() + public String carrier() { + return prefix + "/destoryCarrier"; + } + + /** + * 载体列表 + */ + @RequiresPermissions("system:destoryCarrier:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TdCarrier tdCarrier) { + startPage(); + List carriers = carrierManager.selectTdCarrierList(tdCarrier); + return getDataTable(carriers); + } + + /** + * 国家秘密载体销毁 + */ + @RequiresPermissions("system:destoryCarrier:edit") + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) { + TdCarrier tdCarrier = carrierManager.selectTdCarrier(id); + mmap.put("tdCarrier", tdCarrier); + return prefix + "/edit"; + } + + /** + * 国家秘密载体销毁 + */ + @RequiresPermissions("system:destoryCarrier:edit") + @Log(title = "国家秘密载体销毁", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TdCarrier tdCarrier) { + return toAjax(carrierManager.saveOrUpdate(tdCarrier)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/MaintainCarrierController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/MaintainCarrierController.java new file mode 100644 index 0000000..c5a619f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/MaintainCarrierController.java @@ -0,0 +1,68 @@ +package com.ruoyi.web.controller.carrier; + +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.carrier.TdCarrier; +import com.ruoyi.web.controller.manager.CarrierManager; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 维修Controller + */ +@Controller +@RequestMapping("/system/maintainCarrier") +public class MaintainCarrierController extends BaseController { + private String prefix = "system/carrier/maintainCarrier"; + + @Resource + private CarrierManager carrierManager; + + @RequiresPermissions("system:maintainCarrier:view") + @GetMapping() + public String carrier() { + return prefix + "/maintainCarrier"; + } + + /** + * 载体列表 + */ + @RequiresPermissions("system:maintainCarrier:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TdCarrier tdCarrier) { + startPage(); + List carriers = carrierManager.selectTdCarrierList(tdCarrier); + return getDataTable(carriers); + } + + /** + * 国家秘密载体维修 + */ + @RequiresPermissions("system:maintainCarrier:edit") + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) { + TdCarrier tdCarrier = carrierManager.selectTdCarrier(id); + mmap.put("tdCarrier", tdCarrier); + return prefix + "/edit"; + } + + /** + * 国家秘密载体维修 + */ + @RequiresPermissions("system:maintainCarrier:edit") + @Log(title = "国家秘密载体维修", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TdCarrier tdCarrier) { + return toAjax(carrierManager.saveOrUpdate(tdCarrier)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/ReceiveCarrierController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/ReceiveCarrierController.java new file mode 100644 index 0000000..6b4cb39 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/ReceiveCarrierController.java @@ -0,0 +1,68 @@ +package com.ruoyi.web.controller.carrier; + +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.carrier.TdCarrier; +import com.ruoyi.web.controller.manager.CarrierManager; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 收发传递Controller + */ +@Controller +@RequestMapping("/system/recCarrier") +public class ReceiveCarrierController extends BaseController { + private String prefix = "system/carrier/receiveCarrier"; + + @Resource + private CarrierManager carrierManager; + + @RequiresPermissions("system:recCarrier:view") + @GetMapping() + public String carrier() { + return prefix + "/receiveCarrier"; + } + + /** + * 载体列表 + */ + @RequiresPermissions("system:recCarrier:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TdCarrier tdCarrier) { + startPage(); + List carriers = carrierManager.selectTdCarrierList(tdCarrier); + return getDataTable(carriers); + } + + /** + * 收发传递国家秘密载体 + */ + @RequiresPermissions("system:recCarrier:edit") + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) { + TdCarrier tdCarrier = carrierManager.selectTdCarrier(id); + mmap.put("tdCarrier", tdCarrier); + return prefix + "/edit"; + } + + /** + * 收发传递国家秘密载体 + */ + @RequiresPermissions("system:recCarrier:edit") + @Log(title = "载体收发传递", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TdCarrier tdCarrier) { + return toAjax(carrierManager.saveOrUpdate(tdCarrier)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/SaveCarrierController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/SaveCarrierController.java new file mode 100644 index 0000000..b6b33df --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/SaveCarrierController.java @@ -0,0 +1,69 @@ +package com.ruoyi.web.controller.carrier; + +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.carrier.TdCarrier; +import com.ruoyi.web.controller.manager.CarrierManager; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + + +/** + * 保存Controller + */ +@Controller +@RequestMapping("system/saveCarrier") +public class SaveCarrierController extends BaseController { + private String prefix = "system/carrier/saveCarrier"; + + @Resource + private CarrierManager carrierManager; + + @RequiresPermissions("system:saveCarrier:view") + @GetMapping() + public String carrier() { + return prefix + "/saveCarrier"; + } + + /** + * 载体列表 + */ + @RequiresPermissions("system:saveCarrier:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TdCarrier tdCarrier) { + startPage(); + List carriers = carrierManager.selectTdCarrierList(tdCarrier); + return getDataTable(carriers); + } + + /** + * 国家秘密载体保存 + */ + @RequiresPermissions("system:saveCarrier:edit") + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) { + TdCarrier tdCarrier = carrierManager.selectTdCarrier(id); + mmap.put("tdCarrier", tdCarrier); + return prefix + "/edit"; + } + + /** + * 国家秘密载体保存 + */ + @RequiresPermissions("system:saveCarrier:edit") + @Log(title = "国家秘密载体保存", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TdCarrier tdCarrier) { + return toAjax(carrierManager.saveOrUpdate(tdCarrier)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/UseCarrierController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/UseCarrierController.java new file mode 100644 index 0000000..df22de7 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/carrier/UseCarrierController.java @@ -0,0 +1,69 @@ +package com.ruoyi.web.controller.carrier; + +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.carrier.TdCarrier; +import com.ruoyi.web.controller.manager.CarrierManager; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + + +/** + * 使用Controller + */ +@Controller +@RequestMapping("/system/useCarrier") +public class UseCarrierController extends BaseController { + private String prefix = "system/carrier/useCarrier"; + + @Resource + private CarrierManager carrierManager; + + @RequiresPermissions("system:useCarrier:view") + @GetMapping() + public String carrier() { + return prefix + "/useCarrier"; + } + + /** + * 载体列表 + */ + @RequiresPermissions("system:useCarrier:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TdCarrier tdCarrier) { + startPage(); + List carriers = carrierManager.selectTdCarrierList(tdCarrier); + return getDataTable(carriers); + } + + /** + * 国家秘密载体使用 + */ + @RequiresPermissions("system:useCarrier:edit") + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) { + TdCarrier tdCarrier = carrierManager.selectTdCarrier(id); + mmap.put("tdCarrier", tdCarrier); + return prefix + "/edit"; + } + + /** + * 国家秘密载体使用 + */ + @RequiresPermissions("system:useCarrier:edit") + @Log(title = "国家秘密载体使用", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TdCarrier tdCarrier) { + return toAjax(carrierManager.saveOrUpdate(tdCarrier)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/property/TdPropertyEmentDestoryController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/property/TdPropertyEmentDestoryController.java index e4e9379..1fa20d1 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/property/TdPropertyEmentDestoryController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/property/TdPropertyEmentDestoryController.java @@ -45,7 +45,7 @@ public class TdPropertyEmentDestoryController extends BaseController { } /** - * 涉密设备维修列变更 + * 涉密设备销毁列变更 */ @RequiresPermissions("system:ementDestory:destroy") @GetMapping("/destory/{id}")