|
@@ -963,10 +963,13 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
throw new CustomException("数据错误");
|
|
|
}
|
|
|
log.info("学时抽查"+ idCard+"RR"+datetime+"RR"+year);
|
|
|
- User user = iUserService.getOne(new LambdaQueryWrapper<User>().eq(User::getIdCard, EncryptHandler.encrypt(idCard)).last("limit 1"));
|
|
|
+ User user = iUserService.getByCardNoTenant(idCard);
|
|
|
if (Validator.isEmpty(user)) {
|
|
|
throw new CustomException("身份证查无用户");
|
|
|
}
|
|
|
+ if(Validator.isNotEmpty(user.getTenantId())){
|
|
|
+ ServletUtils.getRequestAttributes().getResponse().setHeader("TenantId", user.getTenantId().toString());
|
|
|
+ }
|
|
|
String bh = split.get("bh");
|
|
|
List<ClassGrade> classGradeList = iClassGradeService.list(new LambdaQueryWrapper<ClassGrade>().eq(ClassGrade::getOfficialName, bh));
|
|
|
if (Validator.isEmpty(classGradeList) || classGradeList.size() == 0) {
|