|
|
@@ -22,6 +22,7 @@ import com.cyksj.model.views.RenewalView;
|
|
|
import com.cyksj.redis.RedisService;
|
|
|
import com.cyksj.service.relation.GroupRelationFrontService;
|
|
|
import com.cyksj.service.relation.GroupsRelationNetflixService;
|
|
|
+import com.cyksj.service.user.UserBindRelationService;
|
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
|
import com.ejlchina.searcher.util.MapUtils;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
@@ -54,6 +55,8 @@ public class CorpRelationController {
|
|
|
|
|
|
private final RedisService redisService;
|
|
|
|
|
|
+ private final UserBindRelationService userBindRelationService;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 车票用户所有购买平台
|
|
|
@@ -120,7 +123,13 @@ public class CorpRelationController {
|
|
|
*/
|
|
|
@GetMapping("/get/doubleVerify/codeList")
|
|
|
public Result<List<DoubleVerifyCodeView>> getDoubleVerifyCodeList(Long relationId, Long userId) {
|
|
|
- List<DoubleVerifyCodeView> views = doubleVerifyRecordMapper.getDoubleVerifyCodeList(userId, relationId);
|
|
|
+ List<Long> userIdList = null;
|
|
|
+ try {
|
|
|
+ userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
+ } catch (Exception e) {
|
|
|
+ userIdList = List.of(userId);
|
|
|
+ }
|
|
|
+ List<DoubleVerifyCodeView> views = doubleVerifyRecordMapper.getDoubleVerifyCodeList(userIdList, relationId);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(views);
|
|
|
}
|
|
|
|