添加问卷星及批阅功能
This commit is contained in:
parent
2f98cebe93
commit
40644a42a6
|
@ -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);
|
||||
|
|
|
@ -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("添加成功!");
|
||||
}
|
||||
|
|
|
@ -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已答卷查询
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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自定义
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue