wuxw7
2017-04-11 67095fd3cbf30f090e22bcb654363f91a708b4af
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
package com.java110.user.dao;
 
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;
 
/**
 * 用户组件内部之间使用,没有给外围系统提供服务能力
 * 用户服务接口类,要求全部以字符串传输,方便微服务化
 * 新建客户,修改客户,删除客户,查询客户等功能
 *
 * Created by wuxw on 2016/12/27.
 */
public interface IUserServiceDao {
 
    /**
     * 保存用户基本信息(过程表)
     * @param boCust 用户基本信息
     * @return
     */
    public int saveDataToBoCust(BoCust boCust) throws RuntimeException;
 
    /**
     * 保存用户属性(过程表)
     * @param boCustAttr 用户属性
     * @return
     * @throws RuntimeException
     */
    public int saveDataToBoCustAttr(BoCustAttr boCustAttr) throws RuntimeException ;
 
    /**
     *  同事保存用户基本信息和属性(过程表)
     * @param boCustInfo 用户信息
     * @return
     * @throws RuntimeException
     */
    public String saveDataToBoCustAndBoCustAttr(String boCustInfo) throws RuntimeException;
 
    /**
     * 保存用户基本信息
     * @param cust
     * @return
     * @throws RuntimeException
     */
    public int saveDataToCust(Cust cust) throws RuntimeException;
 
    /**
     *  保存用户属性
     * @param custAttr
     * @return
     * @throws RuntimeException
     */
    public int saveDataToCustAttr(CustAttr custAttr) throws RuntimeException;
 
    /**
     * 同事保存用户基本信息和属性
     * @param custInfo
     * @return
     * @throws RuntimeException
     */
    public String saveDataToCustAndCustAttr(String custInfo) throws RuntimeException;
 
 
    /**
     * 更新用户基本信息
     * @param cust
     * @return
     * @throws RuntimeException
     */
    public String updateDataToCust(String cust) throws RuntimeException;
 
    /**
     *  更新用户属性
     * @param custAttr
     * @return
     * @throws RuntimeException
     */
    public String updateDataToCustAttr(String custAttr) throws RuntimeException;
 
    /**
     * 同事更新用户基本信息和属性
     * @param custInfo
     * @return
     * @throws RuntimeException
     */
    public String updateDataToCustAndCustAttr(String custInfo) throws RuntimeException;
 
 
 
    /**
     * 查询用户基本信息(一般没用,就算有用)
     * @param cust
     * @return
     * @throws RuntimeException
     */
    public Cust queryDataToCust(Cust cust) throws RuntimeException ;
 
 
 
    /**
     *  查询用户属性
     * @param custAttr
     * @return
     * @throws RuntimeException
     */
    public List<CustAttr> queryDataToCustAttr(CustAttr custAttr) throws RuntimeException;
 
    /**
     * 查询保存用户基本信息和属性
     * @param custInfo
     * @return
     * @throws RuntimeException
     */
    public String queryDataToCustAndCustAttr(String custInfo) throws RuntimeException;
 
 
}