|
@@ -1935,7 +1935,11 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
throw new MzException("保存处方失败,第" + itemNo + "行药品频率不能为空");
|
|
|
}
|
|
|
if (needVerify) {
|
|
|
- YpBaseYf ypBaseYf = ypBaseYfMapper.selectYpBaseYf(ypZdDict.getCode(), ypZdDict.getSerial(), Constants.XY_ZCY_GROUP_NO,YesNoEnum.NO.code.toString());
|
|
|
+ String groupNo=Constants.XY_ZCY_GROUP_NO;
|
|
|
+ if (Constants.CLF.equals(ypZdDict.getBillItemMz())) {
|
|
|
+ groupNo=Constants.YC_GROUP_NO;
|
|
|
+ }
|
|
|
+ YpBaseYf ypBaseYf = ypBaseYfMapper.selectYpBaseYf(ypZdDict.getCode(), ypZdDict.getSerial(), groupNo,YesNoEnum.NO.code.toString());
|
|
|
if (ypBaseYf == null) {
|
|
|
throw new MzException("无药品【" + ypZdDict.getName() + "】编码【" + ypZdDict.getCode() + "】的库存信息!");
|
|
|
}
|