From aa7bcbc678a671a51a87c7ba6bbfaa107399a96d Mon Sep 17 00:00:00 2001 From: chenlu <1320612696@qq.com> Date: 星期二, 08 四月 2025 14:28:16 +0800 Subject: [PATCH] 添加优化原片出库报表,除去时间相关筛选 --- north-glass-erp/src/main/java/com/example/erp/controller/pp/ReplenishController.java | 53 +++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 39 insertions(+), 14 deletions(-) diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReplenishController.java b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReplenishController.java index 1338259..52519a6 100644 --- a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReplenishController.java +++ b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReplenishController.java @@ -3,6 +3,8 @@ import cn.dev33.satoken.annotation.SaCheckPermission; import com.example.erp.common.Constants; import com.example.erp.common.Result; +import com.example.erp.dto.pp.PatchLogAddDTO; +import com.example.erp.dto.pp.PatchLogDTO; import com.example.erp.entity.pp.FlowCard; import com.example.erp.entity.pp.PatchLog; import com.example.erp.entity.pp.Rework; @@ -30,42 +32,65 @@ /*鍙戣揣璁㈠崟鏌ヨ*/ @ApiOperation("琛ョ墖鏂板鏌ヨ鎺ュ彛") - @SaCheckPermission("AddReplenish.search") + @SaCheckPermission("addReplenish.search") @PostMapping("/getSelectReplenish/{pageNum}/{pageSize}") - public Result getSelectReplenish(@PathVariable Integer pageNum, @PathVariable Integer pageSize){ - return Result.seccess(replenishService.getSelectReplenish(pageNum,pageSize)); + public Result getSelectReplenish(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@RequestBody PatchLogAddDTO patchLogAddDTO){ + return Result.seccess(replenishService.getSelectReplenish(pageNum,pageSize,patchLogAddDTO)); } @ApiOperation("琛ョ墖鏌ヨ鎺ュ彛") - @SaCheckPermission("SelectReplenish.search") + @SaCheckPermission("selectReplenish.search") @PostMapping("/SelectReplenish/{pageNum}/{pageSize}/{selectDate}") - public Result SelectReplenish(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate,@RequestBody PatchLog patchLog){ - return Result.seccess(replenishService.SelectReplenish(pageNum,pageSize,selectDate,patchLog)); + public Result SelectReplenish(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate,@RequestBody PatchLogDTO patchLogDTO){ + return Result.seccess(replenishService.SelectReplenish(pageNum,pageSize,selectDate,patchLogDTO)); } @ApiOperation("琛ョ墖鏂板鎺ュ彛") - @SaCheckPermission("AddReplenish.add") + @SaCheckPermission("addReplenish.add") @PostMapping("/saveReplenish") public Result updateFinishedGoodsInventoryAllocate( @RequestBody Map<String,Object> object){ return Result.seccess(replenishService.saveReplenish(object)); } @ApiOperation("琛ョ墖瀹℃牳鎺ュ彛") - @SaCheckPermission("SelectReplenish.review") + @SaCheckPermission("selectReplenish.review") @PostMapping("/updateReplenish") public Result updateReplenish( @RequestBody Map<String,Object> object){ return Result.seccess(replenishService.updateReplenish(object)); } - @ApiOperation("娴佺▼鍗¤ˉ鐗囨墦鍗版煡璇㈡帴鍙�") - @PostMapping("/selectReplenishPrintFlowCard/{selectTime1}/{selectTime2}/{orderId}/{project}") - public Result selectReplenishPrintFlowCard( + @ApiOperation("琛ョ墖娴佺▼鍗℃槑缁嗘煡璇㈡帴鍙�") + @SaCheckPermission("printReplenishFlowCard.search") + @PostMapping("/selectPrint/{selectTime1}/{selectTime2}") + public Result selectPrint( @PathVariable Date selectTime1, @PathVariable Date selectTime2, - @PathVariable String orderId, - @PathVariable String project, @RequestBody FlowCard flowCard) { - return Result.seccess(replenishService.selectReplenishPrintFlowCardSv(selectTime1, selectTime2, orderId, project, flowCard)); + return Result.seccess(replenishService.selectPrintSv(selectTime1,selectTime2, flowCard)); + + } + + @ApiOperation("琛ョ墖鎵撳嵃鑷畾涔夋爣绛炬暟鎹煡璇㈡帴鍙�") + @PostMapping("/getSelectPrintCustomLabel/{type}/{lableType}") + public Result getSelectPrintCustomLabel( @PathVariable String type, + @PathVariable Integer lableType, + @RequestBody Map<String, Object> object) { + return Result.seccess(replenishService.getSelectPrintCustomLabelSv(type,lableType,object)); + + } + + @ApiOperation("琛ョ墖鍒犻櫎鎺ュ彛") + @SaCheckPermission("selectReplenish.delete") + @PostMapping("/deleteReplenish") + public Result deleteReplenish( @RequestBody Map<String,Object> object){ + return Result.seccess(replenishService.deleteReplenishSv(object)); + } + + @ApiOperation("琛ョ墖鍙嶅鎺ュ彛") + @SaCheckPermission("selectReplenish.countertrial") + @PostMapping("/updateCancelReview") + public Result updateCancelReview( @RequestBody Map<String,Object> object){ + return Result.seccess(replenishService.updateCancelReviewSv(object)); } } -- Gitblit v1.8.0