From 1fbad8443bb5324571cfba6fcb6f1b6b0d7f5266 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期三, 24 四月 2019 16:48:07 +0800
Subject: [PATCH] 查询小区楼信息完成
---
UserService/src/main/java/com/java110/user/dao/impl/UserServiceDaoImpl.java | 266 ++++++++++++++++++++++++++++++----------------------
1 files changed, 152 insertions(+), 114 deletions(-)
diff --git a/UserService/src/main/java/com/java110/user/dao/impl/UserServiceDaoImpl.java b/UserService/src/main/java/com/java110/user/dao/impl/UserServiceDaoImpl.java
index 599afe4..bdc4b7a 100644
--- a/UserService/src/main/java/com/java110/user/dao/impl/UserServiceDaoImpl.java
+++ b/UserService/src/main/java/com/java110/user/dao/impl/UserServiceDaoImpl.java
@@ -37,22 +37,23 @@
/**
* 淇濆瓨鐢ㄦ埛鍩烘湰淇℃伅
* 鍔熻兘鍙敤涓庝繚瀛樼敤鎴峰鐞�
+ *
* @param boCust 鐢ㄦ埛鍩烘湰淇℃伅
* @return
*/
@Override
- public int saveDataToBoCust(BoCust boCust) throws RuntimeException{
+ public int saveDataToBoCust(BoCust boCust) throws RuntimeException {
logger.debug("----銆恥serServiceDaoImpl.saveDataToBoCust銆戜繚瀛樻暟鎹叆鍙� : " + boCust);
int saveFlag = 0;
try {
- saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveDataToBoCust",boCust);
+ saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveDataToBoCust", boCust);
- }catch(RuntimeException e){
- logger.error("----銆恥serServiceDaoImpl.saveDataToBoCust銆戜繚瀛樻暟鎹紓甯� : " ,e);
+ } catch (RuntimeException e) {
+ logger.error("----銆恥serServiceDaoImpl.saveDataToBoCust銆戜繚瀛樻暟鎹紓甯� : ", e);
return saveFlag;
- }finally {
+ } finally {
logger.debug("----銆恥serServiceDaoImpl.saveDataToBoCust銆戜繚瀛樻暟鎹嚭鍙� : saveFlag:" + saveFlag);
return saveFlag;
}
@@ -71,13 +72,13 @@
logger.debug("----銆恥serServiceDaoImpl.saveDataToBoCustAttr銆戜繚瀛樻暟鎹叆鍙� : " + boCustAttr);
//涓轰簡淇濋櫓璧疯锛屽啀娴嬫娴媟eqList 鏄惁鏈夊��
- if(boCustAttr == null){
+ if (boCustAttr == null) {
logger.debug("----銆恥serServiceDaoImpl.saveDataToBoCustAttr銆戜繚瀛樻暟鎹嚭閿� : " + boCustAttr);
return 0;
}
int saveFlag = 0;
- saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveDataToBoCustAttr",boCustAttr);
+ saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveDataToBoCustAttr", boCustAttr);
logger.debug("----銆恥serServiceDaoImpl.saveDataToBoCustAttr銆戜繚瀛樻暟鎹嚭鍙� :saveFlag " + saveFlag);
return saveFlag;
@@ -86,6 +87,7 @@
/**
* 淇濆瓨瀹炰緥鏁版嵁 瀹㈡埛淇℃伅鑷矯ust琛ㄤ腑
+ *
* @param cust
* @return
* @throws RuntimeException
@@ -94,13 +96,13 @@
public int saveDataToCust(Cust cust) throws RuntimeException {
logger.debug("----銆恥serServiceDaoImpl.saveDataToCust銆戜繚瀛樻暟鎹叆鍙� : " + cust);
//涓轰簡淇濋櫓璧疯锛屽啀娴嬫娴媟eqList 鏄惁鏈夊��
- if(cust == null){
+ if (cust == null) {
logger.debug("----銆恥serServiceDaoImpl.saveDataToCust銆戜繚瀛樻暟鎹嚭閿� : " + cust);
throw new IllegalArgumentException("璇锋眰鍙傛暟閿欒锛宑ust : " + cust);
}
int saveFlag = 0;
- saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveDataToCust",cust);
+ saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveDataToCust", cust);
logger.debug("----銆恥serServiceDaoImpl.saveDataToCust銆戜繚瀛樻暟鎹嚭鍙� :saveFlag " + saveFlag);
return saveFlag;
@@ -108,6 +110,7 @@
/**
* 淇濆瓨瀹炰緥鏁版嵁 瀹㈡埛灞炴�т俊鎭嚦CustAttr琛ㄤ腑
+ *
* @param custAttr
* @return
* @throws RuntimeException
@@ -116,13 +119,13 @@
public int saveDataToCustAttr(CustAttr custAttr) throws RuntimeException {
logger.debug("----銆恥serServiceDaoImpl.saveDataToCust銆戜繚瀛樻暟鎹叆鍙� : " + custAttr);
//涓轰簡淇濋櫓璧疯锛屽啀娴嬫娴媟eqList 鏄惁鏈夊��
- if(custAttr == null){
+ if (custAttr == null) {
logger.debug("----銆恥serServiceDaoImpl.saveDataToCust銆戜繚瀛樻暟鎹嚭閿� : " + custAttr);
throw new IllegalArgumentException("璇锋眰鍙傛暟閿欒锛宑ustAttr : " + custAttr);
}
int saveFlag = 0;
- saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveDataToCustAttr",custAttr);
+ saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveDataToCustAttr", custAttr);
logger.debug("----銆恥serServiceDaoImpl.saveDataToCust銆戜繚瀛樻暟鎹嚭鍙� :saveFlag " + saveFlag);
return saveFlag;
@@ -130,41 +133,43 @@
/**
* 鍒犻櫎鐢ㄦ埛鍩烘湰淇℃伅锛堝疄渚嬫暟鎹級
+ *
* @param cust
* @return
* @throws RuntimeException
*/
- public int deleteDataToCust(Cust cust) throws RuntimeException{
+ public int deleteDataToCust(Cust cust) throws RuntimeException {
logger.debug("----銆恥serServiceDaoImpl.deleteDataToCust銆戜繚瀛樻暟鎹叆鍙� : " + cust);
//涓轰簡淇濋櫓璧疯锛屽啀娴嬫娴媟eqList 鏄惁鏈夊��
- if(cust == null){
+ if (cust == null) {
logger.debug("----銆恥serServiceDaoImpl.deleteDataToCust銆戜繚瀛樻暟鎹嚭閿� : " + cust);
throw new IllegalArgumentException("璇锋眰鍙傛暟閿欒锛宑ust : " + cust);
}
int saveFlag = 0;
- saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.deleteDataToCust",cust);
+ saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.deleteDataToCust", cust);
logger.debug("----銆恥serServiceDaoImpl.deleteDataToCust銆戜繚瀛樻暟鎹嚭鍙� :saveFlag " + saveFlag);
return saveFlag;
}
/**
- * 鍒犻櫎鐢ㄦ埛灞炴�э紙瀹炰緥鏁版嵁锛�
+ * 鍒犻櫎鐢ㄦ埛灞炴�э紙瀹炰緥鏁版嵁锛�
+ *
* @param custAttr
* @return
* @throws RuntimeException
*/
- public int deleteDataToCustAttr(CustAttr custAttr) throws RuntimeException{
+ public int deleteDataToCustAttr(CustAttr custAttr) throws RuntimeException {
logger.debug("----銆恥serServiceDaoImpl.deleteDataToCustAttr銆戜繚瀛樻暟鎹叆鍙� : " + custAttr);
//涓轰簡淇濋櫓璧疯锛屽啀娴嬫娴媟eqList 鏄惁鏈夊��
- if(custAttr == null){
+ if (custAttr == null) {
logger.debug("----銆恥serServiceDaoImpl.deleteDataToCustAttr銆戜繚瀛樻暟鎹嚭閿� : " + custAttr);
throw new IllegalArgumentException("璇锋眰鍙傛暟閿欒锛宑ustAttr : " + custAttr);
}
int saveFlag = 0;
- saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.deleteDataToCustAttr",custAttr);
+ saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.deleteDataToCustAttr", custAttr);
logger.debug("----銆恥serServiceDaoImpl.deleteDataToCustAttr銆戜繚瀛樻暟鎹嚭鍙� :saveFlag " + saveFlag);
return saveFlag;
@@ -181,7 +186,7 @@
@Override
public String saveDataToBoCustAndBoCustAttr(String boCustInfo) throws RuntimeException {
- logger.debug("----銆恥serServiceDaoImpl.saveDataToBoCustAndBoCustAttr銆戜繚瀛樻暟鎹叆鍙�"+boCustInfo);
+ logger.debug("----銆恥serServiceDaoImpl.saveDataToBoCustAndBoCustAttr銆戜繚瀛樻暟鎹叆鍙�" + boCustInfo);
return null;
}
@@ -208,6 +213,7 @@
/**
* 鏍规嵁瀹㈡埛ID鏌ヨ瀹㈡埛淇℃伅锛屽寘鎷熀鏈俊鎭拰灞炴�т俊鎭�
+ *
* @param cust
* @return
* @throws RuntimeException
@@ -216,12 +222,12 @@
public Cust queryDataToCust(Cust cust) throws RuntimeException {
logger.debug("----銆恥serServiceDaoImpl.queryDataToCust銆戜繚瀛樻暟鎹叆鍙� : " + cust);
//涓轰簡淇濋櫓璧疯锛屽啀娴嬫娴媟eqList 鏄惁鏈夊��
- if(cust == null){
+ if (cust == null) {
logger.debug("----銆恥serServiceDaoImpl.queryDataToCust銆戜繚瀛樻暟鎹嚭閿� : " + cust);
throw new IllegalArgumentException("璇锋眰鍙傛暟閿欒锛宑ust : " + cust);
}
- Cust newCust = sqlSessionTemplate.selectOne("userServiceDaoImpl.queryDataToCust",cust);
+ Cust newCust = sqlSessionTemplate.selectOne("userServiceDaoImpl.queryDataToCust", cust);
logger.debug("----銆恥serServiceDaoImpl.queryDataToCust銆戜繚瀛樻暟鎹嚭鍙� :newCust " + newCust);
@@ -239,12 +245,12 @@
public List<CustAttr> queryDataToCustAttr(CustAttr custAttr) throws RuntimeException {
logger.debug("----銆恥serServiceDaoImpl.queryDataToCustAttr銆戜繚瀛樻暟鎹叆鍙� : " + custAttr);
//涓轰簡淇濋櫓璧疯锛屽啀娴嬫娴媟eqList 鏄惁鏈夊��
- if(custAttr == null){
+ if (custAttr == null) {
logger.debug("----銆恥serServiceDaoImpl.queryDataToCust銆戜繚瀛樻暟鎹嚭閿� : " + custAttr);
throw new IllegalArgumentException("璇锋眰鍙傛暟閿欒锛孋ustAttr : " + custAttr);
}
- List<CustAttr> custAttrs = sqlSessionTemplate.selectList("userServiceDaoImpl.queryDataToCustAttr",custAttr);
+ List<CustAttr> custAttrs = sqlSessionTemplate.selectList("userServiceDaoImpl.queryDataToCustAttr", custAttr);
logger.debug("----銆恥serServiceDaoImpl.queryDataToCust銆戜繚瀛樻暟鎹嚭鍙� :custAttrs " + custAttrs);
@@ -257,41 +263,40 @@
}
/**
- *
* 鏌ヨ 瀹㈡埛鍩烘湰淇℃伅锛堣繃绋嬭〃bo_cust锛�
*
* @param boCust
* @return
* @throws Exception
*/
- public List<BoCust> queryBoCust(BoCust boCust) throws Exception{
- logger.debug("----銆恥serServiceDaoImpl.queryBoCustAttr銆�:"+boCust);
+ public List<BoCust> queryBoCust(BoCust boCust) throws Exception {
+ logger.debug("----銆恥serServiceDaoImpl.queryBoCustAttr銆�:" + boCust);
- Assert.isNull(boCust,"鏌ヨbo_cust 鍏ュ弬涓虹┖");
+ Assert.isNull(boCust, "鏌ヨbo_cust 鍏ュ弬涓虹┖");
- return sqlSessionTemplate.selectList("userServiceDaoImpl.queryBoCust",boCust);
+ return sqlSessionTemplate.selectList("userServiceDaoImpl.queryBoCust", boCust);
}
/**
- *
* 鏌ヨ 瀹㈡埛灞炴�т俊鎭紙杩囩▼琛� bo_cust_attr锛�
*
* @param boCustAttr
* @return
* @throws Exception
*/
- public List<BoCustAttr> queryBoCustAttr(BoCustAttr boCustAttr) throws Exception{
+ public List<BoCustAttr> queryBoCustAttr(BoCustAttr boCustAttr) throws Exception {
- logger.debug("銆恥serServiceDaoImpl.queryBoCustAttr銆�:"+boCustAttr);
+ logger.debug("銆恥serServiceDaoImpl.queryBoCustAttr銆�:" + boCustAttr);
- Assert.isNull(boCustAttr,"鏌ヨbo_cust_attr 鍏ュ弬涓虹┖");
+ Assert.isNull(boCustAttr, "鏌ヨbo_cust_attr 鍏ュ弬涓虹┖");
- return sqlSessionTemplate.selectList("userServiceDaoImpl.queryBoCustAttr",boCustAttr);
+ return sqlSessionTemplate.selectList("userServiceDaoImpl.queryBoCustAttr", boCustAttr);
}
/**
* 淇濆瓨鐢ㄦ埛淇℃伅
+ *
* @param userInfo
* @throws DAOException
*/
@@ -301,14 +306,16 @@
// 鏌ヨbusiness_user 鏁版嵁鏄惁宸茬粡瀛樺湪
- int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveBusinessUserInfo",userInfo);
+ int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveBusinessUserInfo", userInfo);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鐢ㄦ埛鏁版嵁澶辫触锛�"+JSONObject.toJSONString(userInfo));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨鐢ㄦ埛鏁版嵁澶辫触锛�" + JSONObject.toJSONString(userInfo));
}
}
+
/**
* 淇濆瓨鐢ㄦ埛灞炴��
+ *
* @param userAttr
* @throws DAOException
*/
@@ -316,66 +323,66 @@
public void saveBusinessUserAttr(Map userAttr) throws DAOException {
logger.debug("----銆恥serServiceDaoImpl.saveBusinessUserAttr銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(userAttr));
- int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveBusinessUserAttr",userAttr);
+ int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveBusinessUserAttr", userAttr);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鐢ㄦ埛灞炴�ф暟鎹け璐ワ細"+JSONObject.toJSONString(userAttr));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨鐢ㄦ埛灞炴�ф暟鎹け璐ワ細" + JSONObject.toJSONString(userAttr));
}
}
@Override
public void saveUserInfoInstance(Map businessUser) {
logger.debug("----銆恥serServiceDaoImpl.saveUserInfoInstance銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(businessUser));
- int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveUserInfoInstance",businessUser);
+ int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveUserInfoInstance", businessUser);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鐢ㄦ埛Instance鏁版嵁澶辫触锛�"+JSONObject.toJSONString(businessUser));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨鐢ㄦ埛Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(businessUser));
}
}
@Override
public void saveUserAttrInstance(Map attrInstance) {
logger.debug("----銆恥serServiceDaoImpl.saveUserAttrInstance銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(attrInstance));
- int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveUserAttrInstance",attrInstance);
+ int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveUserAttrInstance", attrInstance);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鐢ㄦ埛Instance鏁版嵁澶辫触锛�"+JSONObject.toJSONString(attrInstance));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨鐢ㄦ埛Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(attrInstance));
}
}
@Override
public void updateUserInfoInstance(Map businessUser) {
logger.debug("----銆恥serServiceDaoImpl.updateUserInfoInstance銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(businessUser));
- int saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.updateUserInfoInstance",businessUser);
+ int saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.updateUserInfoInstance", businessUser);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鐢ㄦ埛Instance鏁版嵁澶辫触锛�"+JSONObject.toJSONString(businessUser));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇敼鐢ㄦ埛Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(businessUser));
}
}
@Override
public void updateUserAttrInstance(Map attrInstance) {
logger.debug("----銆恥serServiceDaoImpl.updateUserAttrInstance銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(attrInstance));
- int saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.updateUserAttrInstance",attrInstance);
+ int saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.updateUserAttrInstance", attrInstance);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鐢ㄦ埛Instance鏁版嵁澶辫触锛�"+JSONObject.toJSONString(attrInstance));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇敼鐢ㄦ埛Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(attrInstance));
}
}
-
/**
* 鏌ヨ鐢ㄦ埛淇℃伅
+ *
* @param info
* @return
* @throws DAOException
*/
- public Map queryBusinessUserInfo(Map info) throws DAOException{
- Assert.notNull(info,"queryBusinessUserInfo 鐨勫弬鏁颁笉鑳戒负绌�");
+ public Map queryBusinessUserInfo(Map info) throws DAOException {
+ Assert.notNull(info, "queryBusinessUserInfo 鐨勫弬鏁颁笉鑳戒负绌�");
logger.debug("----銆恥serServiceDaoImpl.queryBusinessUserInfo銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(info));
- List<Map> users = sqlSessionTemplate.selectList("userServiceDaoImpl.queryBusinessUserInfo",info);
- if(users == null || users.size() == 0){
+ List<Map> users = sqlSessionTemplate.selectList("userServiceDaoImpl.queryBusinessUserInfo", info);
+ if (users == null || users.size() == 0) {
return null;
}
return users.get(0);
@@ -383,29 +390,31 @@
/**
* 鏌ヨ鐢ㄦ埛淇℃伅
+ *
* @param info
* @return
* @throws DAOException
*/
- public List<Map> queryBusinessUserInfoAttrs(Map info) throws DAOException{
- Assert.notNull(info,"queryBusinessUserInfoAttrs 鐨勫弬鏁颁笉鑳戒负绌�");
+ public List<Map> queryBusinessUserInfoAttrs(Map info) throws DAOException {
+ Assert.notNull(info, "queryBusinessUserInfoAttrs 鐨勫弬鏁颁笉鑳戒负绌�");
logger.debug("----銆恥serServiceDaoImpl.queryBusinessUserInfoAttrs銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(info));
- List<Map> userAttrs = sqlSessionTemplate.selectList("userServiceDaoImpl.queryBusinessUserInfoAttrs",info);
+ List<Map> userAttrs = sqlSessionTemplate.selectList("userServiceDaoImpl.queryBusinessUserInfoAttrs", info);
return userAttrs;
}
/**
* 鏌ヨ鐢ㄦ埛淇℃伅
+ *
* @param info
* @return
* @throws DAOException
*/
@Override
- public Map queryUserInfo(Map info) throws DAOException{
- Assert.notNull(info,"queryUserInfo 鐨勫弬鏁颁笉鑳戒负绌�");
+ public Map queryUserInfo(Map info) throws DAOException {
+ Assert.notNull(info, "queryUserInfo 鐨勫弬鏁颁笉鑳戒负绌�");
logger.debug("----銆恥serServiceDaoImpl.queryUserInfo銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(info));
- List<Map> users = sqlSessionTemplate.selectList("userServiceDaoImpl.queryUserInfo",info);
- if(users == null || users.size() == 0){
+ List<Map> users = sqlSessionTemplate.selectList("userServiceDaoImpl.queryUserInfo", info);
+ if (users == null || users.size() == 0) {
return null;
}
return users.get(0);
@@ -413,45 +422,64 @@
/**
* 鏌ヨ鐢ㄦ埛淇℃伅
+ *
* @param info
* @return
* @throws DAOException
*/
@Override
- public List<Map> queryUserInfoAttrs(Map info) throws DAOException{
- Assert.notNull(info,"queryUserInfo 鐨勫弬鏁颁笉鑳戒负绌�");
+ public List<Map> queryUsersInfo(Map info) throws DAOException {
+ Assert.notNull(info, "queryUserInfo 鐨勫弬鏁颁笉鑳戒负绌�");
+ logger.debug("----銆恥serServiceDaoImpl.queryUserInfo銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(info));
+ List<Map> users = sqlSessionTemplate.selectList("userServiceDaoImpl.queryUserInfo", info);
+
+ return users;
+ }
+
+ /**
+ * 鏌ヨ鐢ㄦ埛淇℃伅
+ *
+ * @param info
+ * @return
+ * @throws DAOException
+ */
+ @Override
+ public List<Map> queryUserInfoAttrs(Map info) throws DAOException {
+ Assert.notNull(info, "queryUserInfo 鐨勫弬鏁颁笉鑳戒负绌�");
logger.debug("----銆恥serServiceDaoImpl.updateUserAttrInstance銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(info));
- List<Map> userAttrs = sqlSessionTemplate.selectList("userServiceDaoImpl.queryUserInfoAttrs",info);
+ List<Map> userAttrs = sqlSessionTemplate.selectList("userServiceDaoImpl.queryUserInfoAttrs", info);
return userAttrs;
}
/**
* 淇濆瓨鐢ㄦ埛鍦板潃淇℃伅
* Business 杩囩▼
+ *
* @param userAddress 鐢ㄦ埛鍦板潃淇℃伅
* @throws DAOException
*/
- public void saveBusinessUserAddress(Map userAddress) throws DAOException{
+ public void saveBusinessUserAddress(Map userAddress) throws DAOException {
logger.debug("----銆恥serServiceDaoImpl.saveBusinessUserAddress銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(userAddress));
- int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveBusinessUserAddress",userAddress);
+ int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveBusinessUserAddress", userAddress);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鐢ㄦ埛鍦板潃鏁版嵁澶辫触锛�"+JSONObject.toJSONString(userAddress));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨鐢ㄦ埛鍦板潃鏁版嵁澶辫触锛�" + JSONObject.toJSONString(userAddress));
}
}
/**
* 鏌ヨ鐢ㄦ埛鍦板潃淇℃伅
* business 杩囩▼
+ *
* @param info b_id
* @return 鏌ヨ鍒扮殑鐢ㄦ埛鍦板潃淇℃伅
* @throws DAOException
*/
- public Map queryBusinessUserAddress(Map info) throws DAOException{
- Assert.notNull(info,"queryBusinessUserAddress 鐨勫弬鏁颁笉鑳戒负绌�");
+ public Map queryBusinessUserAddress(Map info) throws DAOException {
+ Assert.notNull(info, "queryBusinessUserAddress 鐨勫弬鏁颁笉鑳戒负绌�");
logger.debug("----銆恥serServiceDaoImpl.queryBusinessUserAddress銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(info));
- List<Map> users = sqlSessionTemplate.selectList("userServiceDaoImpl.queryBusinessUserAddress",info);
- if(users == null || users.size() == 0){
+ List<Map> users = sqlSessionTemplate.selectList("userServiceDaoImpl.queryBusinessUserAddress", info);
+ if (users == null || users.size() == 0) {
return null;
}
return users.get(0);
@@ -459,29 +487,31 @@
/**
* 淇濆瓨鐢ㄦ埛鍦板潃 Business 鏁版嵁鍒� Instance
+ *
* @param businessUserAddress 浠巄usiness 涓煡鍑虹殑鏁版嵁
* @throws DAOException 鏁版嵁澶勭悊寮傚父
*/
- public void saveUserAddressInstance(Map businessUserAddress) throws DAOException{
+ public void saveUserAddressInstance(Map businessUserAddress) throws DAOException {
logger.debug("----銆恥serServiceDaoImpl.saveUserAddressInstance銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(businessUserAddress));
- int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveUserAddressInstance",businessUserAddress);
+ int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveUserAddressInstance", businessUserAddress);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鐢ㄦ埛鍦板潃Instance鏁版嵁澶辫触锛�"+JSONObject.toJSONString(businessUserAddress));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨鐢ㄦ埛鍦板潃Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(businessUserAddress));
}
}
/**
* 浣滃簾鐢ㄦ埛鍦板潃淇℃伅鏁版嵁
+ *
* @param businessUserAddress 鐢ㄦ埛鍦板潃淇℃伅 b_id
* @throws DAOException 鏁版嵁澶勭悊寮傚父
*/
- public void updateUserAddressInstance(Map businessUserAddress) throws DAOException{
+ public void updateUserAddressInstance(Map businessUserAddress) throws DAOException {
logger.debug("----銆恥serServiceDaoImpl.updateUserAddressInstance銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(businessUserAddress));
- int saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.updateUserAddressInstance",businessUserAddress);
+ int saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.updateUserAddressInstance", businessUserAddress);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鐢ㄦ埛Instance鏁版嵁澶辫触锛�"+JSONObject.toJSONString(businessUserAddress));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇敼鐢ㄦ埛Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(businessUserAddress));
}
}
@@ -489,15 +519,16 @@
/**
* 淇濆瓨鐢ㄦ埛鎵撴爣淇℃伅
* Business 杩囩▼
+ *
* @param userTag 鐢ㄦ埛鎵撴爣淇℃伅
* @throws DAOException
*/
- public void saveBusinessUserTag(Map userTag) throws DAOException{
+ public void saveBusinessUserTag(Map userTag) throws DAOException {
logger.debug("----銆恥serServiceDaoImpl.saveBusinessUserTag銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(userTag));
- int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveBusinessUserTag",userTag);
+ int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveBusinessUserTag", userTag);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鐢ㄦ埛鎵撴爣鏁版嵁澶辫触锛�"+JSONObject.toJSONString(userTag));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨鐢ㄦ埛鎵撴爣鏁版嵁澶辫触锛�" + JSONObject.toJSONString(userTag));
}
}
@@ -505,15 +536,16 @@
/**
* 鏌ヨ鐢ㄦ埛鎵撴爣淇℃伅
* business 杩囩▼
+ *
* @param info b_id
* @return 鏌ヨ鍒扮殑鐢ㄦ埛鎵撴爣淇℃伅
* @throws DAOException
*/
- public Map queryBusinessUserTag(Map info) throws DAOException{
- Assert.notNull(info,"queryBusinessUserTag 鐨勫弬鏁颁笉鑳戒负绌�");
+ public Map queryBusinessUserTag(Map info) throws DAOException {
+ Assert.notNull(info, "queryBusinessUserTag 鐨勫弬鏁颁笉鑳戒负绌�");
logger.debug("----銆恥serServiceDaoImpl.queryBusinessUserTag銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(info));
- List<Map> users = sqlSessionTemplate.selectList("userServiceDaoImpl.queryBusinessUserTag",info);
- if(users == null || users.size() == 0){
+ List<Map> users = sqlSessionTemplate.selectList("userServiceDaoImpl.queryBusinessUserTag", info);
+ if (users == null || users.size() == 0) {
return null;
}
return users.get(0);
@@ -521,30 +553,32 @@
/**
* 淇濆瓨Business 鏁版嵁鍒� Instance
+ *
* @param businessUserTag 浠巄usiness 涓煡鍑虹殑鏁版嵁
* @throws DAOException 鏁版嵁澶勭悊寮傚父
*/
- public void saveUserTagInstance(Map businessUserTag) throws DAOException{
+ public void saveUserTagInstance(Map businessUserTag) throws DAOException {
logger.debug("----銆恥serServiceDaoImpl.saveUserTagInstance銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(businessUserTag));
- int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveUserTagInstance",businessUserTag);
+ int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveUserTagInstance", businessUserTag);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鐢ㄦ埛鎵撴爣Instance鏁版嵁澶辫触锛�"+JSONObject.toJSONString(businessUserTag));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨鐢ㄦ埛鎵撴爣Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(businessUserTag));
}
}
/**
* 浣滃簾鐢ㄦ埛鎵撴爣鏁版嵁
+ *
* @param businessUserTag 鐢ㄦ埛鍦板潃淇℃伅 b_id
* @throws DAOException 鏁版嵁澶勭悊寮傚父
*/
- public void updateUserTagInstance(Map businessUserTag) throws DAOException{
+ public void updateUserTagInstance(Map businessUserTag) throws DAOException {
logger.debug("----銆恥serServiceDaoImpl.updateUserTagInstance銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(businessUserTag));
- int saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.updateUserTagInstance",businessUserTag);
+ int saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.updateUserTagInstance", businessUserTag);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鐢ㄦ埛Instance鏁版嵁澶辫触锛�"+JSONObject.toJSONString(businessUserTag));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇敼鐢ㄦ埛Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(businessUserTag));
}
}
@@ -552,15 +586,16 @@
/**
* 淇濆瓨鐢ㄦ埛璇佷欢淇℃伅
* Business 杩囩▼
+ *
* @param userCredentials 鐢ㄦ埛璇佷欢淇℃伅
* @throws DAOException
*/
- public void saveBusinessUserCredentials(Map userCredentials) throws DAOException{
+ public void saveBusinessUserCredentials(Map userCredentials) throws DAOException {
logger.debug("----銆恥serServiceDaoImpl.saveBusinessUserCredentials銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(userCredentials));
- int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveBusinessUserCredentials",userCredentials);
+ int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveBusinessUserCredentials", userCredentials);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鐢ㄦ埛鎵撴爣鏁版嵁澶辫触锛�"+JSONObject.toJSONString(userCredentials));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨鐢ㄦ埛鎵撴爣鏁版嵁澶辫触锛�" + JSONObject.toJSONString(userCredentials));
}
}
@@ -568,15 +603,16 @@
/**
* 鏌ヨ鐢ㄦ埛璇佷欢淇℃伅
* business 杩囩▼
+ *
* @param info b_id
* @return 鏌ヨ鍒扮殑鐢ㄦ埛鎵撴爣淇℃伅
* @throws DAOException
*/
- public Map queryBusinessUserCredentials(Map info) throws DAOException{
- Assert.notNull(info,"queryBusinessUserCredentials 鐨勫弬鏁颁笉鑳戒负绌�");
+ public Map queryBusinessUserCredentials(Map info) throws DAOException {
+ Assert.notNull(info, "queryBusinessUserCredentials 鐨勫弬鏁颁笉鑳戒负绌�");
logger.debug("----銆恥serServiceDaoImpl.queryBusinessUserCredentials銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(info));
- List<Map> users = sqlSessionTemplate.selectList("userServiceDaoImpl.queryBusinessUserCredentials",info);
- if(users == null || users.size() == 0){
+ List<Map> users = sqlSessionTemplate.selectList("userServiceDaoImpl.queryBusinessUserCredentials", info);
+ if (users == null || users.size() == 0) {
return null;
}
return users.get(0);
@@ -584,30 +620,32 @@
/**
* 淇濆瓨Business 鏁版嵁鍒� Instance
+ *
* @param businessUserCredentials 浠巄usiness 涓煡鍑虹殑鏁版嵁
* @throws DAOException 鏁版嵁澶勭悊寮傚父
*/
- public void saveUserCredentialsInstance(Map businessUserCredentials) throws DAOException{
+ public void saveUserCredentialsInstance(Map businessUserCredentials) throws DAOException {
logger.debug("----銆恥serServiceDaoImpl.saveUserCredentialsInstance銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(businessUserCredentials));
- int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveUserCredentialsInstance",businessUserCredentials);
+ int saveFlag = sqlSessionTemplate.insert("userServiceDaoImpl.saveUserCredentialsInstance", businessUserCredentials);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨鐢ㄦ埛鎵撴爣Instance鏁版嵁澶辫触锛�"+JSONObject.toJSONString(businessUserCredentials));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨鐢ㄦ埛鎵撴爣Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(businessUserCredentials));
}
}
/**
* 浣滃簾鐢ㄦ埛璇佷欢鏁版嵁
+ *
* @param businessUserCredentials 鐢ㄦ埛鍦板潃淇℃伅 b_id
* @throws DAOException 鏁版嵁澶勭悊寮傚父
*/
- public void updateUserCredentialsInstance(Map businessUserCredentials) throws DAOException{
+ public void updateUserCredentialsInstance(Map businessUserCredentials) throws DAOException {
logger.debug("----銆恥serServiceDaoImpl.updateUserCredentialsInstance銆戜繚瀛樻暟鎹叆鍙� : " + JSONObject.toJSONString(businessUserCredentials));
- int saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.updateUserCredentialsInstance",businessUserCredentials);
+ int saveFlag = sqlSessionTemplate.update("userServiceDaoImpl.updateUserCredentialsInstance", businessUserCredentials);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼鐢ㄦ埛Instance鏁版嵁澶辫触锛�"+JSONObject.toJSONString(businessUserCredentials));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇敼鐢ㄦ埛Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(businessUserCredentials));
}
}
}
--
Gitblit v1.8.0