From cab3425bb92d01f3494eb25c1f299038dc634c65 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期三, 15 三月 2023 23:43:48 +0800
Subject: [PATCH] 优化保养转单功能
---
service-user/src/main/java/com/java110/user/dao/impl/RoleCommunityV1ServiceDaoImpl.java | 54 ++++++++++++++++++++++++++++++++++++------------------
1 files changed, 36 insertions(+), 18 deletions(-)
diff --git a/service-user/src/main/java/com/java110/user/dao/impl/RoleCommunityV1ServiceDaoImpl.java b/service-user/src/main/java/com/java110/user/dao/impl/RoleCommunityV1ServiceDaoImpl.java
index 00837cc..76dc16d 100644
--- a/service-user/src/main/java/com/java110/user/dao/impl/RoleCommunityV1ServiceDaoImpl.java
+++ b/service-user/src/main/java/com/java110/user/dao/impl/RoleCommunityV1ServiceDaoImpl.java
@@ -15,16 +15,13 @@
*/
package com.java110.user.dao.impl;
-import com.alibaba.fastjson.JSONObject;
-import com.java110.utils.constant.ResponseConstant;
-import com.java110.utils.exception.DAOException;
-import com.java110.utils.util.DateUtil;
import com.java110.core.base.dao.BaseServiceDao;
+import com.java110.core.log.LoggerFactory;
import com.java110.user.dao.IRoleCommunityV1ServiceDao;
+import com.java110.utils.exception.DAOException;
+
import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Map;
@@ -43,19 +40,17 @@
private static Logger logger = LoggerFactory.getLogger(RoleCommunityV1ServiceDaoImpl.class);
-
-
-
/**
* 淇濆瓨椤圭洰鎺堟潈淇℃伅 鍒� instance
- * @param info bId 淇℃伅
+ *
+ * @param info bId 淇℃伅
* @throws DAOException DAO寮傚父
*/
@Override
public int saveRoleCommunityInfo(Map info) throws DAOException {
- logger.debug("淇濆瓨 saveRoleCommunityInfo 鍏ュ弬 info : {}",info);
+ logger.debug("淇濆瓨 saveRoleCommunityInfo 鍏ュ弬 info : {}", info);
- int saveFlag = sqlSessionTemplate.insert("roleCommunityV1ServiceDaoImpl.saveRoleCommunityInfo",info);
+ int saveFlag = sqlSessionTemplate.insert("roleCommunityV1ServiceDaoImpl.saveRoleCommunityInfo", info);
return saveFlag;
}
@@ -63,15 +58,16 @@
/**
* 鏌ヨ椤圭洰鎺堟潈淇℃伅锛坕nstance锛�
+ *
* @param info bId 淇℃伅
* @return List<Map>
* @throws DAOException DAO寮傚父
*/
@Override
public List<Map> getRoleCommunityInfo(Map info) throws DAOException {
- logger.debug("鏌ヨ getRoleCommunityInfo 鍏ュ弬 info : {}",info);
+ logger.debug("鏌ヨ getRoleCommunityInfo 鍏ュ弬 info : {}", info);
- List<Map> businessRoleCommunityInfos = sqlSessionTemplate.selectList("roleCommunityV1ServiceDaoImpl.getRoleCommunityInfo",info);
+ List<Map> businessRoleCommunityInfos = sqlSessionTemplate.selectList("roleCommunityV1ServiceDaoImpl.getRoleCommunityInfo", info);
return businessRoleCommunityInfos;
}
@@ -79,26 +75,28 @@
/**
* 淇敼椤圭洰鎺堟潈淇℃伅
+ *
* @param info 淇敼淇℃伅
* @throws DAOException DAO寮傚父
*/
@Override
public int updateRoleCommunityInfo(Map info) throws DAOException {
- logger.debug("淇敼 updateRoleCommunityInfo 鍏ュ弬 info : {}",info);
+ logger.debug("淇敼 updateRoleCommunityInfo 鍏ュ弬 info : {}", info);
- int saveFlag = sqlSessionTemplate.update("roleCommunityV1ServiceDaoImpl.updateRoleCommunityInfo",info);
+ int saveFlag = sqlSessionTemplate.update("roleCommunityV1ServiceDaoImpl.updateRoleCommunityInfo", info);
return saveFlag;
}
- /**
+ /**
* 鏌ヨ椤圭洰鎺堟潈鏁伴噺
+ *
* @param info 椤圭洰鎺堟潈淇℃伅
* @return 椤圭洰鎺堟潈鏁伴噺
*/
@Override
public int queryRoleCommunitysCount(Map info) {
- logger.debug("鏌ヨ queryRoleCommunitysCount 鍏ュ弬 info : {}",info);
+ logger.debug("鏌ヨ queryRoleCommunitysCount 鍏ュ弬 info : {}", info);
List<Map> businessRoleCommunityInfos = sqlSessionTemplate.selectList("roleCommunityV1ServiceDaoImpl.queryRoleCommunitysCount", info);
if (businessRoleCommunityInfos.size() < 1) {
@@ -108,5 +106,25 @@
return Integer.parseInt(businessRoleCommunityInfos.get(0).get("count").toString());
}
+ @Override
+ public int queryRoleCommunitysNameCount(Map info) {
+ logger.debug("鏌ヨ queryRoleCommunitysNameCount 鍏ュ弬 info : {}", info);
+
+ List<Map> businessRoleCommunityInfos = sqlSessionTemplate.selectList("roleCommunityV1ServiceDaoImpl.queryRoleCommunitysNameCount", info);
+ if (businessRoleCommunityInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessRoleCommunityInfos.get(0).get("count").toString()); }
+
+ @Override
+ public List<Map> queryRoleCommunitysName(Map info) {
+ logger.debug("鏌ヨ getRoleCommunityInfo 鍏ュ弬 info : {}", info);
+
+ List<Map> businessRoleCommunityInfos = sqlSessionTemplate.selectList("roleCommunityV1ServiceDaoImpl.queryRoleCommunitysName", info);
+
+ return businessRoleCommunityInfos;
+ }
+
}
--
Gitblit v1.8.0