|
@@ -1214,18 +1214,20 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
datetime = datetime.trim();
|
|
datetime = datetime.trim();
|
|
}
|
|
}
|
|
String datetimeStr = datetime.substring(0, 8);
|
|
String datetimeStr = datetime.substring(0, 8);
|
|
|
|
+ String bh = split.get("bh");
|
|
log.info("学时抽查"+idCard+"RR"+datetime);
|
|
log.info("学时抽查"+idCard+"RR"+datetime);
|
|
if (!DateUtils.dateTimeNow(DateUtils.YYYYMMDD).equals(datetimeStr)) {
|
|
if (!DateUtils.dateTimeNow(DateUtils.YYYYMMDD).equals(datetimeStr)) {
|
|
throw new CustomException("数据错误");
|
|
throw new CustomException("数据错误");
|
|
}
|
|
}
|
|
- User user = iUserService.getByCardNoTenant(idCard);
|
|
|
|
|
|
+// User user = iUserService.getByCardNoTenant(idCard);
|
|
|
|
+ User user = iUserService.getByCardNoTenantNew(idCard,bh);
|
|
if (Validator.isEmpty(user)) {
|
|
if (Validator.isEmpty(user)) {
|
|
throw new CustomException("身份证查无用户");
|
|
throw new CustomException("身份证查无用户");
|
|
}
|
|
}
|
|
if(Validator.isNotEmpty(user.getTenantId())){
|
|
if(Validator.isNotEmpty(user.getTenantId())){
|
|
ServletUtils.getRequestAttributes().getResponse().setHeader("TenantId", user.getTenantId().toString());
|
|
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));
|
|
List<ClassGrade> classGradeList = iClassGradeService.list(new LambdaQueryWrapper<ClassGrade>().eq(ClassGrade::getOfficialName, bh));
|
|
if (Validator.isEmpty(classGradeList) || classGradeList.size() == 0) {
|
|
if (Validator.isEmpty(classGradeList) || classGradeList.size() == 0) {
|
|
throw new CustomException("班级不存在");
|
|
throw new CustomException("班级不存在");
|