package com.goafanti.common.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.goafanti.common.model.UserChannel;
import com.goafanti.user.bo.InputUserChannel;

public interface UserChannelMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_channel
	 * @mbg.generated  Fri May 07 15:11:33 CST 2021
	 */
	int deleteByPrimaryKey(Integer id);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_channel
	 * @mbg.generated  Fri May 07 15:11:33 CST 2021
	 */
	int insert(UserChannel record);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_channel
	 * @mbg.generated  Fri May 07 15:11:33 CST 2021
	 */
	int insertSelective(UserChannel record);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_channel
	 * @mbg.generated  Fri May 07 15:11:33 CST 2021
	 */
	UserChannel selectByPrimaryKey(Integer id);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_channel
	 * @mbg.generated  Fri May 07 15:11:33 CST 2021
	 */
	int updateByPrimaryKeySelective(UserChannel record);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_channel
	 * @mbg.generated  Fri May 07 15:11:33 CST 2021
	 */
	int updateByPrimaryKey(UserChannel record);


	void updateByUid(UserChannel uc);


	void insertBatch(List<InputUserChannel> list);


	/**
	 * 
	 * @param list
	 * @param type type==2 status=5 recovery=1,type !=2 status=1
	 * @param date
	 * @param maid 
	 * @param status 
	 */
	void updateByuids(@Param("list")List<String> list, @Param("type")Integer type, @Param("date")Date date,
			@Param("maid")String maid, @Param("status")Integer status);

	int deleteByIds(List<String> list);


	List<String> checkRecovery(List<String> list);


	void deleteUser(List<String> list);


	int selectSignByUid(String uid);


	UserChannel selectByUid(String id);


	


}