添加问卷星及批阅功能

This commit is contained in:
yangjun 2024-10-08 08:30:45 +08:00
parent 2f98cebe93
commit 40644a42a6
7 changed files with 28 additions and 13 deletions

View File

@ -99,13 +99,18 @@ public class WjxDjxxServiceImpl extends ServiceImpl<WjxDjxxMapper, WjxDjxx> impl
itemSelected = "(跳过)";
}
}
if(wjType == 8){
itemSelected = "-3";
}
submitDataSb.append(WjIndex);
submitDataSb.append("$");
submitDataSb.append(itemSelected);
submitDataSb.append("}");
}
String submitData = submitDataSb.toString();
submitData = submitData.substring(0,submitData.length()-1);
if(StringUtils.isNotEmpty(submitData)){
submitData = submitData.substring(0,submitData.length()-1);
}
wds.setSubmitData(submitData);
baseMapper.deleteDj(wds);
this.save(wds);

View File

@ -229,6 +229,7 @@ public class WjxWjxxController extends JeecgController<WjxWjxx, IWjxWjxxService>
zyInfo.setXkrs(kcKechengbiao.getXkrs());
zyInfo.setScore("0");
zyInfo.setAtype(zyInfo.getAtype());
zyInfo.setKcmc(kcKechengbiao.getKcmc());
wjxWjxxService.save(zyInfo);
return Result.OK("添加成功!");
}

View File

@ -110,7 +110,6 @@ public class WjxWjxx implements Serializable {
private String score;//占比
private String kcnr;//占比
@ApiModelProperty(value = "答卷状态标识")
@TableField(exist = false)
private String flag;// -1 未答卷 0已答卷 1已答卷查询

View File

@ -250,13 +250,17 @@ public class WjxWjxxServiceImpl extends ServiceImpl<WjxWjxxMapper, WjxWjxx> impl
map.put("q_index",wWjxWjxxTmlb.getWjIndex());
map.put("q_type",wWjxWjxxTmlb.getWjType());
map.put("q_title",wWjxWjxxTmlb.getWjTitle());
map.put("is_requir",true);
if(wjlx.equals("6")){
if(wWjxWjxxTmlb.getWjScore()!=null){
map.put("q_score",wWjxWjxxTmlb.getWjScore());
if(wWjxWjxxTmlb.getWjType() != 8){
if(wWjxWjxxTmlb.getWjScore()!=null){
map.put("q_score",wWjxWjxxTmlb.getWjScore());
}
map.put("is_requir",true);
map.put("q_ceshi",true);
map.put("is_toupiao",3);
}else{
map.put("is_requir",false);
}
map.put("q_ceshi",true);
map.put("is_toupiao",3);
}
if(wWjxWjxxTmlb.getWjType() == 3 || wWjxWjxxTmlb.getWjType() == 4){
//单选和多选
@ -280,6 +284,9 @@ public class WjxWjxxServiceImpl extends ServiceImpl<WjxWjxxMapper, WjxWjxx> impl
}
}else if(wWjxWjxxTmlb.getWjType() == 6){
//多项填空,预留之后有需求再开发
}else if(wWjxWjxxTmlb.getWjType() == 8){
//文件题目
map.put("q_subtype",8);
}
JSONObject json = new JSONObject(map);
questionsList.add(json);

View File

@ -95,6 +95,8 @@ public class WjxWjxxTmlb implements Serializable {
private java.lang.String wjSfqh;//是否切换 0系统 1自定义
private String picPath;
@TableField(exist = false)
private String itemSelected;

View File

@ -84,6 +84,7 @@ public class WjxWjxxTmlbPage {
private java.lang.String prompt;
private String itemSelected;
private String picPath;
private java.lang.String wjSfqh;//是否切换 0系统 1自定义

View File

@ -391,12 +391,12 @@ public class ZyInfoController extends JeecgController<ZyInfo, IZyInfoService> {
kcKechengbiaoQueryWrapper.last("limit 1");
KcKechengbiao kcKechengbiao = kcKechengbiaoService.getOne(kcKechengbiaoQueryWrapper);
for(Xxhbbks xxhbbks:list){
// ZyInfoStudent zyInfoStudent = new ZyInfoStudent();
// zyInfoStudent.setMainId(zyInfo.getId());
// zyInfoStudent.setCreateBy(xxhbbks.getXh());
// zyInfoStudent.setStudentName(xxhbbks.getXm());
// zyInfoStudent.setZyLeixing(zyInfo.getZyLeixing());
// zyInfoStudentService.save(zyInfoStudent);
ZyInfoStudent zyInfoStudent = new ZyInfoStudent();
zyInfoStudent.setMainId(zyInfo.getId());
zyInfoStudent.setCreateBy(xxhbbks.getXh());
zyInfoStudent.setStudentName(xxhbbks.getXm());
zyInfoStudent.setZyLeixing(zyInfo.getZyLeixing());
zyInfoStudentService.save(zyInfoStudent);
//作业代办提醒
ZyDbtx zyDbtx = new ZyDbtx();