|
|
@@ -54,7 +54,7 @@ public class ChannelController {
|
|
|
if (StrUtil.isNotBlank(channelPopularize.getCouponIds())) {
|
|
|
try {
|
|
|
List<Long> couponIds = Jsons.parseList(channelPopularize.getCouponIds(), Long.class);
|
|
|
- Long userId = (isLogin != null && !isLogin) ? null : StpUserUtil.getLoginIdAsLong();
|
|
|
+ Long userId = StpUserUtil.getUserIdAfterLogin();
|
|
|
MapBuilder builder = MapUtils.builder().field(CouponTfPopularizeView::getCouponId, couponIds).op(Operator.InList);
|
|
|
if (userId != null) {
|
|
|
builder.put("user_id", String.format("and cu.user_id = %s", userId));
|