package com.cyksj.mapper.corp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyksj.model.entity.CorpTag;
import com.cyksj.model.views.CorpTagBackView;
import com.cyksj.model.views.CorpTagHeadDataView;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/*
 *项目名: netflix
 *文件名: CorpTagMapper
 *创建者: JavaZou
 *创建时间:2022/10/13 18:07
 */
public interface CorpTagMapper extends BaseMapper<CorpTag> {
	Page<CorpTagBackView> getCorpTagBackView(@Param("page") Page<CorpTagBackView> page, @Param("tagName") String tagName, @Param("groupIds") String[] groupIds, @Param("sort") String sort, @Param("order") String order, @Param("wxCorpId") Long wxCorpId, @Param("tagIdStr") String tagIdStr);

	List<String> selectTagsIdByGroupId(String groupId);

	CorpTag getCorpTagById(Long corpTagId);

	CorpTagHeadDataView getCorpTagHeadDataView();

	Integer selectCountOfCustomer(@Param("tagId") String tagId, @Param("wxCorpId") Long wxCorpId);
}
