package com.dsh.activity.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.dsh.activity.entity.Coupon;
|
import com.dsh.activity.feignclient.model.CouponListOfSearch;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* <p>
|
* 优惠券 Mapper 接口
|
* </p>
|
*
|
* @author jqs
|
* @since 2023-06-29
|
*/
|
public interface CouponMapper extends BaseMapper<Coupon> {
|
|
Map<String, Object> queryConponRuleOfJson(@Param("id") Integer id);
|
|
|
List<Map<String, Object>> queryCouponListOfSearch(@Param("name") String name,
|
@Param("type") Integer type,
|
@Param("distributionMethod") Integer distributionMethod,
|
@Param("userPopulation") Integer userPopulation,
|
@Param("status") Integer status,
|
@Param("state") Integer state,
|
@Param("cityCode") String cityCode,
|
@Param("storeId") Integer storeId,
|
@Param("operatorId") Integer operatorId,
|
@Param("objType") Integer objType);
|
|
List<Map<String, Object>> queryCouponListOfSearch1(@Param("name") String name,
|
@Param("type") Integer type,
|
@Param("distributionMethod") Integer distributionMethod,
|
@Param("userPopulation") Integer userPopulation,
|
@Param("status") Integer status,
|
@Param("state") Integer state,
|
@Param("page") Page<Map<String, Object>> page,
|
@Param("cityCode") String cityCode,
|
@Param("storeId") Integer storeId
|
|
);
|
|
List<Map<String, Object>> queryCouponExamineList(@Param("name") String name,
|
@Param("type") Integer type,
|
@Param("userPopulation") Integer userPopulation,
|
@Param("distributionMethod") Integer distributionMethod,
|
@Param("auditStatus") Integer auditStatus,
|
@Param("page") Page<Map<String, Object>> page);
|
|
|
List<Map<String, Object>> listRecord(@Param("objectPage") Page<Object> objectPage, @Param("id") Integer id, @Param("ids") List<Integer> ids, @Param("type") Integer type);
|
|
|
void updateType(@Param("id") Long id);
|
}
|