From b72ca9e07db8e0f9a8e703494f8654c55727d5b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Mon, 26 Dec 2022 16:06:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=AB=E7=A0=81=E5=8D=95?= =?UTF-8?q?=E6=8D=AE=E4=BA=A7=E5=93=81=E5=87=BA=E7=8E=B0=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E6=97=B6=E6=B2=A1=E6=9C=89=E5=AE=9E?= =?UTF-8?q?=E9=99=85=E6=95=B0=E9=87=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controller/inout/WareHouseController.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/api-admin/src/main/java/com/glxp/api/admin/controller/inout/WareHouseController.java b/api-admin/src/main/java/com/glxp/api/admin/controller/inout/WareHouseController.java index 304843c6..d782ed83 100644 --- a/api-admin/src/main/java/com/glxp/api/admin/controller/inout/WareHouseController.java +++ b/api-admin/src/main/java/com/glxp/api/admin/controller/inout/WareHouseController.java @@ -39,10 +39,7 @@ import com.glxp.api.admin.res.inout.WarehouseUserResponse; import com.glxp.api.admin.res.inventory.InvBusUserResponse; import com.glxp.api.admin.service.auth.AuthAdminService; import com.glxp.api.admin.service.auth.CustomerService; -import com.glxp.api.admin.service.basic.BasicUnitMaintainService; -import com.glxp.api.admin.service.basic.BussinessTypeService; -import com.glxp.api.admin.service.basic.UdiInfoService; -import com.glxp.api.admin.service.basic.UdiRelevanceService; +import com.glxp.api.admin.service.basic.*; import com.glxp.api.admin.service.business.StockOrderService; import com.glxp.api.admin.service.info.CompanyProductRelevanceService; import com.glxp.api.admin.service.info.SystemParamConfigService; @@ -113,6 +110,8 @@ public class WareHouseController { private UdiInfoService udiInfoService; @Resource private InvBusUserService invBusUserService; + @Resource + private CustomService customService; @AuthRuleAnnotation("") @GetMapping("admin/warehouse/inout/list") @@ -1093,6 +1092,9 @@ public class WareHouseController { if (bindingResult.hasErrors()) { return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage()); } + //计算实际数量 + int reCount= customService.getActCount(warehouseEntity); + warehouseEntity.setReCount(reCount); boolean b = codesTempService.update(warehouseEntity); if (warehouseEntity.getMySupId() != null) { warehouseEntity.setSupId(warehouseEntity.getMySupId());