|
|
|
@ -14,6 +14,7 @@ import com.glxp.api.dao.inout.IoOrderDetailCodeDao;
|
|
|
|
|
import com.glxp.api.entity.auth.InvWarehouseEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.BasicBussinessTypeEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiProductEntity;
|
|
|
|
|
import com.glxp.api.entity.inout.*;
|
|
|
|
|
import com.glxp.api.entity.inv.InvInnerOrderPdfTempEntity;
|
|
|
|
|
import com.glxp.api.entity.inv.InvPreinDetailEntity;
|
|
|
|
@ -26,6 +27,7 @@ import com.glxp.api.res.inout.IoOrderDetailBizResponse;
|
|
|
|
|
import com.glxp.api.res.inout.IoOrderDetailCodeResponse;
|
|
|
|
|
import com.glxp.api.service.auth.InvWarehouseService;
|
|
|
|
|
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.inout.impl.IoCodeTempService;
|
|
|
|
|
import com.glxp.api.service.inout.impl.IoOrderInvoiceService;
|
|
|
|
@ -87,6 +89,9 @@ public class IoCheckInoutService {
|
|
|
|
|
@Resource
|
|
|
|
|
SystemParamConfigService systemParamConfigService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
UdiProductService udiProductService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 判断是否需要手动校验
|
|
|
|
|
*
|
|
|
|
@ -447,6 +452,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);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
@ -569,6 +579,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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|