|
|
|
@ -26,7 +26,9 @@ import digital.laboratory.platform.reagent.service.*; |
|
|
|
|
import digital.laboratory.platform.reagent.vo.*; |
|
|
|
|
import digital.laboratory.platform.sys.entity.CabinetCell; |
|
|
|
|
import digital.laboratory.platform.sys.entity.CellAndStoreSupplyData; |
|
|
|
|
import digital.laboratory.platform.sys.entity.SysUser; |
|
|
|
|
import digital.laboratory.platform.sys.feign.RemoteCabinetService; |
|
|
|
|
import digital.laboratory.platform.sys.feign.RemoteUserService; |
|
|
|
|
import feign.Response; |
|
|
|
|
import io.seata.spring.annotation.GlobalTransactional; |
|
|
|
|
import org.apache.commons.fileupload.FileItem; |
|
|
|
@ -102,6 +104,9 @@ public class ReagentConsumableInventoryServiceImpl extends ServiceImpl<ReagentCo |
|
|
|
|
@Autowired |
|
|
|
|
private LocationInfoService locationInfoService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private RemoteUserService remoteUserService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private OssFile ossFile; |
|
|
|
@ -269,19 +274,12 @@ public class ReagentConsumableInventoryServiceImpl extends ServiceImpl<ReagentCo |
|
|
|
|
ReagentConsumableInventory byId = this.getById(referenceMaterial.getReagentConsumableInventoryId()); |
|
|
|
|
|
|
|
|
|
BeanUtils.copyProperties(byId, reagentConsumableInventoryFullVO); |
|
|
|
|
|
|
|
|
|
reagentConsumableInventoryFullVO.setNumber(referenceMaterial.getNumber()); |
|
|
|
|
|
|
|
|
|
reagentConsumableInventoryFullVO.setBatchDetailsId(referenceMaterial.getBatchDetailsId()); |
|
|
|
|
|
|
|
|
|
BatchDetails batchDetails = batchDetailsService.getById(referenceMaterial.getBatchDetailsId()); |
|
|
|
|
|
|
|
|
|
SupplierInformation supplierInformation = supplierInformationService.getById(batchDetails.getSupplierId()); |
|
|
|
|
|
|
|
|
|
LambdaQueryWrapper<StandardReserveSolution> standardReserveSolutionLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
|
|
|
|
|
|
standardReserveSolutionLambdaQueryWrapper.eq(StandardReserveSolution::getReferenceId, referenceMaterial.getId()); |
|
|
|
|
|
|
|
|
|
StandardReserveSolution one1 = standardReserveSolutionService.getOne(standardReserveSolutionLambdaQueryWrapper); |
|
|
|
|
|
|
|
|
|
reagentConsumableInventoryFullVO.setSupplierName(supplierInformation.getSupplierName()); |
|
|
|
@ -292,14 +290,18 @@ public class ReagentConsumableInventoryServiceImpl extends ServiceImpl<ReagentCo |
|
|
|
|
reagentConsumableInventoryFullVO.setReferenceMaterialId(referenceMaterial.getId()); |
|
|
|
|
reagentConsumableInventoryFullVO.setReferenceMaterialStatus(referenceMaterial.getStatus()); |
|
|
|
|
reagentConsumableInventoryFullVO.setFixedResult(referenceMaterial.getFixedResult()); |
|
|
|
|
|
|
|
|
|
List<StandardMaterialApplication> list = standardMaterialApplicationService.list(new LambdaQueryWrapper<StandardMaterialApplication>().eq(StandardMaterialApplication::getReferenceMaterialId, id).orderByDesc(StandardMaterialApplication::getDateOfClaim)); |
|
|
|
|
|
|
|
|
|
R<SysUser> userR = remoteUserService.innerGetById(list.get(0).getRecipientId()); |
|
|
|
|
reagentConsumableInventoryFullVO.setHolderName(userR.getData().getName()); |
|
|
|
|
|
|
|
|
|
if (one1 != null) { |
|
|
|
|
reagentConsumableInventoryFullVO.setConfigurationConcentration(one1.getConfigurationConcentration()); |
|
|
|
|
reagentConsumableInventoryFullVO.setConfigurationDate(one1.getConfigurationDate()); |
|
|
|
|
reagentConsumableInventoryFullVO.setSolutionNumbering(referenceMaterial.getNumber()); |
|
|
|
|
reagentConsumableInventoryFullVO.setValidityPeriod(one1.getValidityPeriod()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return reagentConsumableInventoryFullVO; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -799,7 +801,7 @@ public class ReagentConsumableInventoryServiceImpl extends ServiceImpl<ReagentCo |
|
|
|
|
HSSFCellStyle cellStyle1 = workbook.createCellStyle(); |
|
|
|
|
cellStyle1.setAlignment(HorizontalAlignment.CENTER); |
|
|
|
|
HSSFFont font1 = workbook.createFont(); |
|
|
|
|
font1.setFontHeightInPoints((short) 15); |
|
|
|
|
font1.setFontHeightInPoints((short) 10); |
|
|
|
|
cellStyle1.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex()); |
|
|
|
|
cellStyle1.setFillPattern(FillPatternType.SOLID_FOREGROUND); |
|
|
|
|
cellStyle1.setFont(font1); |
|
|
|
|