|
@@ -23,6 +23,7 @@ import com.gree.mall.miniapp.plus.entity.*;
|
|
|
import com.gree.mall.miniapp.plus.service.*;
|
|
|
import com.gree.mall.miniapp.utils.CommonUtils;
|
|
|
import com.gree.mall.miniapp.utils.DateUtils;
|
|
|
+import com.gree.mall.miniapp.utils.StringUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -620,6 +621,8 @@ public class CouponLogic {
|
|
|
|
|
|
public List<Coupon> listAll(HttpServletRequest request) {
|
|
|
CurrentCompanyWechat currentCompanyWechat = commonLogic.getCurrentCompanyWechat(request);
|
|
|
+ if (StringUtil.isEmpty(currentCompanyWechat.getUser().getMobile()))
|
|
|
+ return new ArrayList<>();
|
|
|
this.getCouponUser(currentCompanyWechat.getUserId());
|
|
|
List<CouponUser> list = couponUserService.lambdaQuery().eq(CouponUser::getUserId, currentCompanyWechat.getUserId()).list();
|
|
|
if (CollectionUtils.isEmpty(list))
|