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());