Sfoglia il codice sorgente

优化格式化代码

shiyj1101 5 anni fa
parent
commit
14151ec719

+ 2 - 2
java110-db/src/main/resources/mapper/user/InitializeOwnerServiceDaoImplMapper.xml

@@ -6,7 +6,7 @@
 
     <!-- 初始化数据 add by wuxw 2018-07-03 -->
     <delete id="deleteBuildingOwner" parameterType="Map">
-         delete from building_owner t where 1=1
-            and t.community_id = #{communityId}
+        delete from building_owner where 1=1
+            and community_id = #{communityId}
     </delete>
 </mapper>

+ 10 - 10
service-community/src/main/java/com/java110/community/dao/impl/InitializeBuildingUnitDaoImpl.java

@@ -35,9 +35,9 @@ public class InitializeBuildingUnitDaoImpl extends BaseServiceDao implements IIn
 
         int deleteFlag = sqlSessionTemplate.delete("initializeBuildingUnitDaoImpl.deleteBuildingUnit", info);
 
-        if (deleteFlag < 1) {
+/*        if (deleteFlag < 1) {
             throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "building_unit初始化失败:" + JSONObject.toJSONString(info));
-        }
+        }*/
         return deleteFlag;
     }
     /**
@@ -51,9 +51,9 @@ public class InitializeBuildingUnitDaoImpl extends BaseServiceDao implements IIn
 
         int deleteFlag = sqlSessionTemplate.delete("initializeBuildingUnitDaoImpl.deletefFloor", info);
 
-        if (deleteFlag < 1) {
+/*        if (deleteFlag < 1) {
             throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "f_floor初始化失败:" + JSONObject.toJSONString(info));
-        }
+        }*/
         return deleteFlag;
     }
     /**
@@ -67,9 +67,9 @@ public class InitializeBuildingUnitDaoImpl extends BaseServiceDao implements IIn
 
         int deleteFlag = sqlSessionTemplate.delete("initializeBuildingUnitDaoImpl.deleteBuildingRoom", info);
 
-        if (deleteFlag < 1) {
+ /*       if (deleteFlag < 1) {
             throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "f_floor初始化失败:" + JSONObject.toJSONString(info));
-        }
+        }*/
         return deleteFlag;
     }
 
@@ -78,9 +78,9 @@ public class InitializeBuildingUnitDaoImpl extends BaseServiceDao implements IIn
 
         int deleteFlag = sqlSessionTemplate.delete("initializeBuildingUnitDaoImpl.deleteParkingArea", info);
 
-        if (deleteFlag < 1) {
+  /*      if (deleteFlag < 1) {
             throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "f_floor初始化失败:" + JSONObject.toJSONString(info));
-        }
+        }*/
         return deleteFlag;
     }
     /**
@@ -94,9 +94,9 @@ public class InitializeBuildingUnitDaoImpl extends BaseServiceDao implements IIn
 
         int deleteFlag = sqlSessionTemplate.delete("initializeBuildingUnitDaoImpl.deleteParkingSpace", info);
 
-        if (deleteFlag < 1) {
+  /*      if (deleteFlag < 1) {
             throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "f_floor初始化失败:" + JSONObject.toJSONString(info));
-        }
+        }*/
         return deleteFlag;
     }
 

+ 2 - 2
service-user/src/main/java/com/java110/user/dao/impl/InitializeOwnerServiceDaoImpl.java

@@ -31,9 +31,9 @@ public class InitializeOwnerServiceDaoImpl extends BaseServiceDao implements IIn
 
         int deleteFlag = sqlSessionTemplate.delete("initializeOwnerServiceDaoImpl.deleteBuildingOwner", info);
 
-        if (deleteFlag < 1) {
+    /*    if (deleteFlag < 1) {
             throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "building_owner初始化失败:" + JSONObject.toJSONString(info));
-        }
+        }*/
         return deleteFlag;
     }
 }