lihong 10 月之前
父节点
当前提交
facc1a177a

+ 3 - 0
src/main/java/cn/hnthyy/thmz/controller/mz/MzChargeDetailController.java

@@ -1857,6 +1857,9 @@ public class MzChargeDetailController {
                 return resultMap;
             }
             clinic = commonResult.getClinic();
+            if (mzPrescriptionVo.getMzBlRecord() != null && (StrUtil.isBlank(mzPrescriptionVo.getMzBlRecord().getEmrJkjy()) || mzPrescriptionVo.getMzBlRecord().getEmrJkjy().length() < 10)) {
+                throw new MzException("健康教育为必填且不能少于10个字符!");
+            }
             Clinic insertClinic = mzChargeDetailService.savePrescriptionAndCharge(mzPrescriptionVo, clinic);
             if (insertClinic != null && insertClinic.getId() != null) {
                 resultMap.put("code", 0);

+ 0 - 3
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

@@ -1254,9 +1254,6 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
             if (mzPrescriptionVo.getMzBlRecord().getEmrPs() == null || StringUtils.isBlank(mzPrescriptionVo.getMzBlRecord().getEmrPs())) {
                 throw new MzException("请完善既往史内容!");
             }
-            if (StrUtil.isBlank(mzPrescriptionVo.getMzBlRecord().getEmrJkjy()) || mzPrescriptionVo.getMzBlRecord().getEmrJkjy().length() < 10) {
-                throw new MzException("健康教育为必填且不能少于10个字符!");
-            }
         }