考核管理

master
pd 4 years ago
parent 768239f6df
commit 5fff04d322
  1. 6
      src/main/java/com/yipin/liuwanr/entity/Assesment.java
  2. 4
      src/main/java/com/yipin/liuwanr/mapper/AssesmentMapper.java
  3. 8
      src/main/java/com/yipin/liuwanr/service/AssesmentService.java

@ -18,7 +18,7 @@ public class Assesment {
private String timesum;// 耗时 private String timesum;// 耗时
private Integer assessmentNumber;// 考核点数量 private Integer assessmentNumber;// 考核点数量
private Integer errorRate;// 错误率 private Integer errorRate;// 错误率
private Integer experimentalClassId;//实验班级id private String experimentalClassId;//实验班级id
private String classId;// 行政班级id private String classId;// 行政班级id
private String teacherInClass;// 任课老师 private String teacherInClass;// 任课老师
private Integer staffId;// 教师id private Integer staffId;// 教师id
@ -49,11 +49,11 @@ public class Assesment {
this.staffName = staffName; this.staffName = staffName;
} }
public Integer getExperimentalClassId() { public String getExperimentalClassId() {
return experimentalClassId; return experimentalClassId;
} }
public void setExperimentalClassId(Integer experimentalClassId) { public void setExperimentalClassId(String experimentalClassId) {
this.experimentalClassId = experimentalClassId; this.experimentalClassId = experimentalClassId;
} }

@ -221,8 +221,8 @@ public interface AssesmentMapper {
* @return * @return
*/ */
@Select("SELECT ex.experimentalClassId as experimentalClassId,ex.experimentalClassName as experimentalClassName from assessment ass left join" @Select("SELECT ex.experimentalClassId as experimentalClassId,ex.experimentalClassName as experimentalClassName from assessment ass left join"
+ " experimental_class_ning ex on ex.experimentalClassId=ass.experimentalClassId where ass.id=#{assesmentId}") + " experimental_class_ning ex on FIND_IN_SET(ex.experimentalClassId,ass.experimentalClassId) where ass.id=#{assesmentId}")
ExperimentalClass queryExperimental(Integer assesmentId); List<ExperimentalClass> queryExperimental(Integer assesmentId);
/** /**

@ -382,12 +382,12 @@ public class AssesmentService {
*/ */
public HashMap<String, Object> getByclass(Integer assesmentId) { public HashMap<String, Object> getByclass(Integer assesmentId) {
HashMap<String, Object> resp = new HashMap<String, Object>(); HashMap<String, Object> resp = new HashMap<String, Object>();
List<Object> obj = new ArrayList<Object>(); HashMap<String, Object> obj = new HashMap<String, Object>();
try { try {
ExperimentalClass experimentalClasses = mapper.queryExperimental(assesmentId); List<ExperimentalClass> experimentalClasses = mapper.queryExperimental(assesmentId);
List<SutdentClass> classes = mapper.queryClass(assesmentId); List<SutdentClass> classes = mapper.queryClass(assesmentId);
obj.add(experimentalClasses); obj.put("xperimentalClass",experimentalClasses);
obj.add(classes); obj.put("class",classes);
resp.put("retvalue", obj); resp.put("retvalue", obj);
resp.put("retcode", 200); resp.put("retcode", 200);

Loading…
Cancel
Save