| | |
| | | package com.nuvole.four.service.impl; |
| | | |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.four.client.ShopServiceClient; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.domain.ActivityShopRecord; |
| | | import com.nuvole.four.domain.dto.ActivityShopRecordDto; |
| | |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | public class ActivityShopRecordServiceImpl implements ActivityShopRecordService { |
| | | |
| | | private final ActivityShopRecordMapper activityShopRecordMapper; |
| | | private final ShopServiceClient shopServiceClient; |
| | | // private final ShopServiceClient shopServiceClient; |
| | | private final ActivityFeeMapper activityFeeMapper; |
| | | |
| | | |
| | |
| | | //关联shop库查询商户、店铺等字段信息 |
| | | List<Long> shopIds = dtoList.stream().map(ActivityShopRecord::getMerchantShopId).collect(Collectors.toList()); |
| | | String ids = shopIds.stream().map(String::valueOf).collect(Collectors.joining(",")); |
| | | List<Map> mapList = shopServiceClient.selectShopMsgByIds(ids); |
| | | // List<Map> mapList = shopServiceClient.selectShopMsgByIds(ids); |
| | | List<Map> mapList = new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(mapList)){ |
| | | // 将 mapList 中的数据合并到 dtoList 中 |
| | | dtoList.forEach( d -> { |