Bladeren bron

后台导入质检员等类型

shenhao 3 jaren geleden
bovenliggende
commit
ade0be12ab

+ 1 - 0
src/main/java/com/ssj/bean/sys/imlibuser/TbClassTeacherTemp.java

@@ -160,6 +160,7 @@ public class TbClassTeacherTemp  extends BaseEntity {
 		this.className = className;
 	}
 
+	@Transient
 	public String getInspectorId() {
 		return inspectorId;
 	}

+ 1 - 1
src/main/java/com/ssj/dao/sys/homework/dao/impl/HomeworkQueryDaoImpl.java

@@ -343,7 +343,7 @@ public class HomeworkQueryDaoImpl implements HomeworkQueryDao {
         selSQL.append("max(t11.end_time) as end_time,\n");
         selSQL.append("min(t.create_time) as create_time,\n");
         selSQL.append("sum(t11.correction_time) as correction_time,\n");
-        selSQL.append("floor(sum(t11.correction_time)/ count(1)) as next_1,\n");
+        selSQL.append("floor(sum(t11.correction_time)/ count(if(t.is_feedback = 1,true,null))) as next_1,\n");
         selSQL.append("min(t.is_feedback) as is_feedback\n");
         selSQL.append("from scon_homework_picture t\n");
         selSQL.append("left join scon_homework t14 on t.homework_id = t14.id\n");

+ 2 - 3
src/main/java/com/ssj/sys/controller/ImLibUserController.java

@@ -886,9 +886,8 @@ public class ImLibUserController extends BaseController {
 					tbLibImTeacherTemp.setTeacherName(map.get("data_0"));
 					tbLibImTeacherTemp.setTeacherPhone(map.get("data_1"));
 					tbLibImTeacherTemp.setGrade(map.get("data_2"));
-					tbLibImTeacherTemp.setClassName(map.get("data_3"));
-					tbLibImTeacherTemp.setSubject(map.get("data_4"));
-					tbLibImTeacherTemp.setType(Integer.parseInt(map.get("data_5")));
+					tbLibImTeacherTemp.setSubject(map.get("data_3"));
+					tbLibImTeacherTemp.setType(Integer.parseInt(map.get("data_4")));
 					tbLibImTeacherTemp.setIsCorrect(1);
 
 					tbLibImTeacherTemps.add(tbLibImTeacherTemp);