Commit 758818b7 by guojuxing

根据gic卡券ID查询绑定的微盟卡券列表代码优化

parent ae19d559
......@@ -218,12 +218,9 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
if (CollectionUtils.isEmpty(gicRecord)) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "未绑定");
}
List<WmCouponDTO> list = gicRecord.stream().map(e -> {
WmCouponDTO temp = new WmCouponDTO();
temp.setWmCouponId(Long.valueOf(e.getWmCouponId()));
temp.setWmMallStoreId(e.getWmMallStoreId());
return temp;
}).collect(Collectors.toList());
List<WmCouponDTO> list = gicRecord.stream().map(e -> new WmCouponDTO()
.setWmCouponId(Long.valueOf(e.getWmCouponId()))
.setWmMallStoreId(e.getWmMallStoreId())).collect(Collectors.toList());
return ServiceResponse.success(list);
}
......
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