Browse Source

增加日志,调整删除接口

lantone 5 years ago
parent
commit
838a8aa7e9
1 changed files with 8 additions and 8 deletions
  1. 8 8
      src/main/java/com/diagbot/facade/data/AHomePageFacade.java

+ 8 - 8
src/main/java/com/diagbot/facade/data/AHomePageFacade.java

@@ -89,21 +89,21 @@ public class AHomePageFacade extends HomePageServiceImpl{
             if(aHomePageIngVO.getHomePages()!=null && aHomePageIngVO.getHomePages().size()>0){
                 //验证数据有效性
                 for (AHomePageVO aHomePageVO:aHomePageIngVO.getHomePages()) {
-                    if("".equals(aHomePageVO.getHomePageId())) {
+                    if(StringUtil.isEmpty(aHomePageVO.getHomePageId())) {
                         return RespDTO.onError("请输入病案首页编号!");
                     }else if(aHomePageVO.getHospitalId()==null){
                         return RespDTO.onError("请输入医院编码!");
-                    }else if("".equals(aHomePageVO.getBehospitalCode())){
+                    }else if(StringUtil.isEmpty(aHomePageVO.getBehospitalCode())){
                         return RespDTO.onError("请输入病人住院编码!");
                     }
                     //出院诊断
                     if(aHomePageVO.getLeaveDiags()!=null && aHomePageVO.getLeaveDiags().size()>0){
                         for (AHomeDiagnoseVO aHomeDiagnoseVO:aHomePageVO.getLeaveDiags()){
-                            if("".equals(aHomeDiagnoseVO.getHomePageId())) {
+                            if(StringUtil.isEmpty(aHomeDiagnoseVO.getHomePageId())) {
                                 return RespDTO.onError("出院诊断未输入病案首页编号!");
                             }else if(aHomeDiagnoseVO.getHospitalId()==null){
                                 return RespDTO.onError("出院诊断未输入医院编码!");
-                            }else if("".equals(aHomeDiagnoseVO.getDiagnoseOrderNo())){
+                            }else if(StringUtil.isEmpty(aHomeDiagnoseVO.getDiagnoseOrderNo())){
                                 return RespDTO.onError("出院诊断未输入顺序号!");
                             }
                         }
@@ -112,11 +112,11 @@ public class AHomePageFacade extends HomePageServiceImpl{
                     //住院手术
                     if(aHomePageVO.getOperations()!=null && aHomePageVO.getOperations().size()>0){
                         for (AHomeOperationVO aHomeOperationVO:aHomePageVO.getOperations()){
-                            if("".equals(aHomeOperationVO.getHomePageId())) {
+                            if(StringUtil.isEmpty(aHomeOperationVO.getHomePageId())) {
                                 return RespDTO.onError("住院手术未输入病案首页编号!");
                             }else if(aHomeOperationVO.getHospitalId()==null){
                                 return RespDTO.onError("住院手术未输入医院编码!");
-                            }else if("".equals(aHomeOperationVO.getOperationOrderNo())){
+                            }else if(StringUtil.isEmpty(aHomeOperationVO.getOperationOrderNo())){
                                 return RespDTO.onError("住院手术未输入顺序号!");
                             }
                         }
@@ -231,11 +231,11 @@ public class AHomePageFacade extends HomePageServiceImpl{
             if(list!=null && list.size()>0){
                 //循环验证数据有效性
                 for (AHomePageVO aHomePageVO:list) {
-                    if("".equals(aHomePageVO.getHomePageId())) {
+                    if(StringUtil.isEmpty(aHomePageVO.getHomePageId())) {
                         return RespDTO.onError("请输入病案首页编号!");
                     }else if(aHomePageVO.getHospitalId()==null){
                         return RespDTO.onError("请输入医院编码!");
-                    }else if("".equals(aHomePageVO.getBehospitalCode())){
+                    }else if(StringUtil.isEmpty(aHomePageVO.getBehospitalCode())){
                         return RespDTO.onError("请输入病人住院编码!");
                     }
                 }