|
@@ -130,12 +130,32 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
|
User user = iUserService.getOne(new LambdaQueryWrapper<User>()
|
|
User user = iUserService.getOne(new LambdaQueryWrapper<User>()
|
|
|
.eq(User::getIdCard,info.getIdCard()).last("limit 1"));
|
|
.eq(User::getIdCard,info.getIdCard()).last("limit 1"));
|
|
|
if(Validator.isEmpty(user)){
|
|
if(Validator.isEmpty(user)){
|
|
|
- throw new CustomException("学员:"+info.getUserName()+"-"+info.getIdCard()+"没有符合导出的数据");
|
|
|
|
|
|
|
+ throw new CustomException("学员:"+info.getUserName()+"-"+info.getIdCard()+"不存在没有符合导出的数据,,请先处理再继续操作");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return list;
|
|
return list;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<UserSubscribeIdsImport> checkIdsDataFilter(UserSubscribeIdsImportCheck bo) {
|
|
|
|
|
+ for(UserSubscribeIdsImport info : bo.getList()){
|
|
|
|
|
+ User user = iUserService.getOne(new LambdaQueryWrapper<User>()
|
|
|
|
|
+ .eq(User::getIdCard,info.getIdCard()).last("limit 1"));
|
|
|
|
|
+ if(Validator.isEmpty(user)){
|
|
|
|
|
+ throw new CustomException("学员:"+info.getUserName()+"-"+info.getIdCard()+"不存在,请先处理再继续操作");
|
|
|
|
|
+ }
|
|
|
|
|
+ UserSubscribe userSubscribe = this.getOne(new LambdaQueryWrapper<UserSubscribe>()
|
|
|
|
|
+ .eq(UserSubscribe::getSubscribeStatus,1)
|
|
|
|
|
+ .eq(UserSubscribe::getApplyId,bo.getApplyId())
|
|
|
|
|
+ .eq(UserSubscribe::getApplySiteAddress,bo.getApplySiteAddress())
|
|
|
|
|
+ .eq(UserSubscribe::getUserId,user.getUserId()).last("limit 1"));
|
|
|
|
|
+ if(Validator.isEmpty(userSubscribe)){
|
|
|
|
|
+ throw new CustomException("学员:"+info.getUserName()+"-"+info.getIdCard()+"没有符合导出的数据,请先处理再继续操作");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return bo.getList();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 实体类转化成视图对象
|
|
* 实体类转化成视图对象
|
|
|
*
|
|
*
|