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