From 3f1dc57d57ef0ceafcc59cd5ce34ff90cfe6d146 Mon Sep 17 00:00:00 2001
From: 1098226878 <1098226878@qq.com>
Date: 星期一, 13 九月 2021 17:06:16 +0800
Subject: [PATCH] 优化代码
---
service-community/src/main/java/com/java110/community/dao/impl/CommunityServiceDaoImpl.java | 20 +++++---------------
1 files changed, 5 insertions(+), 15 deletions(-)
diff --git a/service-community/src/main/java/com/java110/community/dao/impl/CommunityServiceDaoImpl.java b/service-community/src/main/java/com/java110/community/dao/impl/CommunityServiceDaoImpl.java
old mode 100644
new mode 100755
index 0d8ec00..f1626bb
--- a/service-community/src/main/java/com/java110/community/dao/impl/CommunityServiceDaoImpl.java
+++ b/service-community/src/main/java/com/java110/community/dao/impl/CommunityServiceDaoImpl.java
@@ -490,23 +490,13 @@
}
@Override
- public int saveCommunity(Map info) {
- logger.debug("淇濆瓨灏忓尯淇℃伅 鍏ュ弬 info : {}", info);
- int saveFlag = sqlSessionTemplate.insert("communityServiceDaoImpl.saveCommunity", info);
- if (saveFlag < 1) {
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨灏忓尯淇℃伅Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(info));
- }
+ public int saveCommunityAttr(Map info) {
+ logger.debug("灏忓尯鎴愬憳鍔犲叆Instance 鍏ュ弬 info : {}", info);
+
+ int saveFlag = sqlSessionTemplate.insert("communityServiceDaoImpl.saveCommunityAttr", info);
+
return saveFlag;
}
- @Override
- public int updateCommunity(Map info) {
- logger.debug("淇敼灏忓尯淇℃伅 鍏ュ弬 info : {}", info);
- int saveFlag = sqlSessionTemplate.update("communityServiceDaoImpl.updateCommunityInfoInstance", info);
- if (saveFlag < 1) {
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇敼灏忓尯淇℃伅Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(info));
- }
- return saveFlag;
- }
}
--
Gitblit v1.8.0