From f55ed1d2a1bdf4ad80930e879631d6d95d4b6c3c Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 28 八月 2025 18:57:38 +0800 Subject: [PATCH] RCS 库位同步接口调用 RCS任务下发接口功能调用 RCS 取消任务接口功能开发 RCS异常功回调功能开发 --- rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/LocReviseController.java | 19 ++----------------- 1 files changed, 2 insertions(+), 17 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/LocReviseController.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/LocReviseController.java index 50e1d61..7a4bb36 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/LocReviseController.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/LocReviseController.java @@ -31,8 +31,7 @@ @Autowired private LocReviseService locReviseService; - @Autowired - private WarehouseAreasService warehouseAreasService; + @PreAuthorize("hasAuthority('manager:locRevise:list')") @PostMapping("/locRevise/page") @@ -69,21 +68,7 @@ locRevise.setUpdateBy(getLoginUserId()); locRevise.setUpdateTime(new Date()); - if (Objects.isNull(locRevise.getId())) { - String ruleCode = SerialRuleUtils.generateRuleCode(SerialRuleCode.SYS_LOC_REVISE_CODE, null); - locRevise.setCode(ruleCode); - } - - WarehouseAreas areas = warehouseAreasService.getById(locRevise.getAreaId()); - if (!Objects.isNull(areas)) { - locRevise.setAreaId(areas.getId()) - .setAreaName(areas.getName()); - } - - if (!locReviseService.save(locRevise)) { - return R.error("Save Fail"); - } - return R.ok("Save Success").add(locRevise); + return R.ok("Save Success").add(locReviseService.saveRevise(locRevise)); } @PreAuthorize("hasAuthority('manager:locRevise:update')") -- Gitblit v1.9.1