|
|
@@ -6,6 +6,7 @@ import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageInfo; |
|
|
import com.github.pagehelper.PageInfo; |
|
|
import com.iformall.common.IdWorker; |
|
|
import com.iformall.common.IdWorker; |
|
|
import com.iformall.domain.dto.WxCUserBasicInfoDto; |
|
|
import com.iformall.domain.dto.WxCUserBasicInfoDto; |
|
|
|
|
|
import com.iformall.domain.po.WxCoupon; |
|
|
import com.iformall.domain.po.WxLevelConfig; |
|
|
import com.iformall.domain.po.WxLevelConfig; |
|
|
import com.iformall.domain.po.WxLevelConfigCoupon; |
|
|
import com.iformall.domain.po.WxLevelConfigCoupon; |
|
|
import com.iformall.domain.po.WxLevelMerchant; |
|
|
import com.iformall.domain.po.WxLevelMerchant; |
|
|
@@ -13,6 +14,7 @@ import com.iformall.domain.po.base.BaseEntity; |
|
|
import com.iformall.domain.po.base.TenantEntity; |
|
|
import com.iformall.domain.po.base.TenantEntity; |
|
|
import com.iformall.domain.vo.WxLevelMerchantCVo; |
|
|
import com.iformall.domain.vo.WxLevelMerchantCVo; |
|
|
import com.iformall.mapper.WxCUserBasicInfoMapper; |
|
|
import com.iformall.mapper.WxCUserBasicInfoMapper; |
|
|
|
|
|
import com.iformall.mapper.WxCouponMapper; |
|
|
import com.iformall.mapper.WxLevelConfigCouponMapper; |
|
|
import com.iformall.mapper.WxLevelConfigCouponMapper; |
|
|
import com.iformall.mapper.WxLevelConfigMapper; |
|
|
import com.iformall.mapper.WxLevelConfigMapper; |
|
|
import com.iformall.mapper.WxLevelMerchantMapper; |
|
|
import com.iformall.mapper.WxLevelMerchantMapper; |
|
|
@@ -44,6 +46,9 @@ public class WxLevelConfigServiceImpl implements WxLevelConfigService { |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
WxLevelConfigCouponMapper wxLevelConfigCouponMapper; |
|
|
WxLevelConfigCouponMapper wxLevelConfigCouponMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
WxCouponMapper wxCouponMapper; |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
WxLevelMerchantMapper wxLevelMerchantapper; |
|
|
WxLevelMerchantMapper wxLevelMerchantapper; |
|
|
@@ -86,7 +91,17 @@ public class WxLevelConfigServiceImpl implements WxLevelConfigService { |
|
|
WxLevelConfigCoupon cc = new WxLevelConfigCoupon(); |
|
|
WxLevelConfigCoupon cc = new WxLevelConfigCoupon(); |
|
|
cc.updateTenantInfo(l); |
|
|
cc.updateTenantInfo(l); |
|
|
cc.setLevelId(l.getId()); |
|
|
cc.setLevelId(l.getId()); |
|
|
l.setCoupons(wxLevelConfigCouponMapper.findList(cc)); |
|
|
|
|
|
|
|
|
List<WxLevelConfigCoupon> coupons = wxLevelConfigCouponMapper.findList(cc); |
|
|
|
|
|
if (null != coupons && coupons.size() > 0 ) { |
|
|
|
|
|
for (int j = 0 ; j < coupons.size(); j++) { |
|
|
|
|
|
WxLevelConfigCoupon wlcc = coupons.get(j); |
|
|
|
|
|
WxCoupon c = wxCouponMapper.selectById(wlcc.getCouponId(),record.getTenantId()); |
|
|
|
|
|
if (null != c) { |
|
|
|
|
|
wlcc.setCouponName(c.getTitle()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
l.setCoupons(coupons); |
|
|
} |
|
|
} |
|
|
return page; |
|
|
return page; |
|
|
} |
|
|
} |
|
|
|