2023年6月28日 修复问题

This commit is contained in:
bai 2023-06-28 23:28:01 +08:00
parent e3e5b12eff
commit 6d3a257f2c
1 changed files with 12 additions and 14 deletions

View File

@ -353,13 +353,6 @@ public class ChangeTingKeTongJi {
kcTingke.setUsertkyq(0); kcTingke.setUsertkyq(0);
} }
Xxhbuser xxhbuser = szdwMap.get(userId);
if(xxhbuser != null){
kcTingke.setUsername(xxhbuser.getXm());
kcTingke.setUserdwmc(xxhbuser.getDwmc());
}
String tksfs = currentData.getZwmc(); String tksfs = currentData.getZwmc();
if(StringUtils.isNotBlank(tksfs)){ if(StringUtils.isNotBlank(tksfs)){
if(StringUtils.indexOf(tksfs,"") != 1){ if(StringUtils.indexOf(tksfs,"") != 1){
@ -373,14 +366,19 @@ public class ChangeTingKeTongJi {
} }
} }
} }
if(StringUtils.isBlank(kcTingke.getJsxm())){//补充教师姓名 Xxhbuser xxhbuser = szdwMap.get(userId);
if(szdwMap.containsKey(userId)){ if(xxhbuser != null){
Xxhbuser casuser = szdwMap.get(userId); kcTingke.setUsername(xxhbuser.getXm());
if(casuser != null) { kcTingke.setUserdwmc(xxhbuser.getDwmc());
kcTingke.setJsxm(casuser.getXm());
}
}
} }
// if(StringUtils.isBlank(kcTingke.getJsxm())){//补充教师姓名
// if(szdwMap.containsKey(userId)){
// Xxhbuser casuser = szdwMap.get(userId);
// if(casuser != null) {
// kcTingke.setJsxm(casuser.getXm());
// }
// }
// }
kcTingkeService.save(kcTingke); kcTingkeService.save(kcTingke);