|
|
@@ -29,6 +29,7 @@ import com.cyksj.model.dto.*;
|
|
|
import com.cyksj.model.entity.*;
|
|
|
import com.cyksj.model.request.LoginReq;
|
|
|
import com.cyksj.model.views.RenewalView;
|
|
|
+import com.cyksj.model.views.UserCertInfoView;
|
|
|
import com.cyksj.model.views.UserTicketView;
|
|
|
import com.cyksj.redis.RedisService;
|
|
|
import com.cyksj.service.distribute.DistributeService;
|
|
|
@@ -130,6 +131,10 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
|
|
|
private final UserMirrorShopMapper userMirrorShopMapper;
|
|
|
|
|
|
+ private final UserCertRecordMapper userCertRecordMapper;
|
|
|
+
|
|
|
+ private final UserStudentCertRecordMapper userStudentCertRecordMapper;
|
|
|
+
|
|
|
private static final GlobalThreadPoolTaskExecutor TASK_POOL = GlobalThreadPoolTaskExecutor.getInstance();
|
|
|
|
|
|
@Override
|
|
|
@@ -836,6 +841,21 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public UserCertInfoView getCertOverView(long userId) {
|
|
|
+ List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
+ UserCertRecord record = userCertRecordMapper.selectOne(Wrappers.lambdaQuery(UserCertRecord.class)
|
|
|
+ .in(UserCertRecord::getUserId, userIdList)
|
|
|
+ .last("limit 1"));
|
|
|
+ UserStudentCertRecord userStudentCertRecord = userStudentCertRecordMapper.selectOne(Wrappers.lambdaQuery(UserStudentCertRecord.class)
|
|
|
+ .in(UserStudentCertRecord::getUserId, userIdList)
|
|
|
+ .last("limit 1"));
|
|
|
+ UserCertInfoView userCertInfoView = new UserCertInfoView();
|
|
|
+ userCertInfoView.setIndent(record);
|
|
|
+ userCertInfoView.setStudentCert(userStudentCertRecord);
|
|
|
+ return userCertInfoView;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 处理大学生快递站用户
|
|
|
*/
|