libo лет назад: 4
Родитель
Сommit
4e27fccc65

+ 25 - 103
src/main/java/com/tdba/cxb/ares/api/model/UserRelate.java

@@ -21,19 +21,19 @@ public class UserRelate {
21 21
     private Integer pid;
22 22
 
23 23
     /** 删除标记:0否1是*/
24
-    private Integer delFlag;
24
+    private Integer del_flag;
25 25
 
26 26
     /** 大仓会员:0否1是*/
27
-    private Integer isDacang;
27
+    private Integer is_dacang = 0;
28 28
 
29 29
     /** 商家:0否1是*/
30
-    private Integer isMerchant;
30
+    private Integer is_merchant = 0;
31 31
 
32 32
     /** 渠道商:0否1是*/
33
-    private Integer isChannel;
33
+    private Integer is_channel = 0;
34 34
 
35 35
     /** 代理商:0否1是*/
36
-    private Integer isAgent;
36
+    private Integer is_agent = 0;
37 37
 
38 38
     /** 日期*/
39 39
     private LocalDate date;
@@ -62,44 +62,44 @@ public class UserRelate {
62 62
         this.pid = pid;
63 63
     }
64 64
 
65
-    public Integer getDelFlag() {
66
-        return delFlag;
65
+    public Integer getDel_flag() {
66
+        return del_flag;
67 67
     }
68 68
 
69
-    public void setDelFlag(Integer delFlag) {
70
-        this.delFlag = delFlag;
69
+    public void setDel_flag(Integer del_flag) {
70
+        this.del_flag = del_flag;
71 71
     }
72 72
 
73
-    public Integer getIsDacang() {
74
-        return isDacang;
73
+    public Integer getIs_dacang() {
74
+        return is_dacang;
75 75
     }
76 76
 
77
-    public void setIsDacang(Integer isDacang) {
78
-        this.isDacang = isDacang;
77
+    public void setIs_dacang(Integer is_dacang) {
78
+        this.is_dacang = is_dacang;
79 79
     }
80 80
 
81
-    public Integer getIsMerchant() {
82
-        return isMerchant;
81
+    public Integer getIs_merchant() {
82
+        return is_merchant;
83 83
     }
84 84
 
85
-    public void setIsMerchant(Integer isMerchant) {
86
-        this.isMerchant = isMerchant;
85
+    public void setIs_merchant(Integer is_merchant) {
86
+        this.is_merchant = is_merchant;
87 87
     }
88 88
 
89
-    public Integer getIsChannel() {
90
-        return isChannel;
89
+    public Integer getIs_channel() {
90
+        return is_channel;
91 91
     }
92 92
 
93
-    public void setIsChannel(Integer isChannel) {
94
-        this.isChannel = isChannel;
93
+    public void setIs_channel(Integer is_channel) {
94
+        this.is_channel = is_channel;
95 95
     }
96 96
 
97
-    public Integer getIsAgent() {
98
-        return isAgent;
97
+    public Integer getIs_agent() {
98
+        return is_agent;
99 99
     }
100 100
 
101
-    public void setIsAgent(Integer isAgent) {
102
-        this.isAgent = isAgent;
101
+    public void setIs_agent(Integer is_agent) {
102
+        this.is_agent = is_agent;
103 103
     }
104 104
 
105 105
     public LocalDate getDate() {
@@ -109,82 +109,4 @@ public class UserRelate {
109 109
     public void setDate(LocalDate date) {
110 110
         this.date = date;
111 111
     }
112
-
113
-    public static final class UserRelateBuilder {
114
-        private Integer id;
115
-        private Integer uid;
116
-        private Integer pid;
117
-        private Integer delFlag;
118
-        private Integer isDacang;
119
-        private Integer isMerchant;
120
-        private Integer isChannel;
121
-        private Integer isAgent;
122
-        private LocalDate date;
123
-
124
-        private UserRelateBuilder() {
125
-        }
126
-
127
-        public static UserRelateBuilder anUserRelate() {
128
-            return new UserRelateBuilder();
129
-        }
130
-
131
-        public UserRelateBuilder withId(Integer id) {
132
-            this.id = id;
133
-            return this;
134
-        }
135
-
136
-        public UserRelateBuilder withUid(Integer uid) {
137
-            this.uid = uid;
138
-            return this;
139
-        }
140
-
141
-        public UserRelateBuilder withPid(Integer pid) {
142
-            this.pid = pid;
143
-            return this;
144
-        }
145
-
146
-        public UserRelateBuilder withDelFlag(Integer delFlag) {
147
-            this.delFlag = delFlag;
148
-            return this;
149
-        }
150
-
151
-        public UserRelateBuilder withIsDacang(Integer isDacang) {
152
-            this.isDacang = isDacang;
153
-            return this;
154
-        }
155
-
156
-        public UserRelateBuilder withIsMerchant(Integer isMerchant) {
157
-            this.isMerchant = isMerchant;
158
-            return this;
159
-        }
160
-
161
-        public UserRelateBuilder withIsChannel(Integer isChannel) {
162
-            this.isChannel = isChannel;
163
-            return this;
164
-        }
165
-
166
-        public UserRelateBuilder withIsAgent(Integer isAgent) {
167
-            this.isAgent = isAgent;
168
-            return this;
169
-        }
170
-
171
-        public UserRelateBuilder withDate(LocalDate date) {
172
-            this.date = date;
173
-            return this;
174
-        }
175
-
176
-        public UserRelate build() {
177
-            UserRelate userRelate = new UserRelate();
178
-            userRelate.setId(id);
179
-            userRelate.setUid(uid);
180
-            userRelate.setPid(pid);
181
-            userRelate.setDelFlag(delFlag);
182
-            userRelate.setIsDacang(isDacang);
183
-            userRelate.setIsMerchant(isMerchant);
184
-            userRelate.setIsChannel(isChannel);
185
-            userRelate.setIsAgent(isAgent);
186
-            userRelate.setDate(date);
187
-            return userRelate;
188
-        }
189
-    }
190 112
 }

+ 26 - 34
src/main/resources/mapper/UserRelateMapper.xml

@@ -10,19 +10,19 @@
10 10
             <if test="null != pid">
11 11
                 pid,
12 12
             </if>
13
-            <if test="null != delFlag">
13
+            <if test="null != del_flag">
14 14
                 del_flag,
15 15
             </if>
16
-            <if test="null != isDacang">
16
+            <if test="null != is_dacang">
17 17
                 is_dacang,
18 18
             </if>
19
-            <if test="null != isMerchant">
19
+            <if test="null != is_merchant">
20 20
                 is_merchant,
21 21
             </if>
22
-            <if test="null != isChannel">
22
+            <if test="null != is_channel">
23 23
                 is_channel,
24 24
             </if>
25
-            <if test="null != isAgent">
25
+            <if test="null != is_agent">
26 26
                 is_agent,
27 27
             </if>
28 28
             <if test="null != date">
@@ -37,20 +37,20 @@
37 37
             <if test="null != pid">
38 38
                 #{ pid },
39 39
             </if>
40
-            <if test="null != delFlag">
41
-                #{ delFlag },
40
+            <if test="null != del_flag">
41
+                #{del_flag},
42 42
             </if>
43
-            <if test="null != isDacang">
44
-                #{ isDacang },
43
+            <if test="null != is_dacang">
44
+                #{is_dacang},
45 45
             </if>
46
-            <if test="null != isMerchant">
47
-                #{ isMerchant },
46
+            <if test="null != is_merchant">
47
+                #{is_merchant},
48 48
             </if>
49
-            <if test="null != isChannel">
50
-                #{ isChannel },
49
+            <if test="null != is_channel">
50
+                #{is_channel},
51 51
             </if>
52
-            <if test="null != isAgent">
53
-                #{ isAgent },
52
+            <if test="null != is_agent">
53
+                #{is_agent},
54 54
             </if>
55 55
             <if test="null != date">
56 56
                 #{ date },
@@ -67,20 +67,20 @@
67 67
             <if test="null != pid">
68 68
                 pid = #{ pid },
69 69
             </if>
70
-            <if test="null != delFlag">
71
-                del_flag = #{ delFlag },
70
+            <if test="null != del_flag">
71
+                del_flag = #{del_flag},
72 72
             </if>
73
-            <if test="null != isDacang">
74
-                is_dacang = #{ isDacang },
73
+            <if test="null != is_dacang">
74
+                is_dacang = #{is_dacang},
75 75
             </if>
76
-            <if test="null != isMerchant">
77
-                is_merchant = #{ isMerchant },
76
+            <if test="null != is_merchant">
77
+                is_merchant = #{is_merchant},
78 78
             </if>
79
-            <if test="null != isChannel">
80
-                is_channel = #{ isChannel },
79
+            <if test="null != is_channel">
80
+                is_channel = #{is_channel},
81 81
             </if>
82
-            <if test="null != isAgent">
83
-                is_agent = #{ isAgent },
82
+            <if test="null != is_agent">
83
+                is_agent = #{is_agent},
84 84
             </if>
85 85
             <if test="null != date">
86 86
                 date = #{ date },
@@ -93,21 +93,13 @@
93 93
         insert into user_relate
94 94
         (
95 95
         uid,
96
-        pid,
97
-        is_dacang,
98
-        is_merchant,
99
-        is_channel,
100
-        is_agent,
96
+        pid
101 97
         date        )
102 98
         values
103 99
         <foreach collection="list" separator="," item="row">
104 100
             (
105 101
             #{row.uid },
106 102
             #{row.pid },
107
-            #{row.isDacang },
108
-            #{row.isMerchant },
109
-            #{row.isChannel },
110
-            #{row.isAgent },
111 103
             #{row.date }            )
112 104
         </foreach>
113 105
     </insert>