|
@@ -1,7 +1,5 @@
|
|
package org.fouram.service;
|
|
package org.fouram.service;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
|
-import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -62,11 +60,10 @@ public class SapCheckReportService extends BaseService {
|
|
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, Object> pd = Maps.newHashMap();
|
|
|
|
|
|
+ Map<String, String> 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("departIds",StringUtils.isNotBlank(departId)? new ArrayList<>(Arrays.asList(departId.split(","))):new ArrayList<>());
|
|
|
|
|
|
+ pd.put("departId", departId);
|
|
pd.put("name", name);
|
|
pd.put("name", name);
|
|
|
|
|
|
List<String> days = DateUtil.getSubDateList(startDate, endDate);
|
|
List<String> days = DateUtil.getSubDateList(startDate, endDate);
|
|
@@ -102,7 +99,7 @@ public class SapCheckReportService extends BaseService {
|
|
}
|
|
}
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|
|
- private List<Map<String, Object>> getReportDayResult(Map<String, Object> param, List<String> subDays)
|
|
|
|
|
|
+ private List<Map<String, Object>> getReportDayResult(Map<String, String> 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));
|