From 74dd845b13c9df5ba1e1938ce241f369512d215d Mon Sep 17 00:00:00 2001 From: yanyang Date: Mon, 27 Feb 2023 10:57:48 +0800 Subject: [PATCH] m --- .../ChangePackagingBoxHistoryController.java | 20 ++++++------ .../controller/PrintModelController.java | 28 ++++++++--------- .../WoCompensationPowerController.java | 21 ++++++------- .../controller/WoPackagingBoxController.java | 22 ++++++------- .../WoPackagingBoxSubstrateController.java | 29 +++++++++-------- .../WoPackagingPrintHistoryController.java | 31 +++++++------------ .../controller/WoPowerLevelController.java | 21 ++++++------- 7 files changed, 79 insertions(+), 93 deletions(-) diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/ChangePackagingBoxHistoryController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/ChangePackagingBoxHistoryController.java index 22d8006..e42ba70 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/controller/ChangePackagingBoxHistoryController.java +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/ChangePackagingBoxHistoryController.java @@ -52,7 +52,7 @@ public class ChangePackagingBoxHistoryController { @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataTypeClass = LocalDateTime.class), @ApiImplicitParam(name = "type", value = "类型,1=加入包装箱;2=移除包装箱;3=换箱", paramType = "query", dataTypeClass=Integer.class) }) -// @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:page')") + @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = changePackagingBoxHistoryService.page(params); @@ -61,7 +61,7 @@ public class ChangePackagingBoxHistoryController { @GetMapping("{id}") @ApiOperation("信息") -// @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:info')") + @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:info')") public Result get(@PathVariable("id") Long id){ ChangePackagingBoxHistoryDTO data = changePackagingBoxHistoryService.get(id); @@ -70,8 +70,8 @@ public class ChangePackagingBoxHistoryController { @PostMapping @ApiOperation("保存") -// @LogOperation("保存") -// @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:save')") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:save')") public Result save(@RequestBody ChangePackagingBoxHistoryDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -83,8 +83,8 @@ public class ChangePackagingBoxHistoryController { @PutMapping @ApiOperation("修改") -// @LogOperation("修改") -// @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:update')") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:update')") public Result update(@RequestBody ChangePackagingBoxHistoryDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -96,8 +96,8 @@ public class ChangePackagingBoxHistoryController { @DeleteMapping @ApiOperation("删除") -// @LogOperation("删除") -// @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:delete')") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -109,8 +109,8 @@ public class ChangePackagingBoxHistoryController { @GetMapping("export") @ApiOperation("导出") -// @LogOperation("导出") -// @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:export')") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = changePackagingBoxHistoryService.list(params); diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/PrintModelController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/PrintModelController.java index 14e4696..3d2c220 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/controller/PrintModelController.java +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/PrintModelController.java @@ -1,7 +1,6 @@ package com.cnbm.packing.controller; import com.cnbm.admin.annotation.LogOperation; -import com.cnbm.admin.utils.CodeGeneratorHelper; import com.cnbm.common.constant.Constant; import com.cnbm.common.page.PageData; import com.cnbm.common.utils.ExcelUtils; @@ -24,7 +23,6 @@ import org.springframework.web.bind.annotation.*; import springfox.documentation.annotations.ApiIgnore; import javax.servlet.http.HttpServletResponse; -import java.time.LocalDateTime; import java.util.List; import java.util.Map; @@ -49,9 +47,11 @@ public class PrintModelController { @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), - @ApiImplicitParam(name = "name", value = "标签名称", paramType = "query", dataTypeClass = String.class) + @ApiImplicitParam(name = "name", value = "标签名称", paramType = "query", dataTypeClass = String.class), + @ApiImplicitParam(name = "type", value = "类型,0:模组标签,1:等级标签", paramType = "query", dataTypeClass = Integer.class), + @ApiImplicitParam(name = "lineBody", value = "线体,1=F ; 2=S", paramType = "query", dataTypeClass = Integer.class) }) -// @PreAuthorize("@ex.hasAuthority('packing:printModel:page')") + @PreAuthorize("@ex.hasAuthority('packing:printModel:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = printModelService.page(params); @@ -60,7 +60,7 @@ public class PrintModelController { @GetMapping("{id}") @ApiOperation("信息") -// @PreAuthorize("@ex.hasAuthority('packing:printModel:info')") + @PreAuthorize("@ex.hasAuthority('packing:printModel:info')") public Result get(@PathVariable("id") Long id){ PrintModelDTO data = printModelService.get(id); @@ -69,8 +69,8 @@ public class PrintModelController { @PostMapping @ApiOperation("保存") -// @LogOperation("保存") -// @PreAuthorize("@ex.hasAuthority('packing:printModel:save')") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('packing:printModel:save')") public Result save(@RequestBody PrintModelDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -82,8 +82,8 @@ public class PrintModelController { @PutMapping @ApiOperation("修改") -// @LogOperation("修改") -// @PreAuthorize("@ex.hasAuthority('packing:printModel:update')") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('packing:printModel:update')") public Result update(@RequestBody PrintModelDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -95,8 +95,8 @@ public class PrintModelController { @DeleteMapping @ApiOperation("删除") -// @LogOperation("删除") -// @PreAuthorize("@ex.hasAuthority('packing:printModel:delete')") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('packing:printModel:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -108,8 +108,8 @@ public class PrintModelController { @GetMapping("export") @ApiOperation("导出") -// @LogOperation("导出") -// @PreAuthorize("@ex.hasAuthority('packing:printModel:export')") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('packing:printModel:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = printModelService.list(params); @@ -118,12 +118,10 @@ public class PrintModelController { @PostMapping(value = "list") @ApiOperation(value = "获取打印标签模板列表") -// @LogOperation("获取打印标签模板列表") public List list() { return printModelService.list(); } @PostMapping(value = "getCode") @ApiOperation(value = "获取标签编码") -// @LogOperation("获取标签编码") public Result getCode() { String code = printModelService.getCode(); return new Result().ok(code); diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/WoCompensationPowerController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/WoCompensationPowerController.java index 35d31cc..fd6bbfe 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/controller/WoCompensationPowerController.java +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/WoCompensationPowerController.java @@ -49,7 +49,7 @@ public class WoCompensationPowerController { @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), @ApiImplicitParam(name = "lineBody", value = "线体", paramType = "query", dataTypeClass = Integer.class) }) -// @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:page')") + @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = woCompensationPowerService.page(params); @@ -58,7 +58,7 @@ public class WoCompensationPowerController { @GetMapping("{id}") @ApiOperation("信息") -// @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:info')") + @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:info')") public Result get(@PathVariable("id") Long id){ WoCompensationPowerDTO data = woCompensationPowerService.get(id); @@ -67,8 +67,8 @@ public class WoCompensationPowerController { @PostMapping @ApiOperation("保存") -// @LogOperation("保存") -// @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:save')") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:save')") public Result save(@RequestBody WoCompensationPowerDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,8 +80,8 @@ public class WoCompensationPowerController { @PutMapping @ApiOperation("修改") -// @LogOperation("修改") -// @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:update')") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:update')") public Result update(@RequestBody WoCompensationPowerDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,8 +93,8 @@ public class WoCompensationPowerController { @DeleteMapping @ApiOperation("删除") -// @LogOperation("删除") -// @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:delete')") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,8 +106,8 @@ public class WoCompensationPowerController { @GetMapping("export") @ApiOperation("导出") -// @LogOperation("导出") -// @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:export')") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = woCompensationPowerService.list(params); @@ -116,7 +116,6 @@ public class WoCompensationPowerController { @PostMapping(value = "list") @ApiOperation(value = "获取基板补偿功率") -// @LogOperation("获取基板补偿功率") public List list() { return woCompensationPowerService.list(); } } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxController.java index 5c64c27..2381184 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxController.java +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxController.java @@ -10,7 +10,6 @@ import com.cnbm.common.validator.ValidatorUtils; import com.cnbm.common.validator.group.AddGroup; import com.cnbm.common.validator.group.DefaultGroup; import com.cnbm.common.validator.group.UpdateGroup; -import com.cnbm.packing.dto.PrintModelDTO; import com.cnbm.packing.dto.WoPackagingBoxDTO; import com.cnbm.packing.excel.WoPackagingBoxExcel; import com.cnbm.packing.service.WoPackagingBoxServiceBiz; @@ -56,7 +55,7 @@ public class WoPackagingBoxController { @ApiImplicitParam(name = "printStatus", value = "打印状态:0、未打印,1、已打印", paramType = "query", dataTypeClass = Integer.class), @ApiImplicitParam(name = "model", value = "模式,1-手动模式;2-自动模式", paramType = "query", dataTypeClass = Integer.class) }) -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:page')") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = woPackagingBoxService.page(params); @@ -65,7 +64,7 @@ public class WoPackagingBoxController { @GetMapping("{id}") @ApiOperation("信息") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:info')") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:info')") public Result get(@PathVariable("id") Long id){ WoPackagingBoxDTO data = woPackagingBoxService.get(id); @@ -74,8 +73,8 @@ public class WoPackagingBoxController { @PostMapping @ApiOperation("保存") -// @LogOperation("保存") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:save')") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:save')") public Result save(@RequestBody WoPackagingBoxDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -87,8 +86,8 @@ public class WoPackagingBoxController { @PutMapping @ApiOperation("修改") -// @LogOperation("修改") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:update')") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:update')") public Result update(@RequestBody WoPackagingBoxDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -100,8 +99,8 @@ public class WoPackagingBoxController { @DeleteMapping @ApiOperation("删除") -// @LogOperation("删除") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:delete')") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -113,8 +112,8 @@ public class WoPackagingBoxController { @GetMapping("export") @ApiOperation("导出") -// @LogOperation("导出") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:export')") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = woPackagingBoxService.list(params); @@ -123,7 +122,6 @@ public class WoPackagingBoxController { @PostMapping(value = "list") @ApiOperation(value = "获取列表") -// @LogOperation("获取列表") public List list() { return woPackagingBoxService.list(); } @PostMapping(value = "printList/{id}") diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxSubstrateController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxSubstrateController.java index 2e837ab..ca37621 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxSubstrateController.java +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxSubstrateController.java @@ -64,7 +64,7 @@ public class WoPackagingBoxSubstrateController { @ApiImplicitParam(name = "packagingBoxId", value = "包装箱ID,BoxId", paramType = "query", dataTypeClass = String.class), @ApiImplicitParam(name = "woSubstrateId", value = "基板ID(关联T_SUBSTRATE表)", paramType = "query", dataTypeClass = String.class) }) -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:page')") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = woPackagingBoxSubstrateService.page(params); @@ -73,7 +73,7 @@ public class WoPackagingBoxSubstrateController { @GetMapping("{id}") @ApiOperation("信息") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:info')") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:info')") public Result get(@PathVariable("id") Long id){ WoPackagingBoxSubstrateDTO data = woPackagingBoxSubstrateService.get(id); @@ -82,8 +82,8 @@ public class WoPackagingBoxSubstrateController { @PostMapping @ApiOperation("保存") -// @LogOperation("保存") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:save')") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:save')") public Result save(@RequestBody WoPackagingBoxSubstrateDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -95,8 +95,8 @@ public class WoPackagingBoxSubstrateController { @PutMapping @ApiOperation("修改") -// @LogOperation("修改") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:update')") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:update')") public Result update(@RequestBody WoPackagingBoxSubstrateDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -108,8 +108,8 @@ public class WoPackagingBoxSubstrateController { @DeleteMapping @ApiOperation("删除") -// @LogOperation("删除") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:delete')") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -121,8 +121,8 @@ public class WoPackagingBoxSubstrateController { @GetMapping("export") @ApiOperation("导出") -// @LogOperation("导出") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:export')") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = woPackagingBoxSubstrateService.list(params); @@ -131,7 +131,7 @@ public class WoPackagingBoxSubstrateController { @PostMapping("removeSubstrate/{id}") @ApiOperation("移箱") -// @LogOperation("移箱") + @LogOperation("移箱") public Result removeSubstrate(@PathVariable("id") Long id){ woPackagingBoxSubstrateService.removeSubstrate(id); @@ -141,7 +141,7 @@ public class WoPackagingBoxSubstrateController { @PostMapping("insertSubstrate") @ApiOperation("合箱") -// @LogOperation("合箱") + @LogOperation("合箱") public Result insertSubstrate(@RequestBody ChangePackingBoxDTO dto){ String woSubstrateId = dto.getWoSubstrateId(); @@ -184,7 +184,7 @@ public class WoPackagingBoxSubstrateController { @PostMapping("replaceSubstrate") @ApiOperation("换箱") -// @LogOperation("换箱") + @LogOperation("换箱") public Result replaceSubstrate(@RequestBody ChangePackingBoxDTO[] dtos){ woPackagingBoxSubstrateService.replaceSubstrate(dtos); @@ -194,7 +194,6 @@ public class WoPackagingBoxSubstrateController { @PostMapping("slotValidation") @ApiOperation("slot是否占用验证") -// @LogOperation("slot是否占用验证") public boolean slotValidation(@RequestBody ChangePackingBoxDTO dto){ QueryWrapper wrapper = new QueryWrapper<>(); @@ -210,7 +209,7 @@ public class WoPackagingBoxSubstrateController { @PostMapping("insertSubstrateManual") @ApiOperation("手动装箱") -// @LogOperation("手动装箱") + @LogOperation("手动装箱") public Result insertSubstrateManual(@RequestBody ChangePackingBoxDTO dto){ woPackagingBoxSubstrateService.insertSubstrateManual(dto); diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingPrintHistoryController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingPrintHistoryController.java index ec2aab1..7dfc3ca 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingPrintHistoryController.java +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingPrintHistoryController.java @@ -1,7 +1,6 @@ package com.cnbm.packing.controller; import com.cnbm.admin.annotation.LogOperation; -import com.cnbm.admin.enums.WhetherEnum; import com.cnbm.common.constant.Constant; import com.cnbm.common.page.PageData; import com.cnbm.common.utils.ExcelUtils; @@ -12,17 +11,13 @@ import com.cnbm.common.validator.group.AddGroup; import com.cnbm.common.validator.group.DefaultGroup; import com.cnbm.common.validator.group.UpdateGroup; -import com.cnbm.packing.dto.WoPackagingBoxDTO; import com.cnbm.packing.dto.WoPackagingPrintHistoryDTO; -import com.cnbm.packing.entity.WoPackagingBox; import com.cnbm.packing.excel.WoPackagingPrintHistoryExcel; -import com.cnbm.packing.service.WoPackagingBoxServiceBiz; import com.cnbm.packing.service.WoPackagingPrintHistoryServiceBiz; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; -import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; @@ -46,8 +41,6 @@ import java.util.Map; public class WoPackagingPrintHistoryController { @Autowired private WoPackagingPrintHistoryServiceBiz woPackagingPrintHistoryService; - @Autowired - private WoPackagingBoxServiceBiz woPackagingBoxServiceBiz; @GetMapping("page") @@ -61,7 +54,7 @@ public class WoPackagingPrintHistoryController { @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataTypeClass = LocalDateTime.class), @ApiImplicitParam(name = "boxNo", value = "包装箱编号", paramType = "query", dataTypeClass = String.class) }) -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:page')") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = woPackagingPrintHistoryService.page(params); @@ -70,7 +63,7 @@ public class WoPackagingPrintHistoryController { @GetMapping("{id}") @ApiOperation("信息") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:info')") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:info')") public Result get(@PathVariable("id") Long id){ WoPackagingPrintHistoryDTO data = woPackagingPrintHistoryService.get(id); @@ -79,8 +72,8 @@ public class WoPackagingPrintHistoryController { @PostMapping @ApiOperation("保存") -// @LogOperation("保存") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:save')") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:save')") public Result save(@RequestBody WoPackagingPrintHistoryDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -92,8 +85,8 @@ public class WoPackagingPrintHistoryController { @PutMapping @ApiOperation("修改") -// @LogOperation("修改") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:update')") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:update')") public Result update(@RequestBody WoPackagingPrintHistoryDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -105,8 +98,8 @@ public class WoPackagingPrintHistoryController { @DeleteMapping @ApiOperation("删除") -// @LogOperation("删除") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:delete')") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -118,8 +111,8 @@ public class WoPackagingPrintHistoryController { @GetMapping("export") @ApiOperation("导出") -// @LogOperation("导出") -// @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:export')") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = woPackagingPrintHistoryService.list(params); @@ -127,8 +120,8 @@ public class WoPackagingPrintHistoryController { } @PostMapping("print/{id}") - @ApiOperation("打印记录") -// @LogOperation("打印") + @ApiOperation("打印记录新增") + @LogOperation("打印记录新增") public Result print(@PathVariable("id") Long id) { woPackagingPrintHistoryService.print(id); diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/WoPowerLevelController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPowerLevelController.java index 7ef8d19..bed78dd 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/controller/WoPowerLevelController.java +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPowerLevelController.java @@ -49,7 +49,7 @@ public class WoPowerLevelController { @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), @ApiImplicitParam(name = "lineBody", value = "线体", paramType = "query", dataTypeClass = Integer.class) }) -// @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:page')") + @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = woPowerLevelService.page(params); @@ -58,7 +58,7 @@ public class WoPowerLevelController { @GetMapping("{id}") @ApiOperation("信息") -// @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:info')") + @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:info')") public Result get(@PathVariable("id") Long id){ WoPowerLevelDTO data = woPowerLevelService.get(id); @@ -67,8 +67,8 @@ public class WoPowerLevelController { @PostMapping @ApiOperation("保存") -// @LogOperation("保存") -// @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:save')") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:save')") public Result save(@RequestBody WoPowerLevelDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,8 +80,8 @@ public class WoPowerLevelController { @PutMapping @ApiOperation("修改") -// @LogOperation("修改") -// @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:update')") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:update')") public Result update(@RequestBody WoPowerLevelDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,8 +93,8 @@ public class WoPowerLevelController { @DeleteMapping @ApiOperation("删除") -// @LogOperation("删除") -// @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:delete')") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,8 +106,8 @@ public class WoPowerLevelController { @GetMapping("export") @ApiOperation("导出") -// @LogOperation("导出") -// @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:export')") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = woPowerLevelService.list(params); @@ -116,7 +116,6 @@ public class WoPowerLevelController { @PostMapping(value = "list") @ApiOperation(value = "获取功率等级") -// @LogOperation("获取功率等级") public List list() { return woPowerLevelService.list(); } } \ No newline at end of file