|
|
|
@ -8,7 +8,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.glxp.api.constant.Constant;
|
|
|
|
|
import com.glxp.api.constant.ConstantStatus;
|
|
|
|
|
import com.glxp.api.constant.ConstantType;
|
|
|
|
|
import com.glxp.api.dao.basic.UdiProductDao;
|
|
|
|
|
import com.glxp.api.dao.inout.IoOrderDetailCodeDao;
|
|
|
|
|
import com.glxp.api.entity.auth.InvWarehouseEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.BasicBussinessTypeEntity;
|
|
|
|
@ -26,6 +25,7 @@ import com.glxp.api.res.inout.IoOrderDetailCodeResponse;
|
|
|
|
|
import com.glxp.api.service.auth.InvWarehouseService;
|
|
|
|
|
import com.glxp.api.service.basic.BasicSkPrescribeDiService;
|
|
|
|
|
import com.glxp.api.service.basic.IBasicBussinessTypeService;
|
|
|
|
|
import com.glxp.api.service.basic.UdiProductService;
|
|
|
|
|
import com.glxp.api.service.inout.impl.IoCodeService;
|
|
|
|
|
import com.glxp.api.service.inv.InvPreinProductDetailService;
|
|
|
|
|
import com.glxp.api.service.system.SystemParamConfigService;
|
|
|
|
@ -78,7 +78,7 @@ public class IoCheckInoutService {
|
|
|
|
|
IoSplitFifoCodeService splitFifoCodeService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
UdiProductDao udiProductDao;
|
|
|
|
|
UdiProductService udiProductService;
|
|
|
|
|
|
|
|
|
|
//判断是否需要手动校验
|
|
|
|
|
public boolean checkManual(String billNo) {
|
|
|
|
@ -227,6 +227,11 @@ public class IoCheckInoutService {
|
|
|
|
|
orderDetailResultEntity.setCount(orderDetailCodeEntity.getReCount());
|
|
|
|
|
orderDetailResultEntity.setReCount(orderDetailCodeEntity.getReCount());
|
|
|
|
|
orderDetailResultEntity.setId(null);
|
|
|
|
|
UdiProductEntity product = udiProductService.findProductByNameCode(orderDetailCodeEntity.getNameCode());
|
|
|
|
|
if (product.getProductsType() == 2){
|
|
|
|
|
//药品 拿到药品赋值
|
|
|
|
|
orderDetailResultEntity.setSpec(product.getBzgg());
|
|
|
|
|
}
|
|
|
|
|
orderDetailResultService.insert(orderDetailResultEntity);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
@ -283,6 +288,11 @@ public class IoCheckInoutService {
|
|
|
|
|
orderDetailResultEntity.setCount(orderDetailCodeEntity.getReCount());
|
|
|
|
|
orderDetailResultEntity.setReCount(orderDetailCodeEntity.getReCount());
|
|
|
|
|
orderDetailResultEntity.setId(null);
|
|
|
|
|
UdiProductEntity product = udiProductService.findProductByNameCode(orderDetailCodeEntity.getNameCode());
|
|
|
|
|
if (product.getProductsType() == 2){
|
|
|
|
|
//药品 拿到药品赋值
|
|
|
|
|
orderDetailResultEntity.setSpec(product.getBzgg());
|
|
|
|
|
}
|
|
|
|
|
orderDetailResultService.insert(orderDetailResultEntity);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
@ -556,6 +566,11 @@ public class IoCheckInoutService {
|
|
|
|
|
orderDetailResultEntity.setCount(orderDetailCodeEntity.getReCount());
|
|
|
|
|
orderDetailResultEntity.setReCount(orderDetailCodeEntity.getReCount());
|
|
|
|
|
orderDetailResultEntity.setId(null);
|
|
|
|
|
UdiProductEntity product = udiProductService.findProductByNameCode(orderDetailCodeEntity.getNameCode());
|
|
|
|
|
if (product.getProductsType() == 2){
|
|
|
|
|
//药品 拿到药品赋值
|
|
|
|
|
orderDetailResultEntity.setSpec(product.getBzgg());
|
|
|
|
|
}
|
|
|
|
|
orderDetailResultService.insert(orderDetailResultEntity);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
@ -686,6 +701,11 @@ public class IoCheckInoutService {
|
|
|
|
|
BeanUtils.copyProperties(orderDetailBizEntity, orderDetailResultEntity);
|
|
|
|
|
orderDetailResultEntity.setId(null);
|
|
|
|
|
orderDetailResultEntity.setReCount(orderDetailBizEntity.getScanCount());
|
|
|
|
|
UdiProductEntity product = udiProductService.findProductByNameCode(orderDetailBizEntity.getNameCode());
|
|
|
|
|
if (product.getProductsType() == 2){
|
|
|
|
|
//药品 拿到药品赋值
|
|
|
|
|
orderDetailResultEntity.setSpec(product.getBzgg());
|
|
|
|
|
}
|
|
|
|
|
orderDetailResultService.insert(orderDetailResultEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -876,7 +896,7 @@ public class IoCheckInoutService {
|
|
|
|
|
ioOrderCheckResultResponse.setSExpireDate(codeEntity.getExpireDate());
|
|
|
|
|
ioOrderCheckResultResponse.setCount(0);
|
|
|
|
|
ioOrderCheckResultResponse.setScanCount(codeEntity.getReCount());
|
|
|
|
|
UdiProductEntity drug = udiProductDao.findByNameCode(codeEntity.getNameCode());
|
|
|
|
|
UdiProductEntity drug = udiProductService.findProductByNameCode(codeEntity.getNameCode());
|
|
|
|
|
if (drug.getProductsType() == 2) {
|
|
|
|
|
//药品添加药品数据
|
|
|
|
|
ioOrderCheckResultResponse.setBzgg(drug.getBzgg());
|
|
|
|
|