|
|
@ -23,6 +23,7 @@ import digital.laboratory.platform.reagent.entity.*; |
|
|
|
import digital.laboratory.platform.reagent.mapper.ReagentConsumableInventoryMapper; |
|
|
|
import digital.laboratory.platform.reagent.mapper.ReagentConsumableInventoryMapper; |
|
|
|
import digital.laboratory.platform.reagent.service.*; |
|
|
|
import digital.laboratory.platform.reagent.service.*; |
|
|
|
import digital.laboratory.platform.reagent.vo.*; |
|
|
|
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.CellAndStoreSupplyData; |
|
|
|
import digital.laboratory.platform.sys.feign.RemoteCabinetService; |
|
|
|
import digital.laboratory.platform.sys.feign.RemoteCabinetService; |
|
|
|
import feign.Response; |
|
|
|
import feign.Response; |
|
|
@ -32,6 +33,7 @@ import org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.mock.web.MockMultipartFile; |
|
|
|
import org.springframework.mock.web.MockMultipartFile; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
@ -547,7 +549,7 @@ public class ReagentConsumableInventoryServiceImpl extends ServiceImpl<ReagentCo |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@GlobalTransactional//盘点导入,需提供柜子系统数据
|
|
|
|
@Transactional//盘点导入,需提供柜子系统数据
|
|
|
|
public void inventoryEntry(List<ReagentConsumableInventoryDTO> reagentConsumableInventoryDTOList) { |
|
|
|
public void inventoryEntry(List<ReagentConsumableInventoryDTO> reagentConsumableInventoryDTOList) { |
|
|
|
for (ReagentConsumableInventoryDTO reagentConsumableInventoryDTO : reagentConsumableInventoryDTOList) { |
|
|
|
for (ReagentConsumableInventoryDTO reagentConsumableInventoryDTO : reagentConsumableInventoryDTOList) { |
|
|
|
|
|
|
|
|
|
|
@ -570,6 +572,7 @@ public class ReagentConsumableInventoryServiceImpl extends ServiceImpl<ReagentCo |
|
|
|
.eq(StrUtil.isNotBlank(reagentConsumableInventoryDTO.getMinimumUnit()), "minimum_unit", reagentConsumableInventoryDTO.getMinimumUnit()) |
|
|
|
.eq(StrUtil.isNotBlank(reagentConsumableInventoryDTO.getMinimumUnit()), "minimum_unit", reagentConsumableInventoryDTO.getMinimumUnit()) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BatchDetails batchDetails = new BatchDetails(); |
|
|
|
BatchDetails batchDetails = new BatchDetails(); |
|
|
|
|
|
|
|
|
|
|
|
batchDetails.setServiceStatus(1); |
|
|
|
batchDetails.setServiceStatus(1); |
|
|
@ -589,9 +592,8 @@ public class ReagentConsumableInventoryServiceImpl extends ServiceImpl<ReagentCo |
|
|
|
batchDetails.setExpirationDate(LocalDate.now().plusYears(99)); |
|
|
|
batchDetails.setExpirationDate(LocalDate.now().plusYears(99)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
R cell = remoteCabinetService.queryCellByRoomNoAndLocation(reagentConsumableInventoryDTO.getRoomNo(), reagentConsumableInventoryDTO.getLocation()); |
|
|
|
R<CabinetCell> cabinetCellR = remoteCabinetService.queryCellByRoomNoAndLocation(reagentConsumableInventoryDTO.getRoomNo(), reagentConsumableInventoryDTO.getLocation()); |
|
|
|
Cabinetcell cabinetCell = (Cabinetcell) cell.getData(); |
|
|
|
CabinetCell cabinetCell = cabinetCellR.getData(); |
|
|
|
|
|
|
|
|
|
|
|
batchDetails.setLatticeId(cabinetCell.getId()); |
|
|
|
batchDetails.setLatticeId(cabinetCell.getId()); |
|
|
|
batchDetails.setBoxId(cabinetCell.getCabinetId()); |
|
|
|
batchDetails.setBoxId(cabinetCell.getCabinetId()); |
|
|
|
batchDetails.setLocation(location); |
|
|
|
batchDetails.setLocation(location); |
|
|
|