|
@@ -96,6 +96,8 @@ import com.zhongzheng.modules.user.mapper.UserStudyRecordMapper;
|
|
|
import com.zhongzheng.modules.user.service.*;
|
|
import com.zhongzheng.modules.user.service.*;
|
|
|
import com.zhongzheng.modules.user.vo.*;
|
|
import com.zhongzheng.modules.user.vo.*;
|
|
|
import com.zhongzheng.modules.wisdom.service.IWisdomService;
|
|
import com.zhongzheng.modules.wisdom.service.IWisdomService;
|
|
|
|
|
+import com.zhongzheng.modules.wisdom.vo.CenterVo;
|
|
|
|
|
+import com.zhongzheng.modules.wisdom.vo.ExamineesVo;
|
|
|
import com.zhongzheng.modules.wisdom.vo.WisdomRoomVo;
|
|
import com.zhongzheng.modules.wisdom.vo.WisdomRoomVo;
|
|
|
import com.zhongzheng.modules.wx.service.IWxLoginService;
|
|
import com.zhongzheng.modules.wx.service.IWxLoginService;
|
|
|
import net.polyv.live.v1.entity.channel.playback.LiveChannelVideoListResponse;
|
|
import net.polyv.live.v1.entity.channel.playback.LiveChannelVideoListResponse;
|
|
@@ -137,6 +139,9 @@ public class WisdomServiceImpl implements IWisdomService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IExamSiteService iExamSiteService;
|
|
private IExamSiteService iExamSiteService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IUserSubscribeService iUserSubscribeService;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public String authorization() {
|
|
public String authorization() {
|
|
|
String key = "WISDOM_AUTH_CODE";
|
|
String key = "WISDOM_AUTH_CODE";
|
|
@@ -189,7 +194,6 @@ public class WisdomServiceImpl implements IWisdomService {
|
|
|
List<WisdomRoomVo> list=jsonArray.toJavaList(WisdomRoomVo.class);
|
|
List<WisdomRoomVo> list=jsonArray.toJavaList(WisdomRoomVo.class);
|
|
|
for (WisdomRoomVo vo : list){
|
|
for (WisdomRoomVo vo : list){
|
|
|
iExamSiteService.insertByWisdomAddBo(vo);
|
|
iExamSiteService.insertByWisdomAddBo(vo);
|
|
|
- System.out.println(vo);
|
|
|
|
|
}
|
|
}
|
|
|
if(page>pageNo){
|
|
if(page>pageNo){
|
|
|
SiteList(pageNo++);
|
|
SiteList(pageNo++);
|
|
@@ -199,4 +203,50 @@ public class WisdomServiceImpl implements IWisdomService {
|
|
|
throw new CustomException("获取智慧考场考场列表失败");
|
|
throw new CustomException("获取智慧考场考场列表失败");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void syncApplyUserInfo(Long applyId) {
|
|
|
|
|
+
|
|
|
|
|
+ List<UserSubscribeVo> list = iUserSubscribeService.selectApplyUserList(applyId);
|
|
|
|
|
+ Map<Long,CenterVo> cMap = new HashMap<>();
|
|
|
|
|
+ List<CenterVo> cList = new ArrayList<>();
|
|
|
|
|
+ for(UserSubscribeVo vo : list){
|
|
|
|
|
+ ExamineesVo userVo = new ExamineesVo();
|
|
|
|
|
+ userVo.setExamineeCode(vo.getExamineeCode());
|
|
|
|
|
+ userVo.setIdNumber(vo.getIdCard());
|
|
|
|
|
+ userVo.setPhone_num(vo.getTelphone());
|
|
|
|
|
+ userVo.setExamineeName(vo.getRealname());
|
|
|
|
|
+ userVo.setIdCardImg1(vo.getIdCardImg1());
|
|
|
|
|
+ userVo.setIdCardImg2(vo.getIdCardImg2());
|
|
|
|
|
+ if(vo.getReportStatus()==0){
|
|
|
|
|
+ userVo.setReportStatus("未签署");
|
|
|
|
|
+ }
|
|
|
|
|
+ if(vo.getReportStatus()==1){
|
|
|
|
|
+ userVo.setReportStatus("已签署");
|
|
|
|
|
+ }
|
|
|
|
|
+ if(cMap.containsKey(vo.getCenterId())){
|
|
|
|
|
+ CenterVo centerVo = cMap.get(vo.getCenterId());
|
|
|
|
|
+ List<ExamineesVo> examinees = centerVo.getExaminees();
|
|
|
|
|
+ examinees.add(userVo);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ List<ExamineesVo> examinees = new ArrayList<>();
|
|
|
|
|
+ examinees.add(userVo);
|
|
|
|
|
+ CenterVo centerVo = new CenterVo();
|
|
|
|
|
+ centerVo.setExaminees(examinees);
|
|
|
|
|
+ centerVo.setCenterId(vo.getCenterId());
|
|
|
|
|
+ centerVo.setExamCode(vo.getSiteCode());
|
|
|
|
|
+ cMap.put(vo.getCenterId(),centerVo);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ Iterator<Long> iterator = cMap.keySet().iterator();
|
|
|
|
|
+ while (iterator.hasNext()) {
|
|
|
|
|
+ Long key = iterator.next();
|
|
|
|
|
+ CenterVo vo = cMap.get(key);
|
|
|
|
|
+ for(ExamineesVo userVo : vo.getExaminees()){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ cList.add(vo);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|