添加最总得分赋值功能

This commit is contained in:
yangjun 2024-12-23 14:44:14 +08:00
parent 8895352a23
commit e1cbeecf8b
2 changed files with 13 additions and 9 deletions

View File

@ -441,15 +441,15 @@ public class ZyInfoController extends JeecgController<ZyInfo, IZyInfoService> {
zyDbtx.setFbr(user.getUsername()); zyDbtx.setFbr(user.getUsername());
zyDbtxService.save(zyDbtx); zyDbtxService.save(zyDbtx);
try { // try {
KcWechatSendLog kcWechatSendLog = new KcWechatSendLog(); // KcWechatSendLog kcWechatSendLog = new KcWechatSendLog();
kcWechatSendLog.setOpenid(xxhbbks.getXh()); // kcWechatSendLog.setOpenid(xxhbbks.getXh());
// kcWechatSendLog.setOpenid("2016900057");//指定曹老师账号 //// kcWechatSendLog.setOpenid("2016900057");//指定曹老师账号
kcWechatSendLog.setYtkcs(zyDbtx.getContent()); // kcWechatSendLog.setYtkcs(zyDbtx.getContent());
sendWxmessage(kcWechatSendLog); // sendWxmessage(kcWechatSendLog);
}catch (Exception e){ // }catch (Exception e){
e.printStackTrace(); // e.printStackTrace();
} // }
} }
} }

View File

@ -448,6 +448,7 @@ public class ZyInfoStudentController extends JeecgController<ZyInfoStudent, IZyI
par.setCreateTime(new Date()); par.setCreateTime(new Date());
par.setMainId(zyInfo.getId()); par.setMainId(zyInfo.getId());
par.setScore("0"); par.setScore("0");
par.setZzdf("0");
par.setScoreFabu("1"); par.setScoreFabu("1");
zyInfoStudentService.save(par); zyInfoStudentService.save(par);
}else{//不相等则是帧数据直接修改 }else{//不相等则是帧数据直接修改
@ -455,6 +456,9 @@ public class ZyInfoStudentController extends JeecgController<ZyInfoStudent, IZyI
zyInfoStudentUp.eq("id",par.getId()); zyInfoStudentUp.eq("id",par.getId());
if(StringUtils.isEmpty(par.getScore())){ if(StringUtils.isEmpty(par.getScore())){
zyInfoStudentUp.set("score","0"); zyInfoStudentUp.set("score","0");
zyInfoStudentUp.set("zzdf","0");
}else{
zyInfoStudentUp.set("zzdf",par.getScore());
} }
zyInfoStudentUp.set("score_fabu","1"); zyInfoStudentUp.set("score_fabu","1");
zyInfoStudentService.update(zyInfoStudentUp); zyInfoStudentService.update(zyInfoStudentUp);