Parcourir la source

医材查询功能优化

hurugang il y a 3 ans
Parent
commit
a5dc8aa3ba

+ 5 - 1
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

@@ -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() + "】的库存信息!");
                             }