diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/SecondaryWarehouseController.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/SecondaryWarehouseController.java index 3e6383d..e03886a 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/SecondaryWarehouseController.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/SecondaryWarehouseController.java @@ -97,9 +97,6 @@ public class SecondaryWarehouseController extends BaseController { @ApiOperation(value = "班组库存台账") @GetMapping("/getDevStockCount") public TableDataInfo getDevStockCount(SecondaryWarehouse bean) { - if (bean.getUnitId() == null) { - return getDataTable(new ArrayList<>()); - } startPage(); return getDataTable(service.getDevStockCount(bean)); } diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/SecondaryWarehouseServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/SecondaryWarehouseServiceImpl.java index 212338d..f8d132f 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/SecondaryWarehouseServiceImpl.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/SecondaryWarehouseServiceImpl.java @@ -289,11 +289,11 @@ public class SecondaryWarehouseServiceImpl implements SecondaryWarehouseService teamLeaseInfo.setId(bean.getId()); num = mapper.addNewOperate(teamLeaseInfo); mapper.updateMachine(maId, 15); - // 修改库存总量 - Integer parentId = mapper.selectParentId(teamLeaseInfo); - if (parentId != null) { - teamLeaseInfo.setParentId(parentId); - } +// // 修改库存总量 +// Integer parentId = mapper.selectParentId(teamLeaseInfo); +// if (parentId != null) { +// teamLeaseInfo.setParentId(parentId); +// } mapper.deleteOutNum(teamLeaseInfo); } } diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SecondaryWarehouseMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SecondaryWarehouseMapper.xml index 1fdabdd..407e57e 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SecondaryWarehouseMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SecondaryWarehouseMapper.xml @@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SET out_num = out_num - #{outNum} WHERE - id = #{id} + parent_id = #{parentId} and type_id = #{typeId} UPDATE second_ccrap_apply_details @@ -60,14 +60,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" DELETE FROM lease_out_details - WHERE parent_id = #{parentId} + WHERE parent_id = #{id} AND ma_id = #{maId} SELECT parent_id FROM lease_out_details - WHERE id = #{id} + WHERE parent_id = #{id}