|
|
|
@ -429,18 +429,19 @@ public class IoCodeTempController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//是否校验耗材材质 1:高值耗材;2.普通耗材
|
|
|
|
|
if (IntUtil.value(bussinessTypeEntity.getVailHcType() == 1)) {
|
|
|
|
|
if (IntUtil.value(udiInfoEntity.getHcType()) != 1) {
|
|
|
|
|
return ResultVOUtils.error(500, "单据只允许录入高值耗材" + ",请检查后重试!");
|
|
|
|
|
}
|
|
|
|
|
} else if (IntUtil.value(bussinessTypeEntity.getVailHcType() == 2)) {
|
|
|
|
|
if (IntUtil.value(udiInfoEntity.getHcType()) != 2) {
|
|
|
|
|
return ResultVOUtils.error(500, "单据只允许录入普通耗材" + ",请检查后重试!");
|
|
|
|
|
if(udiInfoEntity.getRequireScanCode() == 1){
|
|
|
|
|
//是否校验耗材材质 1:高值耗材;2.普通耗材
|
|
|
|
|
if (IntUtil.value(bussinessTypeEntity.getVailHcType() == 1)) {
|
|
|
|
|
if (IntUtil.value(udiInfoEntity.getHcType()) != 1) {
|
|
|
|
|
return ResultVOUtils.error(500, "单据只允许录入高值耗材" + ",请检查后重试!");
|
|
|
|
|
}
|
|
|
|
|
} else if (IntUtil.value(bussinessTypeEntity.getVailHcType() == 2)) {
|
|
|
|
|
if (IntUtil.value(udiInfoEntity.getHcType()) != 2) {
|
|
|
|
|
return ResultVOUtils.error(500, "单据只允许录入普通耗材" + ",请检查后重试!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String orderId = addOrderRequest.getBillNo();
|
|
|
|
|
|
|
|
|
|
//三期校验
|
|
|
|
|