|
|
@ -86,6 +86,9 @@ public class ReagentConsumableInventoryServiceImpl extends ServiceImpl<ReagentCo |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private StandardMaterialApplicationService standardMaterialApplicationService; |
|
|
|
private StandardMaterialApplicationService standardMaterialApplicationService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private LocationInfoService locationInfoService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private OssFile ossFile; |
|
|
|
private OssFile ossFile; |
|
|
@ -787,9 +790,7 @@ public class ReagentConsumableInventoryServiceImpl extends ServiceImpl<ReagentCo |
|
|
|
orgFullVO.setGender(1); |
|
|
|
orgFullVO.setGender(1); |
|
|
|
orgFullVOS.add(orgFullVO); |
|
|
|
orgFullVOS.add(orgFullVO); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
System.out.println("总个数" + orgFullVOS.size()); |
|
|
|
|
|
|
|
return orgFullVOS; |
|
|
|
return orgFullVOS; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -798,18 +799,19 @@ public class ReagentConsumableInventoryServiceImpl extends ServiceImpl<ReagentCo |
|
|
|
public boolean updateLocation(BatchDetails batchDetails) { |
|
|
|
public boolean updateLocation(BatchDetails batchDetails) { |
|
|
|
|
|
|
|
|
|
|
|
BatchDetails oldBatchDetails = batchDetailsService.getById(batchDetails.getBatchDetailsId()); |
|
|
|
BatchDetails oldBatchDetails = batchDetailsService.getById(batchDetails.getBatchDetailsId()); |
|
|
|
|
|
|
|
String oldLocation = oldBatchDetails.getLocation(); |
|
|
|
this.updateCabinet(oldBatchDetails.getLatticeId(), oldBatchDetails.getReagentConsumableInventoryId(), -1);//清除原来位置信息ID
|
|
|
|
this.updateCabinet(oldBatchDetails.getLatticeId(), oldBatchDetails.getReagentConsumableInventoryId(), -1);//清除原来位置信息ID
|
|
|
|
|
|
|
|
|
|
|
|
oldBatchDetails.setLocation(batchDetails.getLocation()); |
|
|
|
oldBatchDetails.setLocation(batchDetails.getLocation()); |
|
|
|
oldBatchDetails.setBoxId(batchDetails.getBoxId()); |
|
|
|
oldBatchDetails.setBoxId(batchDetails.getBoxId()); |
|
|
|
oldBatchDetails.setLocation(batchDetails.getLocation()); |
|
|
|
oldBatchDetails.setLatticeId(batchDetails.getLatticeId()); |
|
|
|
String[] split = batchDetails.getLocation().split("_"); |
|
|
|
String[] split = batchDetails.getLocation().split("_"); |
|
|
|
String roomNo = split[1]; |
|
|
|
String roomNo = split[1]; |
|
|
|
oldBatchDetails.setRoomNo(roomNo); |
|
|
|
oldBatchDetails.setRoomNo(roomNo); |
|
|
|
|
|
|
|
|
|
|
|
if (batchDetailsService.updateById(oldBatchDetails)) { |
|
|
|
if (batchDetailsService.updateById(oldBatchDetails)) { |
|
|
|
this.updateCabinet(oldBatchDetails.getLatticeId(), oldBatchDetails.getReagentConsumableInventoryId(), 1); |
|
|
|
this.updateCabinet(oldBatchDetails.getLatticeId(), oldBatchDetails.getReagentConsumableInventoryId(), 1); |
|
|
|
|
|
|
|
locationInfoService.addInfo(oldBatchDetails.getBatchDetailsId(), oldLocation, batchDetails.getLocation()); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} else return false; |
|
|
|
} else return false; |
|
|
|
|
|
|
|
|
|
|
@ -826,12 +828,15 @@ public class ReagentConsumableInventoryServiceImpl extends ServiceImpl<ReagentCo |
|
|
|
BeanUtils.copyProperties(batchDetails, batchDetailsVO); |
|
|
|
BeanUtils.copyProperties(batchDetails, batchDetailsVO); |
|
|
|
batchDetailsVO.setSupplierName(supplierInformationService.getById(batchDetails.getSupplierId()).getSupplierName()); |
|
|
|
batchDetailsVO.setSupplierName(supplierInformationService.getById(batchDetails.getSupplierId()).getSupplierName()); |
|
|
|
ReagentConsumableInventory reagentConsumableInventory = this.getById(batchDetails.getReagentConsumableInventoryId()); |
|
|
|
ReagentConsumableInventory reagentConsumableInventory = this.getById(batchDetails.getReagentConsumableInventoryId()); |
|
|
|
|
|
|
|
List<LocationInfoVO> locationInfoVOList = locationInfoService.getListById(id); |
|
|
|
|
|
|
|
|
|
|
|
HashMap<String, Object> objectObjectHashMap = new HashMap<>(); |
|
|
|
HashMap<String, Object> objectObjectHashMap = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
|
|
objectObjectHashMap.put("batchDetails", batchDetailsVO); |
|
|
|
objectObjectHashMap.put("batchDetails", batchDetailsVO); |
|
|
|
objectObjectHashMap.put("reagentConsumableInventory", reagentConsumableInventory); |
|
|
|
objectObjectHashMap.put("reagentConsumableInventory", reagentConsumableInventory); |
|
|
|
|
|
|
|
objectObjectHashMap.put("locationInfoVOList", locationInfoVOList); |
|
|
|
|
|
|
|
|
|
|
|
return objectObjectHashMap; |
|
|
|
return objectObjectHashMap; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|