Commit 2dfec65b by fudahua

同步优化初步3

parent 2c679173
......@@ -220,7 +220,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
* @param addList
*/
private void dealDepartmentInit(String taskId, String wxEnterpriseId, List<SyncSingleDealDTO> addList) {
Set<String> addListMid = addList.stream().map(dto -> dto.getRelatedId()).collect(Collectors.toSet());
Set<String> addListMid = addList.stream().filter(dto -> dto.getStoreFlag().equals(0)).map(dto -> dto.getRelatedId()).collect(Collectors.toSet());
dealDepartmentToMq(taskId, addListMid, SyncTaskStatusEnum.group_sync);
}
......
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