libo 4 anni fa
parent
commit
89aea00317

+ 5 - 16
src/main/java/com/tdba/cxb/ares/api/controller/UserController.java

@@ -130,21 +130,10 @@ public class UserController {
130 130
                 Map.of("value", 4, "label", "代理商")));
131 131
     }
132 132
 
133
-    public static void main(String[] args) throws InterruptedException {
134
-
135
-        Exchanger exchanger = new Exchanger();
136
-
137
-        for (int i = 1; i <= 10; i++) {
138
-            Integer data = i;
139
-            new Thread(() -> {
140
-                try {
141
-                    Object exchange = exchanger.exchange(data);
142
-                    System.out.println(Thread.currentThread().getName() + "-" + exchange);
143
-                } catch (InterruptedException e) {
144
-                    e.printStackTrace();
145
-                }
146
-            }, "Java技术栈" + i).start();
147
-        }
148
-
133
+    @GetMapping("logout")
134
+    public TDBAResponse logout(BaseUser baseUser){
135
+        Objects.requireNonNull(baseUser, "请登录后操作");
136
+        return buildSuccess("退出成功");
149 137
     }
138
+
150 139
 }

+ 6 - 0
src/main/java/com/tdba/cxb/ares/api/service/UserService.java

@@ -341,6 +341,12 @@ public class UserService {
341 341
 
342 342
     @Resource
343 343
     private StringRedisTemplate stringRedisTemplate;
344
+
345
+
346
+    public void logout(BaseUser baseUser){
347
+
348
+    }
349
+
344 350
     /**
345 351
      * 登录
346 352
      * @param param

+ 2 - 2
src/main/resources/mapper/UserMapper.xml

@@ -9,8 +9,8 @@
9 9
         from
10 10
             rrx_user
11 11
         where
12
-            <![CDATA[  spread_uid > 0 ]]>
13
-            <![CDATA[ and create_time >= #{beginTime} ]]>
12
+--             <![CDATA[  spread_uid > 0 ]]>
13
+            <![CDATA[ create_time >= #{beginTime} ]]>
14 14
             <![CDATA[ and create_time <= #{endTime} ]]>
15 15
     </select>
16 16
 

+ 0 - 12
src/main/resources/mapper/UserRelateMapper.xml

@@ -177,36 +177,24 @@
177 177
             <when test="userType == 1">
178 178
                 and ur.is_dacang = 1
179 179
             </when>
180
-            <otherwise>
181
-                and ur.is_dacang = 0
182
-            </otherwise>
183 180
         </choose>
184 181
 
185 182
         <choose>
186 183
             <when test="userType == 2">
187 184
                 and ur.is_merchant = 1
188 185
             </when>
189
-            <otherwise>
190
-                and ur.is_merchant = 0
191
-            </otherwise>
192 186
         </choose>
193 187
 
194 188
         <choose>
195 189
             <when test="userType == 3">
196 190
                 and ur.is_channel = 1
197 191
             </when>
198
-            <otherwise>
199
-                and ur.is_channel = 0
200
-            </otherwise>
201 192
         </choose>
202 193
 
203 194
         <choose>
204 195
             <when test="userType == 4">
205 196
                 and ur.is_agent = 1
206 197
             </when>
207
-            <otherwise>
208
-                and ur.is_agent = 0
209
-            </otherwise>
210 198
         </choose>
211 199
         order by date desc
212 200
     </select>