| | |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class,propagation = Propagation.REQUIRED) |
| | | public void claimForPerson(List<OpeApplyReserve> selectedListForPerson,String userId,String projectNum,String laboratoryId,String laboratoryContainerId){ |
| | | public void claimForPerson(List<OpeApplyReserve> selectedListForPerson,String userId,String projectNum,String laboratoryId,String laboratoryContainerId,String receiptNumber){ |
| | | try{ |
| | | for(OpeApplyReserve app:selectedListForPerson){ |
| | | List<String> reagentCodes = app.getReagentCode(); |
| | | if (reagentCodes != null && reagentCodes.size() > 0) { |
| | | this.opeReagentStatusService.updateReagentStatus3(reagentCodes,userId,projectNum,laboratoryId,laboratoryContainerId); |
| | | this.opeReagentStatusService.updateReagentStatus3(reagentCodes,userId,projectNum,laboratoryId,laboratoryContainerId,receiptNumber); |
| | | |
| | | //更新是现实库存 |
| | | OpeLaboratoryReserve lr=new OpeLaboratoryReserve(); |
| | |
| | | |
| | | // 仓库领用 |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | public void claim(List<OpeWarehouseReserve> selectedList, String userId,String projectNum) { |
| | | public void claim(List<OpeWarehouseReserve> selectedList, String userId,String projectNum,String receiptNumber) { |
| | | try { |
| | | for (OpeWarehouseReserve opeWarehouseReserve : selectedList) { |
| | | List<String> reagentCodes = opeWarehouseReserve.getReagentCodes(); |
| | |
| | | opeReagentStatus.setUserId(userId); |
| | | opeReagentStatus.setProjectNum(projectNum); |
| | | //boolean flag = this.opeReagentStatusService.updateReagentStatus(opeReagentStatus); |
| | | this.opeReagentStatusService.updateReagentStatus(opeReagentStatus); |
| | | this.opeReagentStatusService.updateReagentStatus(opeReagentStatus,receiptNumber); |
| | | //if (flag) { |
| | | //opeWarehouseReserve.setReserve(opeWarehouseReserve.getReserve() - 1); |
| | | //opeWarehouseReserve.setSelectNum(0); |