package com.winsun.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.winsun.bean.SysUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 用户表的Mapper
 */
@Mapper
@Component
public interface SysUserMapper extends BaseMapper<SysUser> {

    @Insert("insert into `hhr_user_school` (user_id,school_id) values(#{userId},#{schoolId})")
    Integer insertUserSchool(@Param("userId")String userId,@Param("schoolId")String schoolId);
}
