| | |
| | | OpeUseFlowService opeUseFlowService; |
| | | @Resource |
| | | OpeWarehouseReserveService opeWarehouseReserveService; |
| | | @Resource |
| | | private SysLaboratoryService sysLaboratoryService; |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | public List<SysWarehouse> getSysWarehouseList(String type, String name, Integer first, Integer pageSize) { |
| | |
| | | opeWarehouseReserve.setArticleNumber(inWarehouseInfo.getArticleNumber()); |
| | | opeWarehouseReserve.setReserve(0); |
| | | opeWarehouseReserve.setWarehouseId(inWarehouseInfo.getWarehouseId()); |
| | | opeWarehouseReserve.setUserId("admin"); |
| | | } |
| | | //库存加1 |
| | | opeWarehouseReserve.setReserve(opeWarehouseReserve.getReserve() + 1); |
| | |
| | | }); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void updateSysWarehouse2(SysWarehouse sysWarehouse, SysLaboratory sysLaboratory) { |
| | | //1.0更新自己 |
| | | this.updateSysWarehouse(sysWarehouse); |
| | | //2.更新实验室 |
| | | sysLaboratory.setInfoCode(sysWarehouse.getInfoCode()); |
| | | sysLaboratory.setBarCode(sysWarehouse.getBarCode()); |
| | | sysLaboratory.setLocation1(sysWarehouse.getLocation1()); |
| | | sysLaboratory.setLocation2(sysWarehouse.getLocation2()); |
| | | sysLaboratory.setDepartment(sysWarehouse.getDepartment()); |
| | | sysLaboratoryService.updateSysLaboratory(sysLaboratory); |
| | | } |
| | | } |