问卷星:单选、多选得分为0 BUG调整

This commit is contained in:
曹磊 2024-05-11 10:36:14 +08:00
parent 5c72fc090a
commit 8de3aaf103
1 changed files with 8 additions and 1 deletions

View File

@ -227,7 +227,14 @@ public class WjxWjxxServiceImpl extends ServiceImpl<WjxWjxxMapper, WjxWjxx> impl
map.put("q_title",wWjxWjxxTmlb.getWjTitle()); map.put("q_title",wWjxWjxxTmlb.getWjTitle());
map.put("is_requir",true); map.put("is_requir",true);
if(wWjxWjxxTmlb.getWjScore()!=null){ if(wWjxWjxxTmlb.getWjScore()!=null){
map.put("is_requir",wWjxWjxxTmlb.getWjScore()); map.put("q_score",wWjxWjxxTmlb.getWjScore());
map.put("q_ceshi",true);
}
if(wWjxWjxxTmlb.getWjType() == 3){
map.put("is_toupiao",3);
}
if(wWjxWjxxTmlb.getWjType() == 4){
map.put("is_toupiao",3);
} }
List<Map<String,Object>> itemsList = new ArrayList<>(); List<Map<String,Object>> itemsList = new ArrayList<>();
List<WjxWjxxTmxx> tmxxList = wjxWjxxTmxxMapper.selectByMainId(wWjxWjxxTmlb.getId()); List<WjxWjxxTmxx> tmxxList = wjxWjxxTmxxMapper.selectByMainId(wWjxWjxxTmlb.getId());