Commit 3a511540 by 李传峰

feat:[none] 调ERP接口,传参List去重处理

parent 84dcaff1
...@@ -27,6 +27,7 @@ import java.util.Date; ...@@ -27,6 +27,7 @@ import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors;
@Repository("erpConsr") @Repository("erpConsr")
public class ErpConsr { public class ErpConsr {
...@@ -248,10 +249,9 @@ public class ErpConsr { ...@@ -248,10 +249,9 @@ public class ErpConsr {
channelIds.remove(0L); channelIds.remove(0L);
bookIds.remove(0L); bookIds.remove(0L);
Map<String, List<Long>> bookAdviserChannelIdMap = new HashMap<>(); Map<String, List<Long>> bookAdviserChannelIdMap = new HashMap<>();
bookAdviserChannelIdMap.put("adviserIds", adviserIds); bookAdviserChannelIdMap.put("adviserIds", adviserIds.stream().distinct().collect(Collectors.toList()));
bookAdviserChannelIdMap.put("channelIds", channelIds); bookAdviserChannelIdMap.put("channelIds", channelIds.stream().distinct().collect(Collectors.toList()));
bookAdviserChannelIdMap.put("bookIds", bookIds); bookAdviserChannelIdMap.put("bookIds", bookIds.stream().distinct().collect(Collectors.toList()));
Map<String, ErpBookApprovalDTO> resultMap = null;
Map<String, String> headers = new HashMap<>(); Map<String, String> headers = new HashMap<>();
headers.put("Content-Type", "application/json"); headers.put("Content-Type", "application/json");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment