package com.bonus.canteen.core.marketing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.marketing.model.MktEffective;
import com.bonus.canteen.core.drp.vo.DrpWarehouseAllVO;
import com.bonus.canteen.core.marketing.vo.MktEffectiveUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/** @deprecated */
@Deprecated
@Mapper
public interface MktEffectiveMapper extends BaseMapper<MktEffective> {
   @Select({"select org_id from mkt_effective_detail where eff_id = #{custEffId}"})
   List<Long> selectOrgIdListByEffId(Long custEffId);

   List<MktEffectiveUserVO> selectAllUserEff(@Param("effType") Integer effType, @Param("delFlag") Integer delFlag);

   Long getUserEffIdByCustId(@Param("custId") Long custId, @Param("delFlag") Integer delFlag);

   @Select({"select warehouse_id, warehouse_name from drp_warehouse where del_flag = #{delFlag}"})
   List<DrpWarehouseAllVO> selectAllWareHouse(Integer delFlag);

   String getEffNameStrByIdList(@Param("effIdList") List<Long> effIdList);
}
