|
|
@@ -1,5 +1,6 @@
|
|
1
|
1
|
package com.tdba.cxb.ares.api.service;
|
|
2
|
2
|
|
|
|
3
|
+import com.github.pagehelper.PageHelper;
|
|
3
|
4
|
import com.tdba.cxb.ares.api.controller.UserController;
|
|
4
|
5
|
import com.tdba.cxb.ares.api.model.*;
|
|
5
|
6
|
import com.tdba.cxb.ares.api.repository.UserBindMapper;
|
|
|
@@ -424,8 +425,14 @@ public class UserService {
|
|
424
|
425
|
* @param userType 用户类型
|
|
425
|
426
|
* @return
|
|
426
|
427
|
*/
|
|
427
|
|
- public List<DetailListResp> detailList(Integer uid, Integer userType){
|
|
428
|
|
- return userRelateMapper.selectByPid(uid, (null == userType)?0:userType);
|
|
|
428
|
+ public List<DetailListResp> detailList(DetailListReq param, BaseUser baseUser){
|
|
|
429
|
+
|
|
|
430
|
+ if(userBindMapper.selectUid(baseUser.getId()).stream().noneMatch(row -> row.equals(param.getUser_id()))){
|
|
|
431
|
+ throw new TDBAException("运营商未关联该用户");
|
|
|
432
|
+ }
|
|
|
433
|
+
|
|
|
434
|
+ PageHelper.startPage(param.getPage(), param.getLimit());
|
|
|
435
|
+ return userRelateMapper.selectByPid(param.getUser_id(), (null == param.getUser_type())?0:param.getUser_type());
|
|
429
|
436
|
}
|
|
430
|
437
|
|
|
431
|
438
|
/**
|