wangfeng 6 vuotta sitten
vanhempi
commit
cca746eb3f

+ 4 - 3
icss-service/src/main/java/com/diagbot/facade/TemplateInfoFacade.java

@@ -110,10 +110,11 @@ public class TemplateInfoFacade extends TemplateInfoServiceImpl {
         mapAll.put("hospital_id", templateInfosVO.getHospitalId());
         mapAll.put("is_deleted", IsDeleteEnum.N.getKey());
         mapAll.put("name", templateInfosVO.getModeName());
-
+        mapAll.put("type", templateInfosVO.getModeType());
+        
         templateInfoFand.allEq(mapAll);
-        TemplateInfo data = getOne(templateInfoFand);
-        if (data != null) {
+        int sum = count(templateInfoFand);
+        if (sum != 0) {
             throw new CommonException(CommonErrorCode.NOT_EXISTS, "该模板名存在");
         }
         //2.获取传入的数据,保存到数据表中。