测试、答卷已完成状态优化

This commit is contained in:
曹磊 2024-05-25 12:45:57 +08:00
parent a10540b7cd
commit e0ec8c9ff3
2 changed files with 2 additions and 5 deletions

View File

@ -222,13 +222,10 @@ public class WjxDjxxServiceImpl extends ServiceImpl<WjxDjxxMapper, WjxDjxx> impl
List<WjxDjxx> listNum = baseMapper.selectList(djxxQueryWrapper); List<WjxDjxx> listNum = baseMapper.selectList(djxxQueryWrapper);
int djsl = listNum.size(); int djsl = listNum.size();
System.out.println(xkrs+"------------------------"+djsl); System.out.println(xkrs+"------------------------"+djsl);
if(1 == 1){ if(xkrs == djsl){
wjxWjxx.setQpublish("2"); wjxWjxx.setQpublish("2");
wjxWjxxMapper.updateById(wjxWjxx); wjxWjxxMapper.updateById(wjxWjxx);
} }
String type = ""; String type = "";
String content = ""; String content = "";
if(StringUtils.equals("6",wjxWjxx.getAtype())){ if(StringUtils.equals("6",wjxWjxx.getAtype())){

View File

@ -54,7 +54,7 @@
b.id as djId b.id as djId
from wjx_wjxx a from wjx_wjxx a
left join wjx_djxx b on a.vid = b.vid and b.user_id = #{param.userId} left join wjx_djxx b on a.vid = b.vid and b.user_id = #{param.userId}
where a.qpublish = '1' where a.qpublish in ('1','2')
and a.rwbh = #{param.rwbh} and a.rwbh = #{param.rwbh}
and a.xqxn = #{param.xqxn} and a.xqxn = #{param.xqxn}
and a.atype = #{param.atype} and a.atype = #{param.atype}