From c74dfebdb01f441f8f90fd720129e83b4dc5c4ec Mon Sep 17 00:00:00 2001 From: gongbaoxiong Date: Fri, 7 Jun 2024 01:46:26 +0800 Subject: [PATCH] =?UTF-8?q?opt:=E5=A2=9E=E5=8A=A0=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/nl/common/base/CommonPage.java | 2 +- .../java/org/nl/common/base/ResultCode.java | 2 +- .../controller/AllocationBillController.java | 4 +- .../controller/EasOutInBillController.java | 2 +- .../eas/dao/mapper/EasOutInBillMapper.java | 2 +- .../eas/dao/xml/AllocationBillMapper.xml | 11 +- .../eas/dao/xml/EasOutInBillDetailMapper.xml | 12 +- .../wms/database/eas/dto/InventoryInfos.java | 14 +- .../eas/service/IallocationBillService.java | 2 +- .../impl/AllocationBillServiceImpl.java | 154 +++++++++--------- .../service/impl/EasOutInBillServiceImpl.java | 31 +--- .../service/impl/ReceiptBillServiceImpl.java | 7 +- .../org/nl/wms/schedule/EasBillSchedule.java | 2 +- 13 files changed, 105 insertions(+), 140 deletions(-) diff --git a/nlsso-server/src/main/java/org/nl/common/base/CommonPage.java b/nlsso-server/src/main/java/org/nl/common/base/CommonPage.java index 604c50e..397a674 100644 --- a/nlsso-server/src/main/java/org/nl/common/base/CommonPage.java +++ b/nlsso-server/src/main/java/org/nl/common/base/CommonPage.java @@ -53,7 +53,7 @@ public class CommonPage { CommonPage result = new CommonPage<>(); result.setResult(pageResult); result.setCode(1); - result.setDesc("操作成功"); + result.setDesc("操作完成"); return result; } diff --git a/nlsso-server/src/main/java/org/nl/common/base/ResultCode.java b/nlsso-server/src/main/java/org/nl/common/base/ResultCode.java index ab82ef9..9372d55 100644 --- a/nlsso-server/src/main/java/org/nl/common/base/ResultCode.java +++ b/nlsso-server/src/main/java/org/nl/common/base/ResultCode.java @@ -7,7 +7,7 @@ import com.baomidou.mybatisplus.extension.api.IErrorCode; */ public enum ResultCode implements IErrorCode { // - SUCCESS(1, "操作成功"), + SUCCESS(1, "操作完成"), FAILED(0, "操作失败"), MISS_PARAMETER(400, "参数缺失"), UNAUTHORIZED(401, "暂未登录或token已经过期"), diff --git a/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/AllocationBillController.java b/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/AllocationBillController.java index baf3155..9f4237d 100644 --- a/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/AllocationBillController.java +++ b/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/AllocationBillController.java @@ -81,9 +81,9 @@ public class AllocationBillController { * * @param params 根据条件查询库存跟踪号 */ - @PostMapping("/getInventoryInfo") + @PostMapping("/queryInventoryInfo") @Log("根据条件查询库存跟踪号") - public ResponseEntity> getInventoryInfo(@RequestBody AllocationBillVO params) { + public ResponseEntity> queryInventoryInfo(@RequestBody AllocationBillVO params) { return new ResponseEntity<>(allocationBillService.getInventoryInfo(params), HttpStatus.OK); } diff --git a/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillController.java b/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillController.java index be744c7..d5496f3 100644 --- a/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillController.java +++ b/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillController.java @@ -110,7 +110,7 @@ public class EasOutInBillController { /** * 获取仓库信息 */ - @PostMapping("/getUserInfo") + @PostMapping("/getWarehouseInfo") @Log("获取仓库信息") public CommonResult> getWarehouseInfo() { return RestBusinessTemplate.execute(() -> easOutInBillService.getWarehouseInfo()); diff --git a/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillMapper.java b/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillMapper.java index 6c915cf..f6a3411 100644 --- a/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillMapper.java +++ b/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillMapper.java @@ -50,7 +50,7 @@ public interface EasOutInBillMapper extends BaseMapper { List getOrganizationInfo(); - @Select("SELECT * FROM EAS_NOBLE.V_UC_USERINFO") + @Select("SELECT YHBM AS CGYBM,YHMC AS CGYMC FROM EAS_NOBLE.V_UC_USERINFO") @DS("oracle_eas") List getUserInfo(); diff --git a/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/AllocationBillMapper.xml b/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/AllocationBillMapper.xml index 1631c9a..cf42018 100644 --- a/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/AllocationBillMapper.xml +++ b/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/AllocationBillMapper.xml @@ -58,16 +58,7 @@