fix:修复查询指定科室高值库存

lh_dev_fifo
chenhc 7 months ago
parent bc22b85acc
commit 005222859d

@ -126,6 +126,11 @@ public class ForThirdSysApiController {
if (codeEntity == null) if (codeEntity == null)
return ResultVOUtils.error("库存未找到该UDI码请检查该UDI是否存在错误"); return ResultVOUtils.error("库存未找到该UDI码请检查该UDI是否存在错误");
} }
Integer purType = checkUdi.getPurType();
if (purType != null && purType == 2) {
count = 1;
} else {
//1.获取预验收库存 //1.获取预验收库存
InvWarehouseEntity preInInv = invWarehouseService.findByOne(ConstantStatus.ACTION_TYPE_PREIN); InvWarehouseEntity preInInv = invWarehouseService.findByOne(ConstantStatus.ACTION_TYPE_PREIN);
if (StrUtil.isNotEmpty(udiEntity.getSerialNo())) { if (StrUtil.isNotEmpty(udiEntity.getSerialNo())) {
@ -142,6 +147,8 @@ public class ForThirdSysApiController {
//3.获取入账库库存 //3.获取入账库库存
count = invProductDetailService.vailStockCount(checkUdi.getRelId(), udiEntity.getBatchNo(), null, null, filterInvProductRequest.getInvCode(), null, true); count = invProductDetailService.vailStockCount(checkUdi.getRelId(), udiEntity.getBatchNo(), null, null, filterInvProductRequest.getInvCode(), null, true);
} }
}
InvProductResponse invProductResponse = new InvProductResponse(); InvProductResponse invProductResponse = new InvProductResponse();
BeanUtil.copyProperties(checkUdi, invProductResponse); BeanUtil.copyProperties(checkUdi, invProductResponse);
invProductResponse.setThrCode(checkUdi.getThirdId()); invProductResponse.setThrCode(checkUdi.getThirdId());

Loading…
Cancel
Save