package com.goafanti.common.dao;

import com.goafanti.common.model.UserNames;
import com.goafanti.customer.bo.InputExcelUser;
import com.goafanti.customer.bo.UserNamesListBo;
import com.goafanti.user.bo.InputUserChannel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserNamesMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_names
     *
     * @mbg.generated Mon Jul 05 11:40:49 CST 2021
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_names
     *
     * @mbg.generated Mon Jul 05 11:40:49 CST 2021
     */
    int insert(UserNames record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_names
     *
     * @mbg.generated Mon Jul 05 11:40:49 CST 2021
     */
    int insertSelective(UserNames record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_names
     *
     * @mbg.generated Mon Jul 05 11:40:49 CST 2021
     */
    UserNames selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_names
     *
     * @mbg.generated Mon Jul 05 11:40:49 CST 2021
     */
    int updateByPrimaryKeySelective(UserNames record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_names
     *
     * @mbg.generated Mon Jul 05 11:40:49 CST 2021
     */
    int updateByPrimaryKey(UserNames record);

	List<UserNamesListBo> getUserList(String uid);

	int updateAddUserName(@Param("uid") String uid, @Param("userName")String userName);

    List<UserNamesListBo> checkUserName( @Param("userName")String userName);

	void insertBatch(List<InputUserChannel> list);


    List<InputExcelUser> selectUserNameList(List<InputExcelUser> list2);
}