From cbc1f9db3d796683d88d6d30df3659984dfbeda3 Mon Sep 17 00:00:00 2001
From: webapp <webapp@home-server.attdns.com>
Date: 星期一, 30 九月 2019 22:56:12 +0800
Subject: [PATCH] 取消java110-common jar包,提升为CommonService服务,将之前的Java110-common内容变更为Java110-utils包
---
UserService/src/main/java/com/java110/user/dao/IUserServiceDao.java | 280 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 260 insertions(+), 20 deletions(-)
diff --git a/UserService/src/main/java/com/java110/user/dao/IUserServiceDao.java b/UserService/src/main/java/com/java110/user/dao/IUserServiceDao.java
index 1dd483d..8c40d7a 100644
--- a/UserService/src/main/java/com/java110/user/dao/IUserServiceDao.java
+++ b/UserService/src/main/java/com/java110/user/dao/IUserServiceDao.java
@@ -1,112 +1,352 @@
package com.java110.user.dao;
+import com.java110.utils.exception.DAOException;
+import com.java110.entity.user.BoCust;
+import com.java110.entity.user.BoCustAttr;
+import com.java110.entity.user.Cust;
+import com.java110.entity.user.CustAttr;
+
+import java.util.List;
+import java.util.Map;
+
/**
* 鐢ㄦ埛缁勪欢鍐呴儴涔嬮棿浣跨敤锛屾病鏈夌粰澶栧洿绯荤粺鎻愪緵鏈嶅姟鑳藉姏
* 鐢ㄦ埛鏈嶅姟鎺ュ彛绫伙紝瑕佹眰鍏ㄩ儴浠ュ瓧绗︿覆浼犺緭锛屾柟渚垮井鏈嶅姟鍖�
* 鏂板缓瀹㈡埛锛屼慨鏀瑰鎴凤紝鍒犻櫎瀹㈡埛锛屾煡璇㈠鎴风瓑鍔熻兘
- *
+ * <p>
* Created by wuxw on 2016/12/27.
*/
public interface IUserServiceDao {
/**
* 淇濆瓨鐢ㄦ埛鍩烘湰淇℃伅(杩囩▼琛�)
+ *
* @param boCust 鐢ㄦ埛鍩烘湰淇℃伅
* @return
*/
- public String saveDataToBoCust(String boCust) throws RuntimeException;
+ int saveDataToBoCust(BoCust boCust) throws RuntimeException;
/**
* 淇濆瓨鐢ㄦ埛灞炴��(杩囩▼琛�)
+ *
* @param boCustAttr 鐢ㄦ埛灞炴��
* @return
* @throws RuntimeException
*/
- public String saveDataToBoCustAttr(String boCustAttr) throws RuntimeException;
+ int saveDataToBoCustAttr(BoCustAttr boCustAttr) throws RuntimeException;
/**
- * 鍚屼簨淇濆瓨鐢ㄦ埛鍩烘湰淇℃伅鍜屽睘鎬�(杩囩▼琛�)
+ * 鍚屼簨淇濆瓨鐢ㄦ埛鍩烘湰淇℃伅鍜屽睘鎬�(杩囩▼琛�)
+ *
* @param boCustInfo 鐢ㄦ埛淇℃伅
* @return
* @throws RuntimeException
*/
- public String saveDataToBoCustAndBoCustAttr(String boCustInfo) throws RuntimeException;
+ String saveDataToBoCustAndBoCustAttr(String boCustInfo) throws RuntimeException;
/**
* 淇濆瓨鐢ㄦ埛鍩烘湰淇℃伅
+ *
* @param cust
* @return
* @throws RuntimeException
*/
- public String saveDataToCust(String cust) throws RuntimeException;
+ int saveDataToCust(Cust cust) throws RuntimeException;
/**
- * 淇濆瓨鐢ㄦ埛灞炴��
+ * 淇濆瓨鐢ㄦ埛灞炴��
+ *
* @param custAttr
* @return
* @throws RuntimeException
*/
- public String saveDataToCustAttr(String custAttr) throws RuntimeException;
+ int saveDataToCustAttr(CustAttr custAttr) throws RuntimeException;
+
+ /**
+ * 鍒犻櫎鐢ㄦ埛鍩烘湰淇℃伅锛堝疄渚嬫暟鎹級
+ *
+ * @param cust
+ * @return
+ * @throws RuntimeException
+ */
+ int deleteDataToCust(Cust cust) throws RuntimeException;
+
+ /**
+ * 鍒犻櫎鐢ㄦ埛灞炴�э紙瀹炰緥鏁版嵁锛�
+ *
+ * @param custAttr
+ * @return
+ * @throws RuntimeException
+ */
+ int deleteDataToCustAttr(CustAttr custAttr) throws RuntimeException;
/**
* 鍚屼簨淇濆瓨鐢ㄦ埛鍩烘湰淇℃伅鍜屽睘鎬�
+ *
* @param custInfo
* @return
* @throws RuntimeException
*/
- public String saveDataToCustAndCustAttr(String custInfo) throws RuntimeException;
+ String saveDataToCustAndCustAttr(String custInfo) throws RuntimeException;
/**
* 鏇存柊鐢ㄦ埛鍩烘湰淇℃伅
+ *
* @param cust
* @return
* @throws RuntimeException
*/
- public String updateDataToCust(String cust) throws RuntimeException;
+ String updateDataToCust(String cust) throws RuntimeException;
/**
- * 鏇存柊鐢ㄦ埛灞炴��
+ * 鏇存柊鐢ㄦ埛灞炴��
+ *
* @param custAttr
* @return
* @throws RuntimeException
*/
- public String updateDataToCustAttr(String custAttr) throws RuntimeException;
+ String updateDataToCustAttr(String custAttr) throws RuntimeException;
/**
* 鍚屼簨鏇存柊鐢ㄦ埛鍩烘湰淇℃伅鍜屽睘鎬�
+ *
* @param custInfo
* @return
* @throws RuntimeException
*/
- public String updateDataToCustAndCustAttr(String custInfo) throws RuntimeException;
-
-
+ String updateDataToCustAndCustAttr(String custInfo) throws RuntimeException;
/**
* 鏌ヨ鐢ㄦ埛鍩烘湰淇℃伅锛堜竴鑸病鐢紝灏辩畻鏈夌敤锛�
+ *
* @param cust
* @return
* @throws RuntimeException
*/
- public String queryDataToCust(String cust) throws RuntimeException;
+ Cust queryDataToCust(Cust cust) throws RuntimeException;
+
/**
- * 鏌ヨ鐢ㄦ埛灞炴��
+ * 鏌ヨ鐢ㄦ埛灞炴��
+ *
* @param custAttr
* @return
* @throws RuntimeException
*/
- public String queryDataToCustAttr(String custAttr) throws RuntimeException;
+ List<CustAttr> queryDataToCustAttr(CustAttr custAttr) throws RuntimeException;
/**
* 鏌ヨ淇濆瓨鐢ㄦ埛鍩烘湰淇℃伅鍜屽睘鎬�
+ *
* @param custInfo
* @return
* @throws RuntimeException
*/
- public String queryDataToCustAndCustAttr(String custInfo) throws RuntimeException;
+ String queryDataToCustAndCustAttr(String custInfo) throws RuntimeException;
+
+ /**
+ * 鏌ヨ 瀹㈡埛鍩烘湰淇℃伅锛堣繃绋嬭〃bo_cust锛�
+ *
+ * @param boCust
+ * @return
+ * @throws Exception
+ */
+ List<BoCust> queryBoCust(BoCust boCust) throws Exception;
+
+ /**
+ * 鏌ヨ 瀹㈡埛灞炴�т俊鎭紙杩囩▼琛� bo_cust_attr锛�
+ *
+ * @param boCustAttr
+ * @return
+ * @throws Exception
+ */
+ List<BoCustAttr> queryBoCustAttr(BoCustAttr boCustAttr) throws Exception;
-}
\ No newline at end of file
+ /**
+ * 淇濆瓨鐢ㄦ埛淇℃伅
+ *
+ * @param userInfo
+ * @throws DAOException
+ */
+ void saveBusinessUserInfo(Map userInfo) throws DAOException;
+
+ /**
+ * 淇濆瓨鐢ㄦ埛灞炴��
+ *
+ * @param userAttr
+ * @throws DAOException
+ */
+ void saveBusinessUserAttr(Map userAttr) throws DAOException;
+
+
+ void saveUserInfoInstance(Map businessUser);
+
+ void saveUserAttrInstance(Map attrInstance);
+
+ void updateUserInfoInstance(Map businessUser);
+
+ void updateUserAttrInstance(Map attrInstance);
+
+ /**
+ * 鏌ヨ鐢ㄦ埛淇℃伅
+ *
+ * @param info
+ * @return
+ * @throws DAOException
+ */
+ Map queryBusinessUserInfo(Map info) throws DAOException;
+
+ /**
+ * 鏌ヨ鐢ㄦ埛淇℃伅
+ *
+ * @param info
+ * @return
+ * @throws DAOException
+ */
+ List<Map> queryBusinessUserInfoAttrs(Map info) throws DAOException;
+
+ /**
+ * 鏌ヨ鐢ㄦ埛淇℃伅
+ *
+ * @param info
+ * @return
+ * @throws DAOException
+ */
+ Map queryUserInfo(Map info) throws DAOException;
+
+
+ /**
+ * 鏌ヨ鐢ㄦ埛淇℃伅
+ *
+ * @param info 淇℃伅
+ * @return
+ * @throws DAOException
+ */
+ List<Map> queryUsersInfo(Map info) throws DAOException;
+
+ /**
+ * 鏌ヨ鐢ㄦ埛淇℃伅
+ *
+ * @param info
+ * @return
+ * @throws DAOException
+ */
+ List<Map> queryUserInfoAttrs(Map info) throws DAOException;
+
+
+ /**
+ * 淇濆瓨鐢ㄦ埛鍦板潃淇℃伅
+ * Business 杩囩▼
+ *
+ * @param userAddress 鐢ㄦ埛鍦板潃淇℃伅
+ * @throws DAOException
+ */
+ public void saveBusinessUserAddress(Map userAddress) throws DAOException;
+
+
+ /**
+ * 鏌ヨ鐢ㄦ埛鍦板潃淇℃伅
+ * business 杩囩▼
+ *
+ * @param info b_id
+ * @return 鏌ヨ鍒扮殑鐢ㄦ埛鍦板潃淇℃伅
+ * @throws DAOException
+ */
+ public Map queryBusinessUserAddress(Map info) throws DAOException;
+
+ /**
+ * 淇濆瓨Business 鏁版嵁鍒� Instance
+ *
+ * @param businessUserAddress 浠巄usiness 涓煡鍑虹殑鏁版嵁
+ * @throws DAOException 鏁版嵁澶勭悊寮傚父
+ */
+ public void saveUserAddressInstance(Map businessUserAddress) throws DAOException;
+
+
+ /**
+ * 浣滃簾鐢ㄦ埛淇℃伅鏁版嵁
+ *
+ * @param businessUserAddress 鐢ㄦ埛鍦板潃淇℃伅 b_id
+ * @throws DAOException 鏁版嵁澶勭悊寮傚父
+ */
+ public void updateUserAddressInstance(Map businessUserAddress) throws DAOException;
+
+
+ /**
+ * 淇濆瓨鐢ㄦ埛鎵撴爣淇℃伅
+ * Business 杩囩▼
+ *
+ * @param userTag 鐢ㄦ埛鎵撴爣淇℃伅
+ * @throws DAOException
+ */
+ public void saveBusinessUserTag(Map userTag) throws DAOException;
+
+
+ /**
+ * 鏌ヨ鐢ㄦ埛鎵撴爣淇℃伅
+ * business 杩囩▼
+ *
+ * @param info b_id
+ * @return 鏌ヨ鍒扮殑鐢ㄦ埛鎵撴爣淇℃伅
+ * @throws DAOException
+ */
+ public Map queryBusinessUserTag(Map info) throws DAOException;
+
+ /**
+ * 淇濆瓨Business 鏁版嵁鍒� Instance
+ *
+ * @param businessUserTag 浠巄usiness 涓煡鍑虹殑鏁版嵁
+ * @throws DAOException 鏁版嵁澶勭悊寮傚父
+ */
+ public void saveUserTagInstance(Map businessUserTag) throws DAOException;
+
+
+ /**
+ * 浣滃簾鐢ㄦ埛鎵撴爣鏁版嵁
+ *
+ * @param businessUserTag 鐢ㄦ埛鍦板潃淇℃伅 b_id
+ * @throws DAOException 鏁版嵁澶勭悊寮傚父
+ */
+ public void updateUserTagInstance(Map businessUserTag) throws DAOException;
+
+
+ /**
+ * 淇濆瓨鐢ㄦ埛璇佷欢淇℃伅
+ * Business 杩囩▼
+ *
+ * @param userCredentials 鐢ㄦ埛璇佷欢淇℃伅
+ * @throws DAOException
+ */
+ public void saveBusinessUserCredentials(Map userCredentials) throws DAOException;
+
+
+ /**
+ * 鏌ヨ鐢ㄦ埛璇佷欢淇℃伅
+ * business 杩囩▼
+ *
+ * @param info b_id
+ * @return 鏌ヨ鍒扮殑鐢ㄦ埛鎵撴爣淇℃伅
+ * @throws DAOException
+ */
+ public Map queryBusinessUserCredentials(Map info) throws DAOException;
+
+ /**
+ * 淇濆瓨Business 鏁版嵁鍒� Instance
+ *
+ * @param businessUserCredentials 浠巄usiness 涓煡鍑虹殑鏁版嵁
+ * @throws DAOException 鏁版嵁澶勭悊寮傚父
+ */
+ public void saveUserCredentialsInstance(Map businessUserCredentials) throws DAOException;
+
+
+ /**
+ * 浣滃簾鐢ㄦ埛璇佷欢鏁版嵁
+ *
+ * @param businessUserCredentials 鐢ㄦ埛鍦板潃淇℃伅 b_id
+ * @throws DAOException 鏁版嵁澶勭悊寮傚父
+ */
+ public void updateUserCredentialsInstance(Map businessUserCredentials) throws DAOException;
+}
--
Gitblit v1.8.0