|
@@ -55,15 +55,16 @@ public class SapCheckReportService extends BaseService {
|
|
return (List<Map<String, Object>>) findList("SapCheckReportMapper.findUserReports", pd);
|
|
return (List<Map<String, Object>>) findList("SapCheckReportMapper.findUserReports", pd);
|
|
}
|
|
}
|
|
|
|
|
|
- public List<Map<String, Object>> selectReportDayList(String startDate, String endDate, String departId, String name)
|
|
|
|
|
|
+ public List<Map<String, Object>> selectReportDayList(String startDate, String endDate, String departId,List<Long> departIds, String name)
|
|
throws Exception {
|
|
throws Exception {
|
|
if (StringUtils.isNotBlank(departId) && departId.endsWith(",")) {
|
|
if (StringUtils.isNotBlank(departId) && departId.endsWith(",")) {
|
|
departId = departId.substring(0, departId.length() - 1);
|
|
departId = departId.substring(0, departId.length() - 1);
|
|
}
|
|
}
|
|
- Map<String, String> pd = Maps.newHashMap();
|
|
|
|
|
|
+ Map<String, Object> pd = Maps.newHashMap();
|
|
pd.put("startDate", startDate);
|
|
pd.put("startDate", startDate);
|
|
pd.put("endDate", endDate);
|
|
pd.put("endDate", endDate);
|
|
- pd.put("departId", departId);
|
|
|
|
|
|
+// pd.put("departId", departId);
|
|
|
|
+ pd.put("departIds",departIds);
|
|
pd.put("name", name);
|
|
pd.put("name", name);
|
|
|
|
|
|
List<String> days = DateUtil.getSubDateList(startDate, endDate);
|
|
List<String> days = DateUtil.getSubDateList(startDate, endDate);
|
|
@@ -99,7 +100,7 @@ public class SapCheckReportService extends BaseService {
|
|
}
|
|
}
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|
|
- private List<Map<String, Object>> getReportDayResult(Map<String, String> param, List<String> subDays)
|
|
|
|
|
|
+ private List<Map<String, Object>> getReportDayResult(Map<String, Object> param, List<String> subDays)
|
|
throws Exception {
|
|
throws Exception {
|
|
param.put("reportDaySql", getReportDaySql(subDays));
|
|
param.put("reportDaySql", getReportDaySql(subDays));
|
|
param.put("reportDayRemarkSql", getReportRemarkDaySql(subDays));
|
|
param.put("reportDayRemarkSql", getReportRemarkDaySql(subDays));
|
|
@@ -152,4 +153,4 @@ public class SapCheckReportService extends BaseService {
|
|
pd.put("state", state);
|
|
pd.put("state", state);
|
|
return (Long) findObject("SapCheckReportMapper.findUserReportTotal", pd);
|
|
return (Long) findObject("SapCheckReportMapper.findUserReportTotal", pd);
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+}
|