UserOrganizationRoleMapper.java 3.85 KB
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
package pwc.taxtech.atms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.RowBounds;

import pwc.taxtech.atms.MyMapper;
import pwc.taxtech.atms.dto.user.UserOrgRoleDto;
import pwc.taxtech.atms.entitiy.UserOrganizationRole;
import pwc.taxtech.atms.entitiy.UserOrganizationRoleExample;

@Mapper
public interface UserOrganizationRoleMapper extends MyMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dbo.UserOrganizationRole
     *
     * @mbg.generated
     */
    long countByExample(UserOrganizationRoleExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dbo.UserOrganizationRole
     *
     * @mbg.generated
     */
    int deleteByExample(UserOrganizationRoleExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dbo.UserOrganizationRole
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(String ID);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dbo.UserOrganizationRole
     *
     * @mbg.generated
     */
    int insert(UserOrganizationRole record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dbo.UserOrganizationRole
     *
     * @mbg.generated
     */
    int insertSelective(UserOrganizationRole record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dbo.UserOrganizationRole
     *
     * @mbg.generated
     */
    List<UserOrganizationRole> selectByExampleWithRowbounds(UserOrganizationRoleExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dbo.UserOrganizationRole
     *
     * @mbg.generated
     */
    List<UserOrganizationRole> selectByExample(UserOrganizationRoleExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dbo.UserOrganizationRole
     *
     * @mbg.generated
     */
    UserOrganizationRole selectByPrimaryKey(String ID);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dbo.UserOrganizationRole
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") UserOrganizationRole record, @Param("example") UserOrganizationRoleExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dbo.UserOrganizationRole
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") UserOrganizationRole record, @Param("example") UserOrganizationRoleExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dbo.UserOrganizationRole
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(UserOrganizationRole record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dbo.UserOrganizationRole
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(UserOrganizationRole record);
    

    List<UserOrgRoleDto> getUserOrganizationRoleList();
    
    @Select("SELECT UserOrganization.UserID from UserOrganizationRole "
            + "JOIN UserOrganization ON UserOrganizationRole.UserOrganizationID = UserOrganization.ID "
            + "WHERE UserOrganizationRole.RoleID=#{roleID}")
    List<String> getUserIDByUserOrganizationRole(@Param("roleID") String roleID);
}