|
@@ -16,6 +16,7 @@ import com.zanxiang.manage.domain.vo.GamePayWayVO;
|
|
|
import com.zanxiang.manage.service.*;
|
|
|
import com.zanxiang.mybatis.entity.GamePayWay;
|
|
|
import com.zanxiang.mybatis.mapper.GamePayWayMapper;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
@@ -33,6 +34,7 @@ import java.util.stream.Collectors;
|
|
|
* @date 2022-06-30 14:22
|
|
|
*/
|
|
|
@Service
|
|
|
+@Slf4j
|
|
|
public class GamePayWayServiceImpl extends ServiceImpl<GamePayWayMapper, GamePayWay> implements GamePayWayService {
|
|
|
|
|
|
@Autowired
|
|
@@ -66,10 +68,10 @@ public class GamePayWayServiceImpl extends ServiceImpl<GamePayWayMapper, GamePay
|
|
|
List<Long> payDeviceIdList = gamePayWayList.stream().map(GamePayWay::getPayDeviceId).distinct().collect(Collectors.toList());
|
|
|
Map<Long, PayDeviceDTO> payDeviceMap = payDeviceService.payDeviceMap();
|
|
|
List<GamePayWayVO> list = new ArrayList<>();
|
|
|
- payDeviceIdList.forEach(payDeviceId -> GamePayWayVO.builder()
|
|
|
+ payDeviceIdList.forEach(payDeviceId -> list.add(GamePayWayVO.builder()
|
|
|
.id(payDeviceId)
|
|
|
.payWayName(payDeviceMap.get(payDeviceId).getPayDeviceName())
|
|
|
- .build());
|
|
|
+ .build()));
|
|
|
return list;
|
|
|
}
|
|
|
|