|
|
@@ -70,6 +70,10 @@ public class CouponFrontController {
|
|
|
public Result<Page<CouponUserView>> couponPersonalList(@RequestParam(defaultValue = "1") Long start, @RequestParam(defaultValue = "5") Long limit) {
|
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
Page<CouponUserView> page = couponUserMapper.couponPersonalList(userId, new Page<>(start, limit));
|
|
|
+ page.getRecords().forEach(data -> {
|
|
|
+ String str = couponSkuMapper.selectGoodsSkuStr(data.getCouponId());
|
|
|
+ data.setGoodsSkuStr(str.replaceAll(",", "/").replaceAll(";", ""));
|
|
|
+ });
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(page);
|
|
|
}
|
|
|
|