Browse Source

签到功能调整

shuzhan 2 years ago
parent
commit
4aa8d386cd

+ 4 - 0
common/src/main/java/com/jpsoft/education/modules/base/entity/ScheduleSheet.java

@@ -128,4 +128,8 @@ public class ScheduleSheet {
 	@Transient
 	@ApiModelProperty(value = "补课")
 	private Integer bkNum;
+
+	@Transient
+	@ApiModelProperty(value = "停课")
+	private Integer tkNum;
 }

+ 3 - 0
web/src/main/java/com/jpsoft/education/modules/mobile/controller/TeacherApiController.java

@@ -130,6 +130,9 @@ public class TeacherApiController {
 
                 List<RollcallLog> bkList = rollcallLogService.findByClassIdAndDateAndResult(ss.getClassId(),ss.getCourseDate(),"4");
                 ss.setBkNum(bkList.size());
+
+                List<RollcallLog> tkList = rollcallLogService.findByClassIdAndDateAndResult(ss.getClassId(),ss.getCourseDate(),"5");
+                ss.setTkNum(tkList.size());
             }