|
|
@@ -1,92 +0,0 @@ |
|
|
|
package com.iformall.service; |
|
|
|
|
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.base.TenantEntity; |
|
|
|
import com.iformall.domain.po.WxCoupon; |
|
|
|
import com.iformall.domain.po.WxCouponChannel; |
|
|
|
import com.iformall.domain.vo.TtCouponChannelVo; |
|
|
|
import com.iformall.domain.vo.WxCouponCVo; |
|
|
|
import com.iformall.domain.vo.WxCouponChannelAddVo; |
|
|
|
import com.iformall.domain.vo.WxCouponChannelVo; |
|
|
|
import com.iformall.enums.EnumPayWay; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
public interface WxCouponChannelService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 根据实体查询分页列表 |
|
|
|
* |
|
|
|
* @param record |
|
|
|
* @param pageIndex |
|
|
|
* @param pageSize |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
PageInfo<WxCouponChannel> listAsPage(WxCouponChannel record, Integer pageIndex, Integer pageSize); |
|
|
|
List<WxCouponChannel> findList(WxCouponChannel record); |
|
|
|
List<Long> findCouponIdList(WxCouponChannel record); |
|
|
|
|
|
|
|
|
|
|
|
WxCouponCVo findDetailVo(Long id,String tenantId,boolean hasMerchant); |
|
|
|
|
|
|
|
WxCouponCVo findVoStatusDetail(Long id,String tenantId); |
|
|
|
|
|
|
|
/** |
|
|
|
* 根据Id获得实体 |
|
|
|
* |
|
|
|
* @param id |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
WxCouponChannel getById(Long id,String tenantId); |
|
|
|
|
|
|
|
/** |
|
|
|
* 保存或更新实体 |
|
|
|
* |
|
|
|
* @param record |
|
|
|
*/ |
|
|
|
ResultData saveOrUpdate(WxCouponChannel record); |
|
|
|
|
|
|
|
void spuStatusSyncByCoupon(TenantEntity tenantEntity,Long couponId); |
|
|
|
|
|
|
|
/** |
|
|
|
* 创建二维码 |
|
|
|
*/ |
|
|
|
void updateQrCode(TenantEntity tenantEntity, Long couponChannelId, Integer couponType); |
|
|
|
|
|
|
|
ResultData addBatch(String type,String[] ids, String[] channelId, TenantEntity tenantEntity, Date showBeginTime, Date beginTime, Date endTime,Integer channelPrice,Integer channelStock); |
|
|
|
|
|
|
|
WxCouponChannelAddVo addCouponChannel(Long couponid, Integer channelId, TenantEntity tenantEntity, Date showBeginTime, Date beginTime, Date endTime, Integer channelPrice, Integer channelStock); |
|
|
|
|
|
|
|
void updateStatusByCouponId(Long couponId,TenantEntity tenantEntity,int status); |
|
|
|
|
|
|
|
ResultData change(WxCouponChannel wxCouponChannel); |
|
|
|
|
|
|
|
int countCoupon(WxCouponChannel wxCouponChannel); |
|
|
|
|
|
|
|
List<WxCouponChannelVo> newfindListVo(WxCouponChannel wxCouponChannel); |
|
|
|
|
|
|
|
PageInfo<WxCouponChannelVo> newListPageVo(WxCouponChannel record, Integer pageIndex, Integer pageSize); |
|
|
|
|
|
|
|
PageInfo<WxCoupon> liveHomePage(WxCouponChannel record, Integer pageIndex, Integer pageSize); |
|
|
|
|
|
|
|
void reduceChannelStock(TenantEntity tenantEntity,Long couponChannelId, Integer number); |
|
|
|
void backChannelStock(TenantEntity tenantEntity,Long couponChannelId, Integer number); |
|
|
|
void setChannelStock(WxCouponChannel record,Integer number); |
|
|
|
void releaseChannelStock(WxCouponChannel record); |
|
|
|
void setChannelPrice(WxCouponChannel record); |
|
|
|
WxCouponChannel getPriceAndStock(TenantEntity tenantEntity,Long couponChannelId); |
|
|
|
List<WxCouponChannel> getPriceAndStock(TenantEntity tenantEntity,List<Long> couponChannelIds); |
|
|
|
|
|
|
|
ResultData getCouponChannelPoi(TenantEntity tenantInfo, Long id); |
|
|
|
|
|
|
|
PageInfo<TtCouponChannelVo> ttChannelList(TtCouponChannelVo ttChannelVo, Integer pageNum, Integer pageSize); |
|
|
|
|
|
|
|
ResultData updateOnline(WxCouponChannel wxCouponChannel); |
|
|
|
|
|
|
|
Long getCouponOneMerchantId(Long couponChannelId, String tenantId); |
|
|
|
|
|
|
|
// String getCouponOneMerchantUid(EnumPayWay payWay,Long merchantId, String tenantId); |
|
|
|
|
|
|
|
} |