| | |
| | | import com.nanometer.smartlab.util.MessageUtil; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.log4j.Logger; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.dao.DataAccessException; |
| | | import org.springframework.dao.DataIntegrityViolationException; |
| | | import org.springframework.dao.DuplicateKeyException; |
| | |
| | | private SysSequenceService sysSequenceService; |
| | | @Resource |
| | | private OpeApplyService opeApplyService; |
| | | @Lazy |
| | | @Resource |
| | | private OpeReagentStatusService opeReagentStatusService; |
| | | @Lazy |
| | | @Resource |
| | | private OpeWarehouseReserveService opeWarehouseReserveService; |
| | | @Lazy |
| | | @Resource |
| | | private OpeUseFlowService opeUseFlowService; |
| | | @Resource |
| | |
| | | opeWarehouseReserve.setReagentId(opeApply.getReagent().getId()); |
| | | opeWarehouseReserve.setArticleNumber(opeApply.getArticleNumber()); |
| | | opeWarehouseReserve.setReserve(0); |
| | | opeWarehouseReserve.setWarehouseId(opeApply.getHouseId()); |
| | | opeWarehouseReserve.setContainerId(opeApply.getContainerId()); |
| | | } |
| | | opeWarehouseReserve.setReserve(opeWarehouseReserve.getReserve() + opeApply.getArrivalNum()); |
| | | if (StringUtils.isBlank(opeWarehouseReserve.getId())) { |