Forráskód Böngészése

汇总导出bug fix

hanwenjie 3 éve
szülő
commit
edc65d2f16

+ 3 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapCheckReportService.java

@@ -1,5 +1,7 @@
 package org.fouram.service;
 
+import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 import java.util.Map;
 
@@ -64,7 +66,7 @@ public class SapCheckReportService extends BaseService {
 		pd.put("startDate", startDate);
 		pd.put("endDate", endDate);
 //		pd.put("departId", departId);
-		pd.put("departIds",StringUtils.isNotBlank(departId)?departId.split(","):null);
+		pd.put("departIds",StringUtils.isNotBlank(departId)? new ArrayList<>(Arrays.asList(departId.split(","))):new ArrayList<>());
 		pd.put("name", name);
 
 		List<String> days = DateUtil.getSubDateList(startDate, endDate);