Pārlūkot izejas kodu

获取班长信息

温红权 8 gadi atpakaļ
vecāks
revīzija
5170bd4db4

+ 15 - 4
VisualInspection_server/src/main/java/com/xintong/visualinspection/service/impl/StatisticsServiceImpl.java

@@ -163,10 +163,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
 
 		}
 
-		TaskAndScore temp = new TaskAndScore();
-		temp.setStart_time(obj.getStart_date());
-		temp.setEnd_time(obj.getEnd_date());
-		List<TaskAndScore> taskAndScores = statisticsDao.selectMList(temp);
+		List<TaskAndScore> taskAndScores = GET_M_SCORE(obj.getStart_date(),obj.getEnd_date());
 		for (StatisticsBo b : statisticBoMap.values()) {
 			// 班长扣分加上成员的扣分
 			for (TaskAndScore s : taskAndScores) {
@@ -286,6 +283,9 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
 		return reList;
 	}
 
+
+
+
 	@Override
 	public List<StatisticsBean> getFeeStationCheckedScore(StatisticsBean obj) {
 		// 获取收费站信息收费站人数
@@ -1680,4 +1680,15 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
 		map.put("list", list);
 		exportExcel("稽查人员工作量统计", "check_info", map, resp);
 	}
+
+
+	private List<TaskAndScore> GET_M_SCORE(Date start_time,Date end_time){
+        TaskAndScore temp = new TaskAndScore();
+        temp.setStart_time(start_time);
+        temp.setEnd_time(end_time);
+
+        List<TaskAndScore> taskAndScores = statisticsDao.selectMList(temp);
+        return  taskAndScores;
+    }
+
 }