更新zheng-upms-dao
This commit is contained in:
parent
11cf91c0f4
commit
0119c298a9
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?PowerDesigner AppLocale="UTF16" ID="{22E867D0-73E2-4C77-BB68-28135519D681}" Label="" LastModificationDate="1483626572" Name="zheng" Objects="397" Symbols="67" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
|
||||
<?PowerDesigner AppLocale="UTF16" ID="{22E867D0-73E2-4C77-BB68-28135519D681}" Label="" LastModificationDate="1483626572" Name="zheng" Objects="381" Symbols="67" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
|
||||
<!-- do not edit this file -->
|
||||
|
||||
<Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
|
||||
|
@ -4722,7 +4722,7 @@ DESTINATION 0 新宋体,8,N</a:FontList>
|
|||
<a:CreationDate>1483625202</a:CreationDate>
|
||||
<a:ModificationDate>1483625737</a:ModificationDate>
|
||||
<a:Rect>((-8138,-78107), (-4798,-70055))</a:Rect>
|
||||
<a:ListOfPoints>((-5198,-77707),(-5815,-70680),(-7738,-70680))</a:ListOfPoints>
|
||||
<a:ListOfPoints>((-5198,-77707),(-5198,-70680),(-7738,-70680))</a:ListOfPoints>
|
||||
<a:CornerStyle>1</a:CornerStyle>
|
||||
<a:ArrowStyle>1</a:ArrowStyle>
|
||||
<a:LineColor>12615680</a:LineColor>
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
package com.zheng.upms.dao.mapper;
|
||||
|
||||
import com.zheng.upms.dao.model.UpmsOrganization;
|
||||
import com.zheng.upms.dao.model.UpmsOrganizationExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UpmsOrganizationMapper {
|
||||
int countByExample(UpmsOrganizationExample example);
|
||||
|
||||
int deleteByExample(UpmsOrganizationExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer organizationId);
|
||||
|
||||
int insert(UpmsOrganization record);
|
||||
|
||||
int insertSelective(UpmsOrganization record);
|
||||
|
||||
List<UpmsOrganization> selectByExample(UpmsOrganizationExample example);
|
||||
|
||||
UpmsOrganization selectByPrimaryKey(Integer organizationId);
|
||||
|
||||
int updateByExampleSelective(@Param("record") UpmsOrganization record, @Param("example") UpmsOrganizationExample example);
|
||||
|
||||
int updateByExample(@Param("record") UpmsOrganization record, @Param("example") UpmsOrganizationExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(UpmsOrganization record);
|
||||
|
||||
int updateByPrimaryKey(UpmsOrganization record);
|
||||
}
|
|
@ -0,0 +1,205 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.zheng.upms.dao.mapper.UpmsOrganizationMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.zheng.upms.dao.model.UpmsOrganization" >
|
||||
<id column="organization_id" property="organizationId" jdbcType="INTEGER" />
|
||||
<result column="system_id" property="systemId" jdbcType="INTEGER" />
|
||||
<result column="name" property="name" jdbcType="VARCHAR" />
|
||||
<result column="description" property="description" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause" >
|
||||
<where >
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or" >
|
||||
<if test="criteria.valid" >
|
||||
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||
<foreach collection="criteria.criteria" item="criterion" >
|
||||
<choose >
|
||||
<when test="criterion.noValue" >
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue" >
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue" >
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue" >
|
||||
and ${criterion.condition}
|
||||
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause" >
|
||||
<where >
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
|
||||
<if test="criteria.valid" >
|
||||
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||
<foreach collection="criteria.criteria" item="criterion" >
|
||||
<choose >
|
||||
<when test="criterion.noValue" >
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue" >
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue" >
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue" >
|
||||
and ${criterion.condition}
|
||||
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List" >
|
||||
organization_id, system_id, name, description
|
||||
</sql>
|
||||
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.upms.dao.model.UpmsOrganizationExample" >
|
||||
select
|
||||
<if test="distinct" >
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_organization
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null" >
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
<if test="limit != null" >
|
||||
<if test="offset != null" >
|
||||
limit ${offset}, ${limit}
|
||||
</if>
|
||||
<if test="offset == null" >
|
||||
limit ${limit}
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_organization
|
||||
where organization_id = #{organizationId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
||||
delete from upms_organization
|
||||
where organization_id = #{organizationId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.zheng.upms.dao.model.UpmsOrganizationExample" >
|
||||
delete from upms_organization
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.zheng.upms.dao.model.UpmsOrganization" >
|
||||
<selectKey resultType="java.lang.Integer" keyProperty="organizationId" order="AFTER" >
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into upms_organization (system_id, name, description
|
||||
)
|
||||
values (#{systemId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.zheng.upms.dao.model.UpmsOrganization" >
|
||||
<selectKey resultType="java.lang.Integer" keyProperty="organizationId" order="AFTER" >
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into upms_organization
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="systemId != null" >
|
||||
system_id,
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
name,
|
||||
</if>
|
||||
<if test="description != null" >
|
||||
description,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="systemId != null" >
|
||||
#{systemId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null" >
|
||||
#{description,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.zheng.upms.dao.model.UpmsOrganizationExample" resultType="java.lang.Integer" >
|
||||
select count(*) from upms_organization
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map" >
|
||||
update upms_organization
|
||||
<set >
|
||||
<if test="record.organizationId != null" >
|
||||
organization_id = #{record.organizationId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.systemId != null" >
|
||||
system_id = #{record.systemId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.name != null" >
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.description != null" >
|
||||
description = #{record.description,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map" >
|
||||
update upms_organization
|
||||
set organization_id = #{record.organizationId,jdbcType=INTEGER},
|
||||
system_id = #{record.systemId,jdbcType=INTEGER},
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
description = #{record.description,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.upms.dao.model.UpmsOrganization" >
|
||||
update upms_organization
|
||||
<set >
|
||||
<if test="systemId != null" >
|
||||
system_id = #{systemId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null" >
|
||||
description = #{description,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where organization_id = #{organizationId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.zheng.upms.dao.model.UpmsOrganization" >
|
||||
update upms_organization
|
||||
set system_id = #{systemId,jdbcType=INTEGER},
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
description = #{description,jdbcType=VARCHAR}
|
||||
where organization_id = #{organizationId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<cache />
|
||||
</mapper>
|
|
@ -0,0 +1,30 @@
|
|||
package com.zheng.upms.dao.mapper;
|
||||
|
||||
import com.zheng.upms.dao.model.UpmsPermission;
|
||||
import com.zheng.upms.dao.model.UpmsPermissionExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UpmsPermissionMapper {
|
||||
int countByExample(UpmsPermissionExample example);
|
||||
|
||||
int deleteByExample(UpmsPermissionExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer userOrganizationId);
|
||||
|
||||
int insert(UpmsPermission record);
|
||||
|
||||
int insertSelective(UpmsPermission record);
|
||||
|
||||
List<UpmsPermission> selectByExample(UpmsPermissionExample example);
|
||||
|
||||
UpmsPermission selectByPrimaryKey(Integer userOrganizationId);
|
||||
|
||||
int updateByExampleSelective(@Param("record") UpmsPermission record, @Param("example") UpmsPermissionExample example);
|
||||
|
||||
int updateByExample(@Param("record") UpmsPermission record, @Param("example") UpmsPermissionExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(UpmsPermission record);
|
||||
|
||||
int updateByPrimaryKey(UpmsPermission record);
|
||||
}
|
|
@ -0,0 +1,359 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zheng.upms.dao.mapper.UpmsPermissionMapper">
|
||||
<resultMap id="BaseResultMap" type="com.zheng.upms.dao.model.UpmsPermission">
|
||||
<id column="user_organization_id" jdbcType="INTEGER" property="userOrganizationId" />
|
||||
<result column="user_id" jdbcType="INTEGER" property="userId" />
|
||||
<result column="organization_id" jdbcType="INTEGER" property="organizationId" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
user_organization_id, user_id, organization_id
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.zheng.upms.dao.model.UpmsPermissionExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_user_organization
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
<if test="limit != null">
|
||||
<if test="offset != null">
|
||||
limit ${offset}, ${limit}
|
||||
</if>
|
||||
<if test="offset == null">
|
||||
limit ${limit}
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_user_organization
|
||||
where user_organization_id = #{userOrganizationId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from upms_user_organization
|
||||
where user_organization_id = #{userOrganizationId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.zheng.upms.dao.model.UpmsPermissionExample">
|
||||
delete from upms_user_organization
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.zheng.upms.dao.model.UpmsPermission">
|
||||
insert into upms_user_organization (user_organization_id, user_id, organization_id
|
||||
)
|
||||
values (#{userOrganizationId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{organizationId,jdbcType=INTEGER}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.zheng.upms.dao.model.UpmsPermission">
|
||||
insert into upms_user_organization
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userOrganizationId != null">
|
||||
user_organization_id,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="organizationId != null">
|
||||
organization_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userOrganizationId != null">
|
||||
#{userOrganizationId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="organizationId != null">
|
||||
#{organizationId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.zheng.upms.dao.model.UpmsPermissionExample" resultType="java.lang.Integer">
|
||||
select count(*) from upms_user_organization
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update upms_user_organization
|
||||
<set>
|
||||
<if test="record.userOrganizationId != null">
|
||||
user_organization_id = #{record.userOrganizationId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.organizationId != null">
|
||||
organization_id = #{record.organizationId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update upms_user_organization
|
||||
set user_organization_id = #{record.userOrganizationId,jdbcType=INTEGER},
|
||||
user_id = #{record.userId,jdbcType=INTEGER},
|
||||
organization_id = #{record.organizationId,jdbcType=INTEGER}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.upms.dao.model.UpmsPermission">
|
||||
update upms_user_organization
|
||||
<set>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="organizationId != null">
|
||||
organization_id = #{organizationId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where user_organization_id = #{userOrganizationId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.zheng.upms.dao.model.UpmsPermission">
|
||||
update upms_user_organization
|
||||
set user_id = #{userId,jdbcType=INTEGER},
|
||||
organization_id = #{organizationId,jdbcType=INTEGER}
|
||||
where user_organization_id = #{userOrganizationId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<cache />
|
||||
<resultMap id="BaseResultMap" type="com.zheng.upms.dao.model.UpmsPermission">
|
||||
<id column="permission_id" jdbcType="INTEGER" property="permissionId" />
|
||||
<result column="system_id" jdbcType="INTEGER" property="systemId" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
permission_id, system_id
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.zheng.upms.dao.model.UpmsPermissionExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_permission
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
<if test="limit != null">
|
||||
<if test="offset != null">
|
||||
limit ${offset}, ${limit}
|
||||
</if>
|
||||
<if test="offset == null">
|
||||
limit ${limit}
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_permission
|
||||
where permission_id = #{permissionId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from upms_permission
|
||||
where permission_id = #{permissionId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.zheng.upms.dao.model.UpmsPermissionExample">
|
||||
delete from upms_permission
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.zheng.upms.dao.model.UpmsPermission">
|
||||
<selectKey keyProperty="permissionId" order="AFTER" resultType="java.lang.Integer">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into upms_permission (system_id)
|
||||
values (#{systemId,jdbcType=INTEGER})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.zheng.upms.dao.model.UpmsPermission">
|
||||
<selectKey keyProperty="permissionId" order="AFTER" resultType="java.lang.Integer">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into upms_permission
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="systemId != null">
|
||||
system_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="systemId != null">
|
||||
#{systemId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.zheng.upms.dao.model.UpmsPermissionExample" resultType="java.lang.Integer">
|
||||
select count(*) from upms_permission
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update upms_permission
|
||||
<set>
|
||||
<if test="record.permissionId != null">
|
||||
permission_id = #{record.permissionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.systemId != null">
|
||||
system_id = #{record.systemId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update upms_permission
|
||||
set permission_id = #{record.permissionId,jdbcType=INTEGER},
|
||||
system_id = #{record.systemId,jdbcType=INTEGER}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.upms.dao.model.UpmsPermission">
|
||||
update upms_permission
|
||||
<set>
|
||||
<if test="systemId != null">
|
||||
system_id = #{systemId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where permission_id = #{permissionId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.zheng.upms.dao.model.UpmsPermission">
|
||||
update upms_permission
|
||||
set system_id = #{systemId,jdbcType=INTEGER}
|
||||
where permission_id = #{permissionId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<cache />
|
||||
</mapper>
|
|
@ -0,0 +1,30 @@
|
|||
package com.zheng.upms.dao.mapper;
|
||||
|
||||
import com.zheng.upms.dao.model.UpmsRole;
|
||||
import com.zheng.upms.dao.model.UpmsRoleExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UpmsRoleMapper {
|
||||
int countByExample(UpmsRoleExample example);
|
||||
|
||||
int deleteByExample(UpmsRoleExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer roleId);
|
||||
|
||||
int insert(UpmsRole record);
|
||||
|
||||
int insertSelective(UpmsRole record);
|
||||
|
||||
List<UpmsRole> selectByExample(UpmsRoleExample example);
|
||||
|
||||
UpmsRole selectByPrimaryKey(Integer roleId);
|
||||
|
||||
int updateByExampleSelective(@Param("record") UpmsRole record, @Param("example") UpmsRoleExample example);
|
||||
|
||||
int updateByExample(@Param("record") UpmsRole record, @Param("example") UpmsRoleExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(UpmsRole record);
|
||||
|
||||
int updateByPrimaryKey(UpmsRole record);
|
||||
}
|
|
@ -0,0 +1,252 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.zheng.upms.dao.mapper.UpmsRoleMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.zheng.upms.dao.model.UpmsRole" >
|
||||
<id column="role_id" property="roleId" jdbcType="INTEGER" />
|
||||
<result column="system_id" property="systemId" jdbcType="INTEGER" />
|
||||
<result column="name" property="name" jdbcType="VARCHAR" />
|
||||
<result column="description" property="description" jdbcType="VARCHAR" />
|
||||
<result column="status" property="status" jdbcType="TINYINT" />
|
||||
<result column="ctime" property="ctime" jdbcType="BIGINT" />
|
||||
<result column="orders" property="orders" jdbcType="BIGINT" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause" >
|
||||
<where >
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or" >
|
||||
<if test="criteria.valid" >
|
||||
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||
<foreach collection="criteria.criteria" item="criterion" >
|
||||
<choose >
|
||||
<when test="criterion.noValue" >
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue" >
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue" >
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue" >
|
||||
and ${criterion.condition}
|
||||
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause" >
|
||||
<where >
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
|
||||
<if test="criteria.valid" >
|
||||
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||
<foreach collection="criteria.criteria" item="criterion" >
|
||||
<choose >
|
||||
<when test="criterion.noValue" >
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue" >
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue" >
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue" >
|
||||
and ${criterion.condition}
|
||||
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List" >
|
||||
role_id, system_id, name, description, status, ctime, orders
|
||||
</sql>
|
||||
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.upms.dao.model.UpmsRoleExample" >
|
||||
select
|
||||
<if test="distinct" >
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_role
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null" >
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
<if test="limit != null" >
|
||||
<if test="offset != null" >
|
||||
limit ${offset}, ${limit}
|
||||
</if>
|
||||
<if test="offset == null" >
|
||||
limit ${limit}
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_role
|
||||
where role_id = #{roleId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
||||
delete from upms_role
|
||||
where role_id = #{roleId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.zheng.upms.dao.model.UpmsRoleExample" >
|
||||
delete from upms_role
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.zheng.upms.dao.model.UpmsRole" >
|
||||
<selectKey resultType="java.lang.Integer" keyProperty="roleId" order="AFTER" >
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into upms_role (system_id, name, description,
|
||||
status, ctime, orders
|
||||
)
|
||||
values (#{systemId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
|
||||
#{status,jdbcType=TINYINT}, #{ctime,jdbcType=BIGINT}, #{orders,jdbcType=BIGINT}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.zheng.upms.dao.model.UpmsRole" >
|
||||
<selectKey resultType="java.lang.Integer" keyProperty="roleId" order="AFTER" >
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into upms_role
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="systemId != null" >
|
||||
system_id,
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
name,
|
||||
</if>
|
||||
<if test="description != null" >
|
||||
description,
|
||||
</if>
|
||||
<if test="status != null" >
|
||||
status,
|
||||
</if>
|
||||
<if test="ctime != null" >
|
||||
ctime,
|
||||
</if>
|
||||
<if test="orders != null" >
|
||||
orders,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="systemId != null" >
|
||||
#{systemId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null" >
|
||||
#{description,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null" >
|
||||
#{status,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="ctime != null" >
|
||||
#{ctime,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="orders != null" >
|
||||
#{orders,jdbcType=BIGINT},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.zheng.upms.dao.model.UpmsRoleExample" resultType="java.lang.Integer" >
|
||||
select count(*) from upms_role
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map" >
|
||||
update upms_role
|
||||
<set >
|
||||
<if test="record.roleId != null" >
|
||||
role_id = #{record.roleId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.systemId != null" >
|
||||
system_id = #{record.systemId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.name != null" >
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.description != null" >
|
||||
description = #{record.description,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.status != null" >
|
||||
status = #{record.status,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="record.ctime != null" >
|
||||
ctime = #{record.ctime,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="record.orders != null" >
|
||||
orders = #{record.orders,jdbcType=BIGINT},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map" >
|
||||
update upms_role
|
||||
set role_id = #{record.roleId,jdbcType=INTEGER},
|
||||
system_id = #{record.systemId,jdbcType=INTEGER},
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
description = #{record.description,jdbcType=VARCHAR},
|
||||
status = #{record.status,jdbcType=TINYINT},
|
||||
ctime = #{record.ctime,jdbcType=BIGINT},
|
||||
orders = #{record.orders,jdbcType=BIGINT}
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.upms.dao.model.UpmsRole" >
|
||||
update upms_role
|
||||
<set >
|
||||
<if test="systemId != null" >
|
||||
system_id = #{systemId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null" >
|
||||
description = #{description,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null" >
|
||||
status = #{status,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="ctime != null" >
|
||||
ctime = #{ctime,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="orders != null" >
|
||||
orders = #{orders,jdbcType=BIGINT},
|
||||
</if>
|
||||
</set>
|
||||
where role_id = #{roleId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.zheng.upms.dao.model.UpmsRole" >
|
||||
update upms_role
|
||||
set system_id = #{systemId,jdbcType=INTEGER},
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
description = #{description,jdbcType=VARCHAR},
|
||||
status = #{status,jdbcType=TINYINT},
|
||||
ctime = #{ctime,jdbcType=BIGINT},
|
||||
orders = #{orders,jdbcType=BIGINT}
|
||||
where role_id = #{roleId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<cache />
|
||||
</mapper>
|
|
@ -0,0 +1,30 @@
|
|||
package com.zheng.upms.dao.mapper;
|
||||
|
||||
import com.zheng.upms.dao.model.UpmsRolePermission;
|
||||
import com.zheng.upms.dao.model.UpmsRolePermissionExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UpmsRolePermissionMapper {
|
||||
int countByExample(UpmsRolePermissionExample example);
|
||||
|
||||
int deleteByExample(UpmsRolePermissionExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer rolePermissionId);
|
||||
|
||||
int insert(UpmsRolePermission record);
|
||||
|
||||
int insertSelective(UpmsRolePermission record);
|
||||
|
||||
List<UpmsRolePermission> selectByExample(UpmsRolePermissionExample example);
|
||||
|
||||
UpmsRolePermission selectByPrimaryKey(Integer rolePermissionId);
|
||||
|
||||
int updateByExampleSelective(@Param("record") UpmsRolePermission record, @Param("example") UpmsRolePermissionExample example);
|
||||
|
||||
int updateByExample(@Param("record") UpmsRolePermission record, @Param("example") UpmsRolePermissionExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(UpmsRolePermission record);
|
||||
|
||||
int updateByPrimaryKey(UpmsRolePermission record);
|
||||
}
|
|
@ -0,0 +1,190 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.zheng.upms.dao.mapper.UpmsRolePermissionMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.zheng.upms.dao.model.UpmsRolePermission" >
|
||||
<id column="role_permission_id" property="rolePermissionId" jdbcType="INTEGER" />
|
||||
<result column="role_id" property="roleId" jdbcType="INTEGER" />
|
||||
<result column="permission_id" property="permissionId" jdbcType="INTEGER" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause" >
|
||||
<where >
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or" >
|
||||
<if test="criteria.valid" >
|
||||
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||
<foreach collection="criteria.criteria" item="criterion" >
|
||||
<choose >
|
||||
<when test="criterion.noValue" >
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue" >
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue" >
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue" >
|
||||
and ${criterion.condition}
|
||||
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause" >
|
||||
<where >
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
|
||||
<if test="criteria.valid" >
|
||||
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||
<foreach collection="criteria.criteria" item="criterion" >
|
||||
<choose >
|
||||
<when test="criterion.noValue" >
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue" >
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue" >
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue" >
|
||||
and ${criterion.condition}
|
||||
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List" >
|
||||
role_permission_id, role_id, permission_id
|
||||
</sql>
|
||||
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.upms.dao.model.UpmsRolePermissionExample" >
|
||||
select
|
||||
<if test="distinct" >
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_role_permission
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null" >
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
<if test="limit != null" >
|
||||
<if test="offset != null" >
|
||||
limit ${offset}, ${limit}
|
||||
</if>
|
||||
<if test="offset == null" >
|
||||
limit ${limit}
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_role_permission
|
||||
where role_permission_id = #{rolePermissionId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
||||
delete from upms_role_permission
|
||||
where role_permission_id = #{rolePermissionId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.zheng.upms.dao.model.UpmsRolePermissionExample" >
|
||||
delete from upms_role_permission
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.zheng.upms.dao.model.UpmsRolePermission" >
|
||||
insert into upms_role_permission (role_permission_id, role_id, permission_id
|
||||
)
|
||||
values (#{rolePermissionId,jdbcType=INTEGER}, #{roleId,jdbcType=INTEGER}, #{permissionId,jdbcType=INTEGER}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.zheng.upms.dao.model.UpmsRolePermission" >
|
||||
insert into upms_role_permission
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="rolePermissionId != null" >
|
||||
role_permission_id,
|
||||
</if>
|
||||
<if test="roleId != null" >
|
||||
role_id,
|
||||
</if>
|
||||
<if test="permissionId != null" >
|
||||
permission_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="rolePermissionId != null" >
|
||||
#{rolePermissionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="roleId != null" >
|
||||
#{roleId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="permissionId != null" >
|
||||
#{permissionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.zheng.upms.dao.model.UpmsRolePermissionExample" resultType="java.lang.Integer" >
|
||||
select count(*) from upms_role_permission
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map" >
|
||||
update upms_role_permission
|
||||
<set >
|
||||
<if test="record.rolePermissionId != null" >
|
||||
role_permission_id = #{record.rolePermissionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.roleId != null" >
|
||||
role_id = #{record.roleId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.permissionId != null" >
|
||||
permission_id = #{record.permissionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map" >
|
||||
update upms_role_permission
|
||||
set role_permission_id = #{record.rolePermissionId,jdbcType=INTEGER},
|
||||
role_id = #{record.roleId,jdbcType=INTEGER},
|
||||
permission_id = #{record.permissionId,jdbcType=INTEGER}
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.upms.dao.model.UpmsRolePermission" >
|
||||
update upms_role_permission
|
||||
<set >
|
||||
<if test="roleId != null" >
|
||||
role_id = #{roleId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="permissionId != null" >
|
||||
permission_id = #{permissionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where role_permission_id = #{rolePermissionId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.zheng.upms.dao.model.UpmsRolePermission" >
|
||||
update upms_role_permission
|
||||
set role_id = #{roleId,jdbcType=INTEGER},
|
||||
permission_id = #{permissionId,jdbcType=INTEGER}
|
||||
where role_permission_id = #{rolePermissionId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<cache />
|
||||
</mapper>
|
|
@ -0,0 +1,30 @@
|
|||
package com.zheng.upms.dao.mapper;
|
||||
|
||||
import com.zheng.upms.dao.model.UpmsUser;
|
||||
import com.zheng.upms.dao.model.UpmsUserExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UpmsUserMapper {
|
||||
int countByExample(UpmsUserExample example);
|
||||
|
||||
int deleteByExample(UpmsUserExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer userId);
|
||||
|
||||
int insert(UpmsUser record);
|
||||
|
||||
int insertSelective(UpmsUser record);
|
||||
|
||||
List<UpmsUser> selectByExample(UpmsUserExample example);
|
||||
|
||||
UpmsUser selectByPrimaryKey(Integer userId);
|
||||
|
||||
int updateByExampleSelective(@Param("record") UpmsUser record, @Param("example") UpmsUserExample example);
|
||||
|
||||
int updateByExample(@Param("record") UpmsUser record, @Param("example") UpmsUserExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(UpmsUser record);
|
||||
|
||||
int updateByPrimaryKey(UpmsUser record);
|
||||
}
|
|
@ -0,0 +1,173 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.zheng.upms.dao.mapper.UpmsUserMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.zheng.upms.dao.model.UpmsUser" >
|
||||
<id column="user_id" property="userId" jdbcType="INTEGER" />
|
||||
<result column="system_id" property="systemId" jdbcType="INTEGER" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause" >
|
||||
<where >
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or" >
|
||||
<if test="criteria.valid" >
|
||||
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||
<foreach collection="criteria.criteria" item="criterion" >
|
||||
<choose >
|
||||
<when test="criterion.noValue" >
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue" >
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue" >
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue" >
|
||||
and ${criterion.condition}
|
||||
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause" >
|
||||
<where >
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
|
||||
<if test="criteria.valid" >
|
||||
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||
<foreach collection="criteria.criteria" item="criterion" >
|
||||
<choose >
|
||||
<when test="criterion.noValue" >
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue" >
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue" >
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue" >
|
||||
and ${criterion.condition}
|
||||
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List" >
|
||||
user_id, system_id
|
||||
</sql>
|
||||
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.upms.dao.model.UpmsUserExample" >
|
||||
select
|
||||
<if test="distinct" >
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_user
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null" >
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
<if test="limit != null" >
|
||||
<if test="offset != null" >
|
||||
limit ${offset}, ${limit}
|
||||
</if>
|
||||
<if test="offset == null" >
|
||||
limit ${limit}
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_user
|
||||
where user_id = #{userId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
||||
delete from upms_user
|
||||
where user_id = #{userId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.zheng.upms.dao.model.UpmsUserExample" >
|
||||
delete from upms_user
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.zheng.upms.dao.model.UpmsUser" >
|
||||
<selectKey resultType="java.lang.Integer" keyProperty="userId" order="AFTER" >
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into upms_user (system_id)
|
||||
values (#{systemId,jdbcType=INTEGER})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.zheng.upms.dao.model.UpmsUser" >
|
||||
<selectKey resultType="java.lang.Integer" keyProperty="userId" order="AFTER" >
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into upms_user
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="systemId != null" >
|
||||
system_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="systemId != null" >
|
||||
#{systemId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.zheng.upms.dao.model.UpmsUserExample" resultType="java.lang.Integer" >
|
||||
select count(*) from upms_user
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map" >
|
||||
update upms_user
|
||||
<set >
|
||||
<if test="record.userId != null" >
|
||||
user_id = #{record.userId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.systemId != null" >
|
||||
system_id = #{record.systemId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map" >
|
||||
update upms_user
|
||||
set user_id = #{record.userId,jdbcType=INTEGER},
|
||||
system_id = #{record.systemId,jdbcType=INTEGER}
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.upms.dao.model.UpmsUser" >
|
||||
update upms_user
|
||||
<set >
|
||||
<if test="systemId != null" >
|
||||
system_id = #{systemId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where user_id = #{userId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.zheng.upms.dao.model.UpmsUser" >
|
||||
update upms_user
|
||||
set system_id = #{systemId,jdbcType=INTEGER}
|
||||
where user_id = #{userId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<cache />
|
||||
</mapper>
|
|
@ -0,0 +1,30 @@
|
|||
package com.zheng.upms.dao.mapper;
|
||||
|
||||
import com.zheng.upms.dao.model.UpmsUserPermission;
|
||||
import com.zheng.upms.dao.model.UpmsUserPermissionExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UpmsUserPermissionMapper {
|
||||
int countByExample(UpmsUserPermissionExample example);
|
||||
|
||||
int deleteByExample(UpmsUserPermissionExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer userPermissionId);
|
||||
|
||||
int insert(UpmsUserPermission record);
|
||||
|
||||
int insertSelective(UpmsUserPermission record);
|
||||
|
||||
List<UpmsUserPermission> selectByExample(UpmsUserPermissionExample example);
|
||||
|
||||
UpmsUserPermission selectByPrimaryKey(Integer userPermissionId);
|
||||
|
||||
int updateByExampleSelective(@Param("record") UpmsUserPermission record, @Param("example") UpmsUserPermissionExample example);
|
||||
|
||||
int updateByExample(@Param("record") UpmsUserPermission record, @Param("example") UpmsUserPermissionExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(UpmsUserPermission record);
|
||||
|
||||
int updateByPrimaryKey(UpmsUserPermission record);
|
||||
}
|
|
@ -0,0 +1,190 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.zheng.upms.dao.mapper.UpmsUserPermissionMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.zheng.upms.dao.model.UpmsUserPermission" >
|
||||
<id column="user_permission_id" property="userPermissionId" jdbcType="INTEGER" />
|
||||
<result column="user_id" property="userId" jdbcType="INTEGER" />
|
||||
<result column="permission_id" property="permissionId" jdbcType="INTEGER" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause" >
|
||||
<where >
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or" >
|
||||
<if test="criteria.valid" >
|
||||
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||
<foreach collection="criteria.criteria" item="criterion" >
|
||||
<choose >
|
||||
<when test="criterion.noValue" >
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue" >
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue" >
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue" >
|
||||
and ${criterion.condition}
|
||||
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause" >
|
||||
<where >
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
|
||||
<if test="criteria.valid" >
|
||||
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||
<foreach collection="criteria.criteria" item="criterion" >
|
||||
<choose >
|
||||
<when test="criterion.noValue" >
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue" >
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue" >
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue" >
|
||||
and ${criterion.condition}
|
||||
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List" >
|
||||
user_permission_id, user_id, permission_id
|
||||
</sql>
|
||||
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.upms.dao.model.UpmsUserPermissionExample" >
|
||||
select
|
||||
<if test="distinct" >
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_user_permission
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null" >
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
<if test="limit != null" >
|
||||
<if test="offset != null" >
|
||||
limit ${offset}, ${limit}
|
||||
</if>
|
||||
<if test="offset == null" >
|
||||
limit ${limit}
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_user_permission
|
||||
where user_permission_id = #{userPermissionId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
||||
delete from upms_user_permission
|
||||
where user_permission_id = #{userPermissionId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.zheng.upms.dao.model.UpmsUserPermissionExample" >
|
||||
delete from upms_user_permission
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.zheng.upms.dao.model.UpmsUserPermission" >
|
||||
insert into upms_user_permission (user_permission_id, user_id, permission_id
|
||||
)
|
||||
values (#{userPermissionId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{permissionId,jdbcType=INTEGER}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.zheng.upms.dao.model.UpmsUserPermission" >
|
||||
insert into upms_user_permission
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="userPermissionId != null" >
|
||||
user_permission_id,
|
||||
</if>
|
||||
<if test="userId != null" >
|
||||
user_id,
|
||||
</if>
|
||||
<if test="permissionId != null" >
|
||||
permission_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="userPermissionId != null" >
|
||||
#{userPermissionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null" >
|
||||
#{userId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="permissionId != null" >
|
||||
#{permissionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.zheng.upms.dao.model.UpmsUserPermissionExample" resultType="java.lang.Integer" >
|
||||
select count(*) from upms_user_permission
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map" >
|
||||
update upms_user_permission
|
||||
<set >
|
||||
<if test="record.userPermissionId != null" >
|
||||
user_permission_id = #{record.userPermissionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.userId != null" >
|
||||
user_id = #{record.userId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.permissionId != null" >
|
||||
permission_id = #{record.permissionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map" >
|
||||
update upms_user_permission
|
||||
set user_permission_id = #{record.userPermissionId,jdbcType=INTEGER},
|
||||
user_id = #{record.userId,jdbcType=INTEGER},
|
||||
permission_id = #{record.permissionId,jdbcType=INTEGER}
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.upms.dao.model.UpmsUserPermission" >
|
||||
update upms_user_permission
|
||||
<set >
|
||||
<if test="userId != null" >
|
||||
user_id = #{userId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="permissionId != null" >
|
||||
permission_id = #{permissionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where user_permission_id = #{userPermissionId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.zheng.upms.dao.model.UpmsUserPermission" >
|
||||
update upms_user_permission
|
||||
set user_id = #{userId,jdbcType=INTEGER},
|
||||
permission_id = #{permissionId,jdbcType=INTEGER}
|
||||
where user_permission_id = #{userPermissionId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<cache />
|
||||
</mapper>
|
|
@ -0,0 +1,30 @@
|
|||
package com.zheng.upms.dao.mapper;
|
||||
|
||||
import com.zheng.upms.dao.model.UpmsUserRole;
|
||||
import com.zheng.upms.dao.model.UpmsUserRoleExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UpmsUserRoleMapper {
|
||||
int countByExample(UpmsUserRoleExample example);
|
||||
|
||||
int deleteByExample(UpmsUserRoleExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer userRoleId);
|
||||
|
||||
int insert(UpmsUserRole record);
|
||||
|
||||
int insertSelective(UpmsUserRole record);
|
||||
|
||||
List<UpmsUserRole> selectByExample(UpmsUserRoleExample example);
|
||||
|
||||
UpmsUserRole selectByPrimaryKey(Integer userRoleId);
|
||||
|
||||
int updateByExampleSelective(@Param("record") UpmsUserRole record, @Param("example") UpmsUserRoleExample example);
|
||||
|
||||
int updateByExample(@Param("record") UpmsUserRole record, @Param("example") UpmsUserRoleExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(UpmsUserRole record);
|
||||
|
||||
int updateByPrimaryKey(UpmsUserRole record);
|
||||
}
|
|
@ -0,0 +1,205 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.zheng.upms.dao.mapper.UpmsUserRoleMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.zheng.upms.dao.model.UpmsUserRole" >
|
||||
<id column="user_role_id" property="userRoleId" jdbcType="INTEGER" />
|
||||
<result column="user_id" property="userId" jdbcType="INTEGER" />
|
||||
<result column="role_id" property="roleId" jdbcType="INTEGER" />
|
||||
<result column="role" property="role" jdbcType="INTEGER" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause" >
|
||||
<where >
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or" >
|
||||
<if test="criteria.valid" >
|
||||
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||
<foreach collection="criteria.criteria" item="criterion" >
|
||||
<choose >
|
||||
<when test="criterion.noValue" >
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue" >
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue" >
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue" >
|
||||
and ${criterion.condition}
|
||||
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause" >
|
||||
<where >
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
|
||||
<if test="criteria.valid" >
|
||||
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||
<foreach collection="criteria.criteria" item="criterion" >
|
||||
<choose >
|
||||
<when test="criterion.noValue" >
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue" >
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue" >
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue" >
|
||||
and ${criterion.condition}
|
||||
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List" >
|
||||
user_role_id, user_id, role_id, role
|
||||
</sql>
|
||||
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.upms.dao.model.UpmsUserRoleExample" >
|
||||
select
|
||||
<if test="distinct" >
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_user_role
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null" >
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
<if test="limit != null" >
|
||||
<if test="offset != null" >
|
||||
limit ${offset}, ${limit}
|
||||
</if>
|
||||
<if test="offset == null" >
|
||||
limit ${limit}
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from upms_user_role
|
||||
where user_role_id = #{userRoleId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
||||
delete from upms_user_role
|
||||
where user_role_id = #{userRoleId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.zheng.upms.dao.model.UpmsUserRoleExample" >
|
||||
delete from upms_user_role
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.zheng.upms.dao.model.UpmsUserRole" >
|
||||
insert into upms_user_role (user_role_id, user_id, role_id,
|
||||
role)
|
||||
values (#{userRoleId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{roleId,jdbcType=INTEGER},
|
||||
#{role,jdbcType=INTEGER})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.zheng.upms.dao.model.UpmsUserRole" >
|
||||
insert into upms_user_role
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="userRoleId != null" >
|
||||
user_role_id,
|
||||
</if>
|
||||
<if test="userId != null" >
|
||||
user_id,
|
||||
</if>
|
||||
<if test="roleId != null" >
|
||||
role_id,
|
||||
</if>
|
||||
<if test="role != null" >
|
||||
role,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="userRoleId != null" >
|
||||
#{userRoleId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null" >
|
||||
#{userId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="roleId != null" >
|
||||
#{roleId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="role != null" >
|
||||
#{role,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.zheng.upms.dao.model.UpmsUserRoleExample" resultType="java.lang.Integer" >
|
||||
select count(*) from upms_user_role
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map" >
|
||||
update upms_user_role
|
||||
<set >
|
||||
<if test="record.userRoleId != null" >
|
||||
user_role_id = #{record.userRoleId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.userId != null" >
|
||||
user_id = #{record.userId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.roleId != null" >
|
||||
role_id = #{record.roleId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.role != null" >
|
||||
role = #{record.role,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map" >
|
||||
update upms_user_role
|
||||
set user_role_id = #{record.userRoleId,jdbcType=INTEGER},
|
||||
user_id = #{record.userId,jdbcType=INTEGER},
|
||||
role_id = #{record.roleId,jdbcType=INTEGER},
|
||||
role = #{record.role,jdbcType=INTEGER}
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.upms.dao.model.UpmsUserRole" >
|
||||
update upms_user_role
|
||||
<set >
|
||||
<if test="userId != null" >
|
||||
user_id = #{userId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="roleId != null" >
|
||||
role_id = #{roleId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="role != null" >
|
||||
role = #{role,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where user_role_id = #{userRoleId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.zheng.upms.dao.model.UpmsUserRole" >
|
||||
update upms_user_role
|
||||
set user_id = #{userId,jdbcType=INTEGER},
|
||||
role_id = #{roleId,jdbcType=INTEGER},
|
||||
role = #{role,jdbcType=INTEGER}
|
||||
where user_role_id = #{userRoleId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<cache />
|
||||
</mapper>
|
|
@ -0,0 +1,90 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class UpmsOrganization implements Serializable {
|
||||
private Integer organizationId;
|
||||
|
||||
private Integer systemId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String description;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getOrganizationId() {
|
||||
return organizationId;
|
||||
}
|
||||
|
||||
public void setOrganizationId(Integer organizationId) {
|
||||
this.organizationId = organizationId;
|
||||
}
|
||||
|
||||
public Integer getSystemId() {
|
||||
return systemId;
|
||||
}
|
||||
|
||||
public void setSystemId(Integer systemId) {
|
||||
this.systemId = systemId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", organizationId=").append(organizationId);
|
||||
sb.append(", systemId=").append(systemId);
|
||||
sb.append(", name=").append(name);
|
||||
sb.append(", description=").append(description);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
UpmsOrganization other = (UpmsOrganization) that;
|
||||
return (this.getOrganizationId() == null ? other.getOrganizationId() == null : this.getOrganizationId().equals(other.getOrganizationId()))
|
||||
&& (this.getSystemId() == null ? other.getSystemId() == null : this.getSystemId().equals(other.getSystemId()))
|
||||
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
||||
&& (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getOrganizationId() == null) ? 0 : getOrganizationId().hashCode());
|
||||
result = prime * result + ((getSystemId() == null) ? 0 : getSystemId().hashCode());
|
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
||||
result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
|
||||
return result;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,483 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UpmsOrganizationExample implements Serializable {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer limit;
|
||||
|
||||
private Integer offset;
|
||||
|
||||
public UpmsOrganizationExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
public void setLimit(Integer limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public Integer getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setOffset(Integer offset) {
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
public Integer getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria implements Serializable {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdIsNull() {
|
||||
addCriterion("organization_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdIsNotNull() {
|
||||
addCriterion("organization_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdEqualTo(Integer value) {
|
||||
addCriterion("organization_id =", value, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdNotEqualTo(Integer value) {
|
||||
addCriterion("organization_id <>", value, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdGreaterThan(Integer value) {
|
||||
addCriterion("organization_id >", value, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("organization_id >=", value, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdLessThan(Integer value) {
|
||||
addCriterion("organization_id <", value, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("organization_id <=", value, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdIn(List<Integer> values) {
|
||||
addCriterion("organization_id in", values, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdNotIn(List<Integer> values) {
|
||||
addCriterion("organization_id not in", values, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("organization_id between", value1, value2, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("organization_id not between", value1, value2, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdIsNull() {
|
||||
addCriterion("system_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdIsNotNull() {
|
||||
addCriterion("system_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdEqualTo(Integer value) {
|
||||
addCriterion("system_id =", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdNotEqualTo(Integer value) {
|
||||
addCriterion("system_id <>", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdGreaterThan(Integer value) {
|
||||
addCriterion("system_id >", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("system_id >=", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdLessThan(Integer value) {
|
||||
addCriterion("system_id <", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("system_id <=", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdIn(List<Integer> values) {
|
||||
addCriterion("system_id in", values, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdNotIn(List<Integer> values) {
|
||||
addCriterion("system_id not in", values, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("system_id between", value1, value2, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("system_id not between", value1, value2, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIsNull() {
|
||||
addCriterion("description is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIsNotNull() {
|
||||
addCriterion("description is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionEqualTo(String value) {
|
||||
addCriterion("description =", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotEqualTo(String value) {
|
||||
addCriterion("description <>", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionGreaterThan(String value) {
|
||||
addCriterion("description >", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("description >=", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLessThan(String value) {
|
||||
addCriterion("description <", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLessThanOrEqualTo(String value) {
|
||||
addCriterion("description <=", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLike(String value) {
|
||||
addCriterion("description like", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotLike(String value) {
|
||||
addCriterion("description not like", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIn(List<String> values) {
|
||||
addCriterion("description in", values, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotIn(List<String> values) {
|
||||
addCriterion("description not in", values, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionBetween(String value1, String value2) {
|
||||
addCriterion("description between", value1, value2, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotBetween(String value1, String value2) {
|
||||
addCriterion("description not between", value1, value2, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria implements Serializable {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion implements Serializable {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class UpmsPermission implements Serializable {
|
||||
private Integer userOrganizationId;
|
||||
|
||||
private Integer userId;
|
||||
|
||||
private Integer organizationId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getUserOrganizationId() {
|
||||
return userOrganizationId;
|
||||
}
|
||||
|
||||
public void setUserOrganizationId(Integer userOrganizationId) {
|
||||
this.userOrganizationId = userOrganizationId;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getOrganizationId() {
|
||||
return organizationId;
|
||||
}
|
||||
|
||||
public void setOrganizationId(Integer organizationId) {
|
||||
this.organizationId = organizationId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", userOrganizationId=").append(userOrganizationId);
|
||||
sb.append(", userId=").append(userId);
|
||||
sb.append(", organizationId=").append(organizationId);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
UpmsPermission other = (UpmsPermission) that;
|
||||
return (this.getUserOrganizationId() == null ? other.getUserOrganizationId() == null : this.getUserOrganizationId().equals(other.getUserOrganizationId()))
|
||||
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
|
||||
&& (this.getOrganizationId() == null ? other.getOrganizationId() == null : this.getOrganizationId().equals(other.getOrganizationId()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getUserOrganizationId() == null) ? 0 : getUserOrganizationId().hashCode());
|
||||
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
|
||||
result = prime * result + ((getOrganizationId() == null) ? 0 : getOrganizationId().hashCode());
|
||||
return result;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,403 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UpmsPermissionExample implements Serializable {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer limit;
|
||||
|
||||
private Integer offset;
|
||||
|
||||
public UpmsPermissionExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
public void setLimit(Integer limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public Integer getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setOffset(Integer offset) {
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
public Integer getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria implements Serializable {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andUserOrganizationIdIsNull() {
|
||||
addCriterion("user_organization_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserOrganizationIdIsNotNull() {
|
||||
addCriterion("user_organization_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserOrganizationIdEqualTo(Integer value) {
|
||||
addCriterion("user_organization_id =", value, "userOrganizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserOrganizationIdNotEqualTo(Integer value) {
|
||||
addCriterion("user_organization_id <>", value, "userOrganizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserOrganizationIdGreaterThan(Integer value) {
|
||||
addCriterion("user_organization_id >", value, "userOrganizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserOrganizationIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_organization_id >=", value, "userOrganizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserOrganizationIdLessThan(Integer value) {
|
||||
addCriterion("user_organization_id <", value, "userOrganizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserOrganizationIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_organization_id <=", value, "userOrganizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserOrganizationIdIn(List<Integer> values) {
|
||||
addCriterion("user_organization_id in", values, "userOrganizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserOrganizationIdNotIn(List<Integer> values) {
|
||||
addCriterion("user_organization_id not in", values, "userOrganizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserOrganizationIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_organization_id between", value1, value2, "userOrganizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserOrganizationIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_organization_id not between", value1, value2, "userOrganizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNull() {
|
||||
addCriterion("user_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNotNull() {
|
||||
addCriterion("user_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdEqualTo(Integer value) {
|
||||
addCriterion("user_id =", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotEqualTo(Integer value) {
|
||||
addCriterion("user_id <>", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThan(Integer value) {
|
||||
addCriterion("user_id >", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_id >=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThan(Integer value) {
|
||||
addCriterion("user_id <", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_id <=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIn(List<Integer> values) {
|
||||
addCriterion("user_id in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotIn(List<Integer> values) {
|
||||
addCriterion("user_id not in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_id between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_id not between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdIsNull() {
|
||||
addCriterion("organization_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdIsNotNull() {
|
||||
addCriterion("organization_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdEqualTo(Integer value) {
|
||||
addCriterion("organization_id =", value, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdNotEqualTo(Integer value) {
|
||||
addCriterion("organization_id <>", value, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdGreaterThan(Integer value) {
|
||||
addCriterion("organization_id >", value, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("organization_id >=", value, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdLessThan(Integer value) {
|
||||
addCriterion("organization_id <", value, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("organization_id <=", value, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdIn(List<Integer> values) {
|
||||
addCriterion("organization_id in", values, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdNotIn(List<Integer> values) {
|
||||
addCriterion("organization_id not in", values, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("organization_id between", value1, value2, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganizationIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("organization_id not between", value1, value2, "organizationId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria implements Serializable {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion implements Serializable {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,129 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class UpmsRole implements Serializable {
|
||||
private Integer roleId;
|
||||
|
||||
private Integer systemId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String description;
|
||||
|
||||
private Byte status;
|
||||
|
||||
private Long ctime;
|
||||
|
||||
private Long orders;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Integer roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Integer getSystemId() {
|
||||
return systemId;
|
||||
}
|
||||
|
||||
public void setSystemId(Integer systemId) {
|
||||
this.systemId = systemId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Byte getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Byte status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Long getCtime() {
|
||||
return ctime;
|
||||
}
|
||||
|
||||
public void setCtime(Long ctime) {
|
||||
this.ctime = ctime;
|
||||
}
|
||||
|
||||
public Long getOrders() {
|
||||
return orders;
|
||||
}
|
||||
|
||||
public void setOrders(Long orders) {
|
||||
this.orders = orders;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", roleId=").append(roleId);
|
||||
sb.append(", systemId=").append(systemId);
|
||||
sb.append(", name=").append(name);
|
||||
sb.append(", description=").append(description);
|
||||
sb.append(", status=").append(status);
|
||||
sb.append(", ctime=").append(ctime);
|
||||
sb.append(", orders=").append(orders);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
UpmsRole other = (UpmsRole) that;
|
||||
return (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId()))
|
||||
&& (this.getSystemId() == null ? other.getSystemId() == null : this.getSystemId().equals(other.getSystemId()))
|
||||
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
||||
&& (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
|
||||
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
|
||||
&& (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()))
|
||||
&& (this.getOrders() == null ? other.getOrders() == null : this.getOrders().equals(other.getOrders()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode());
|
||||
result = prime * result + ((getSystemId() == null) ? 0 : getSystemId().hashCode());
|
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
||||
result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
|
||||
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
||||
result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
|
||||
result = prime * result + ((getOrders() == null) ? 0 : getOrders().hashCode());
|
||||
return result;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,663 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UpmsRoleExample implements Serializable {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer limit;
|
||||
|
||||
private Integer offset;
|
||||
|
||||
public UpmsRoleExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
public void setLimit(Integer limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public Integer getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setOffset(Integer offset) {
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
public Integer getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria implements Serializable {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andRoleIdIsNull() {
|
||||
addCriterion("role_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdIsNotNull() {
|
||||
addCriterion("role_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdEqualTo(Integer value) {
|
||||
addCriterion("role_id =", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdNotEqualTo(Integer value) {
|
||||
addCriterion("role_id <>", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdGreaterThan(Integer value) {
|
||||
addCriterion("role_id >", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("role_id >=", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdLessThan(Integer value) {
|
||||
addCriterion("role_id <", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("role_id <=", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdIn(List<Integer> values) {
|
||||
addCriterion("role_id in", values, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdNotIn(List<Integer> values) {
|
||||
addCriterion("role_id not in", values, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("role_id between", value1, value2, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("role_id not between", value1, value2, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdIsNull() {
|
||||
addCriterion("system_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdIsNotNull() {
|
||||
addCriterion("system_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdEqualTo(Integer value) {
|
||||
addCriterion("system_id =", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdNotEqualTo(Integer value) {
|
||||
addCriterion("system_id <>", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdGreaterThan(Integer value) {
|
||||
addCriterion("system_id >", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("system_id >=", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdLessThan(Integer value) {
|
||||
addCriterion("system_id <", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("system_id <=", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdIn(List<Integer> values) {
|
||||
addCriterion("system_id in", values, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdNotIn(List<Integer> values) {
|
||||
addCriterion("system_id not in", values, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("system_id between", value1, value2, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("system_id not between", value1, value2, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIsNull() {
|
||||
addCriterion("description is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIsNotNull() {
|
||||
addCriterion("description is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionEqualTo(String value) {
|
||||
addCriterion("description =", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotEqualTo(String value) {
|
||||
addCriterion("description <>", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionGreaterThan(String value) {
|
||||
addCriterion("description >", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("description >=", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLessThan(String value) {
|
||||
addCriterion("description <", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLessThanOrEqualTo(String value) {
|
||||
addCriterion("description <=", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLike(String value) {
|
||||
addCriterion("description like", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotLike(String value) {
|
||||
addCriterion("description not like", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIn(List<String> values) {
|
||||
addCriterion("description in", values, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotIn(List<String> values) {
|
||||
addCriterion("description not in", values, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionBetween(String value1, String value2) {
|
||||
addCriterion("description between", value1, value2, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotBetween(String value1, String value2) {
|
||||
addCriterion("description not between", value1, value2, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNull() {
|
||||
addCriterion("status is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNotNull() {
|
||||
addCriterion("status is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusEqualTo(Byte value) {
|
||||
addCriterion("status =", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotEqualTo(Byte value) {
|
||||
addCriterion("status <>", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThan(Byte value) {
|
||||
addCriterion("status >", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
|
||||
addCriterion("status >=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThan(Byte value) {
|
||||
addCriterion("status <", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThanOrEqualTo(Byte value) {
|
||||
addCriterion("status <=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIn(List<Byte> values) {
|
||||
addCriterion("status in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotIn(List<Byte> values) {
|
||||
addCriterion("status not in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusBetween(Byte value1, Byte value2) {
|
||||
addCriterion("status between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
|
||||
addCriterion("status not between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCtimeIsNull() {
|
||||
addCriterion("ctime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCtimeIsNotNull() {
|
||||
addCriterion("ctime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCtimeEqualTo(Long value) {
|
||||
addCriterion("ctime =", value, "ctime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCtimeNotEqualTo(Long value) {
|
||||
addCriterion("ctime <>", value, "ctime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCtimeGreaterThan(Long value) {
|
||||
addCriterion("ctime >", value, "ctime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCtimeGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("ctime >=", value, "ctime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCtimeLessThan(Long value) {
|
||||
addCriterion("ctime <", value, "ctime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCtimeLessThanOrEqualTo(Long value) {
|
||||
addCriterion("ctime <=", value, "ctime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCtimeIn(List<Long> values) {
|
||||
addCriterion("ctime in", values, "ctime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCtimeNotIn(List<Long> values) {
|
||||
addCriterion("ctime not in", values, "ctime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCtimeBetween(Long value1, Long value2) {
|
||||
addCriterion("ctime between", value1, value2, "ctime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCtimeNotBetween(Long value1, Long value2) {
|
||||
addCriterion("ctime not between", value1, value2, "ctime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrdersIsNull() {
|
||||
addCriterion("orders is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrdersIsNotNull() {
|
||||
addCriterion("orders is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrdersEqualTo(Long value) {
|
||||
addCriterion("orders =", value, "orders");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrdersNotEqualTo(Long value) {
|
||||
addCriterion("orders <>", value, "orders");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrdersGreaterThan(Long value) {
|
||||
addCriterion("orders >", value, "orders");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrdersGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("orders >=", value, "orders");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrdersLessThan(Long value) {
|
||||
addCriterion("orders <", value, "orders");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrdersLessThanOrEqualTo(Long value) {
|
||||
addCriterion("orders <=", value, "orders");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrdersIn(List<Long> values) {
|
||||
addCriterion("orders in", values, "orders");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrdersNotIn(List<Long> values) {
|
||||
addCriterion("orders not in", values, "orders");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrdersBetween(Long value1, Long value2) {
|
||||
addCriterion("orders between", value1, value2, "orders");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrdersNotBetween(Long value1, Long value2) {
|
||||
addCriterion("orders not between", value1, value2, "orders");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria implements Serializable {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion implements Serializable {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class UpmsRolePermission implements Serializable {
|
||||
private Integer rolePermissionId;
|
||||
|
||||
private Integer roleId;
|
||||
|
||||
private Integer permissionId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getRolePermissionId() {
|
||||
return rolePermissionId;
|
||||
}
|
||||
|
||||
public void setRolePermissionId(Integer rolePermissionId) {
|
||||
this.rolePermissionId = rolePermissionId;
|
||||
}
|
||||
|
||||
public Integer getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Integer roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Integer getPermissionId() {
|
||||
return permissionId;
|
||||
}
|
||||
|
||||
public void setPermissionId(Integer permissionId) {
|
||||
this.permissionId = permissionId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", rolePermissionId=").append(rolePermissionId);
|
||||
sb.append(", roleId=").append(roleId);
|
||||
sb.append(", permissionId=").append(permissionId);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
UpmsRolePermission other = (UpmsRolePermission) that;
|
||||
return (this.getRolePermissionId() == null ? other.getRolePermissionId() == null : this.getRolePermissionId().equals(other.getRolePermissionId()))
|
||||
&& (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId()))
|
||||
&& (this.getPermissionId() == null ? other.getPermissionId() == null : this.getPermissionId().equals(other.getPermissionId()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getRolePermissionId() == null) ? 0 : getRolePermissionId().hashCode());
|
||||
result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode());
|
||||
result = prime * result + ((getPermissionId() == null) ? 0 : getPermissionId().hashCode());
|
||||
return result;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,403 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UpmsRolePermissionExample implements Serializable {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer limit;
|
||||
|
||||
private Integer offset;
|
||||
|
||||
public UpmsRolePermissionExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
public void setLimit(Integer limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public Integer getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setOffset(Integer offset) {
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
public Integer getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria implements Serializable {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andRolePermissionIdIsNull() {
|
||||
addCriterion("role_permission_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRolePermissionIdIsNotNull() {
|
||||
addCriterion("role_permission_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRolePermissionIdEqualTo(Integer value) {
|
||||
addCriterion("role_permission_id =", value, "rolePermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRolePermissionIdNotEqualTo(Integer value) {
|
||||
addCriterion("role_permission_id <>", value, "rolePermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRolePermissionIdGreaterThan(Integer value) {
|
||||
addCriterion("role_permission_id >", value, "rolePermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRolePermissionIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("role_permission_id >=", value, "rolePermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRolePermissionIdLessThan(Integer value) {
|
||||
addCriterion("role_permission_id <", value, "rolePermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRolePermissionIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("role_permission_id <=", value, "rolePermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRolePermissionIdIn(List<Integer> values) {
|
||||
addCriterion("role_permission_id in", values, "rolePermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRolePermissionIdNotIn(List<Integer> values) {
|
||||
addCriterion("role_permission_id not in", values, "rolePermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRolePermissionIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("role_permission_id between", value1, value2, "rolePermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRolePermissionIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("role_permission_id not between", value1, value2, "rolePermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdIsNull() {
|
||||
addCriterion("role_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdIsNotNull() {
|
||||
addCriterion("role_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdEqualTo(Integer value) {
|
||||
addCriterion("role_id =", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdNotEqualTo(Integer value) {
|
||||
addCriterion("role_id <>", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdGreaterThan(Integer value) {
|
||||
addCriterion("role_id >", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("role_id >=", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdLessThan(Integer value) {
|
||||
addCriterion("role_id <", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("role_id <=", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdIn(List<Integer> values) {
|
||||
addCriterion("role_id in", values, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdNotIn(List<Integer> values) {
|
||||
addCriterion("role_id not in", values, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("role_id between", value1, value2, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("role_id not between", value1, value2, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdIsNull() {
|
||||
addCriterion("permission_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdIsNotNull() {
|
||||
addCriterion("permission_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdEqualTo(Integer value) {
|
||||
addCriterion("permission_id =", value, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdNotEqualTo(Integer value) {
|
||||
addCriterion("permission_id <>", value, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdGreaterThan(Integer value) {
|
||||
addCriterion("permission_id >", value, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("permission_id >=", value, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdLessThan(Integer value) {
|
||||
addCriterion("permission_id <", value, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("permission_id <=", value, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdIn(List<Integer> values) {
|
||||
addCriterion("permission_id in", values, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdNotIn(List<Integer> values) {
|
||||
addCriterion("permission_id not in", values, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("permission_id between", value1, value2, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("permission_id not between", value1, value2, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria implements Serializable {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion implements Serializable {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class UpmsUser implements Serializable {
|
||||
private Integer userId;
|
||||
|
||||
private Integer systemId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getSystemId() {
|
||||
return systemId;
|
||||
}
|
||||
|
||||
public void setSystemId(Integer systemId) {
|
||||
this.systemId = systemId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", userId=").append(userId);
|
||||
sb.append(", systemId=").append(systemId);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
UpmsUser other = (UpmsUser) that;
|
||||
return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
|
||||
&& (this.getSystemId() == null ? other.getSystemId() == null : this.getSystemId().equals(other.getSystemId()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
|
||||
result = prime * result + ((getSystemId() == null) ? 0 : getSystemId().hashCode());
|
||||
return result;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,343 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UpmsUserExample implements Serializable {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer limit;
|
||||
|
||||
private Integer offset;
|
||||
|
||||
public UpmsUserExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
public void setLimit(Integer limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public Integer getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setOffset(Integer offset) {
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
public Integer getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria implements Serializable {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNull() {
|
||||
addCriterion("user_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNotNull() {
|
||||
addCriterion("user_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdEqualTo(Integer value) {
|
||||
addCriterion("user_id =", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotEqualTo(Integer value) {
|
||||
addCriterion("user_id <>", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThan(Integer value) {
|
||||
addCriterion("user_id >", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_id >=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThan(Integer value) {
|
||||
addCriterion("user_id <", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_id <=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIn(List<Integer> values) {
|
||||
addCriterion("user_id in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotIn(List<Integer> values) {
|
||||
addCriterion("user_id not in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_id between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_id not between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdIsNull() {
|
||||
addCriterion("system_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdIsNotNull() {
|
||||
addCriterion("system_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdEqualTo(Integer value) {
|
||||
addCriterion("system_id =", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdNotEqualTo(Integer value) {
|
||||
addCriterion("system_id <>", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdGreaterThan(Integer value) {
|
||||
addCriterion("system_id >", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("system_id >=", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdLessThan(Integer value) {
|
||||
addCriterion("system_id <", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("system_id <=", value, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdIn(List<Integer> values) {
|
||||
addCriterion("system_id in", values, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdNotIn(List<Integer> values) {
|
||||
addCriterion("system_id not in", values, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("system_id between", value1, value2, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSystemIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("system_id not between", value1, value2, "systemId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria implements Serializable {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion implements Serializable {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class UpmsUserPermission implements Serializable {
|
||||
private Integer userPermissionId;
|
||||
|
||||
private Integer userId;
|
||||
|
||||
private Integer permissionId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getUserPermissionId() {
|
||||
return userPermissionId;
|
||||
}
|
||||
|
||||
public void setUserPermissionId(Integer userPermissionId) {
|
||||
this.userPermissionId = userPermissionId;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getPermissionId() {
|
||||
return permissionId;
|
||||
}
|
||||
|
||||
public void setPermissionId(Integer permissionId) {
|
||||
this.permissionId = permissionId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", userPermissionId=").append(userPermissionId);
|
||||
sb.append(", userId=").append(userId);
|
||||
sb.append(", permissionId=").append(permissionId);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
UpmsUserPermission other = (UpmsUserPermission) that;
|
||||
return (this.getUserPermissionId() == null ? other.getUserPermissionId() == null : this.getUserPermissionId().equals(other.getUserPermissionId()))
|
||||
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
|
||||
&& (this.getPermissionId() == null ? other.getPermissionId() == null : this.getPermissionId().equals(other.getPermissionId()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getUserPermissionId() == null) ? 0 : getUserPermissionId().hashCode());
|
||||
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
|
||||
result = prime * result + ((getPermissionId() == null) ? 0 : getPermissionId().hashCode());
|
||||
return result;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,403 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UpmsUserPermissionExample implements Serializable {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer limit;
|
||||
|
||||
private Integer offset;
|
||||
|
||||
public UpmsUserPermissionExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
public void setLimit(Integer limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public Integer getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setOffset(Integer offset) {
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
public Integer getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria implements Serializable {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andUserPermissionIdIsNull() {
|
||||
addCriterion("user_permission_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserPermissionIdIsNotNull() {
|
||||
addCriterion("user_permission_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserPermissionIdEqualTo(Integer value) {
|
||||
addCriterion("user_permission_id =", value, "userPermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserPermissionIdNotEqualTo(Integer value) {
|
||||
addCriterion("user_permission_id <>", value, "userPermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserPermissionIdGreaterThan(Integer value) {
|
||||
addCriterion("user_permission_id >", value, "userPermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserPermissionIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_permission_id >=", value, "userPermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserPermissionIdLessThan(Integer value) {
|
||||
addCriterion("user_permission_id <", value, "userPermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserPermissionIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_permission_id <=", value, "userPermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserPermissionIdIn(List<Integer> values) {
|
||||
addCriterion("user_permission_id in", values, "userPermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserPermissionIdNotIn(List<Integer> values) {
|
||||
addCriterion("user_permission_id not in", values, "userPermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserPermissionIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_permission_id between", value1, value2, "userPermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserPermissionIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_permission_id not between", value1, value2, "userPermissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNull() {
|
||||
addCriterion("user_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNotNull() {
|
||||
addCriterion("user_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdEqualTo(Integer value) {
|
||||
addCriterion("user_id =", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotEqualTo(Integer value) {
|
||||
addCriterion("user_id <>", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThan(Integer value) {
|
||||
addCriterion("user_id >", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_id >=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThan(Integer value) {
|
||||
addCriterion("user_id <", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_id <=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIn(List<Integer> values) {
|
||||
addCriterion("user_id in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotIn(List<Integer> values) {
|
||||
addCriterion("user_id not in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_id between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_id not between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdIsNull() {
|
||||
addCriterion("permission_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdIsNotNull() {
|
||||
addCriterion("permission_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdEqualTo(Integer value) {
|
||||
addCriterion("permission_id =", value, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdNotEqualTo(Integer value) {
|
||||
addCriterion("permission_id <>", value, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdGreaterThan(Integer value) {
|
||||
addCriterion("permission_id >", value, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("permission_id >=", value, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdLessThan(Integer value) {
|
||||
addCriterion("permission_id <", value, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("permission_id <=", value, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdIn(List<Integer> values) {
|
||||
addCriterion("permission_id in", values, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdNotIn(List<Integer> values) {
|
||||
addCriterion("permission_id not in", values, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("permission_id between", value1, value2, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("permission_id not between", value1, value2, "permissionId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria implements Serializable {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion implements Serializable {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class UpmsUserRole implements Serializable {
|
||||
private Integer userRoleId;
|
||||
|
||||
private Integer userId;
|
||||
|
||||
private Integer roleId;
|
||||
|
||||
private Integer role;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getUserRoleId() {
|
||||
return userRoleId;
|
||||
}
|
||||
|
||||
public void setUserRoleId(Integer userRoleId) {
|
||||
this.userRoleId = userRoleId;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Integer roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Integer getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(Integer role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", userRoleId=").append(userRoleId);
|
||||
sb.append(", userId=").append(userId);
|
||||
sb.append(", roleId=").append(roleId);
|
||||
sb.append(", role=").append(role);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
UpmsUserRole other = (UpmsUserRole) that;
|
||||
return (this.getUserRoleId() == null ? other.getUserRoleId() == null : this.getUserRoleId().equals(other.getUserRoleId()))
|
||||
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
|
||||
&& (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId()))
|
||||
&& (this.getRole() == null ? other.getRole() == null : this.getRole().equals(other.getRole()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getUserRoleId() == null) ? 0 : getUserRoleId().hashCode());
|
||||
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
|
||||
result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode());
|
||||
result = prime * result + ((getRole() == null) ? 0 : getRole().hashCode());
|
||||
return result;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,463 @@
|
|||
package com.zheng.upms.dao.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UpmsUserRoleExample implements Serializable {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer limit;
|
||||
|
||||
private Integer offset;
|
||||
|
||||
public UpmsUserRoleExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
public void setLimit(Integer limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public Integer getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setOffset(Integer offset) {
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
public Integer getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria implements Serializable {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andUserRoleIdIsNull() {
|
||||
addCriterion("user_role_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserRoleIdIsNotNull() {
|
||||
addCriterion("user_role_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserRoleIdEqualTo(Integer value) {
|
||||
addCriterion("user_role_id =", value, "userRoleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserRoleIdNotEqualTo(Integer value) {
|
||||
addCriterion("user_role_id <>", value, "userRoleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserRoleIdGreaterThan(Integer value) {
|
||||
addCriterion("user_role_id >", value, "userRoleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserRoleIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_role_id >=", value, "userRoleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserRoleIdLessThan(Integer value) {
|
||||
addCriterion("user_role_id <", value, "userRoleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserRoleIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_role_id <=", value, "userRoleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserRoleIdIn(List<Integer> values) {
|
||||
addCriterion("user_role_id in", values, "userRoleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserRoleIdNotIn(List<Integer> values) {
|
||||
addCriterion("user_role_id not in", values, "userRoleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserRoleIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_role_id between", value1, value2, "userRoleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserRoleIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_role_id not between", value1, value2, "userRoleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNull() {
|
||||
addCriterion("user_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNotNull() {
|
||||
addCriterion("user_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdEqualTo(Integer value) {
|
||||
addCriterion("user_id =", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotEqualTo(Integer value) {
|
||||
addCriterion("user_id <>", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThan(Integer value) {
|
||||
addCriterion("user_id >", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_id >=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThan(Integer value) {
|
||||
addCriterion("user_id <", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("user_id <=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIn(List<Integer> values) {
|
||||
addCriterion("user_id in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotIn(List<Integer> values) {
|
||||
addCriterion("user_id not in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_id between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("user_id not between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdIsNull() {
|
||||
addCriterion("role_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdIsNotNull() {
|
||||
addCriterion("role_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdEqualTo(Integer value) {
|
||||
addCriterion("role_id =", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdNotEqualTo(Integer value) {
|
||||
addCriterion("role_id <>", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdGreaterThan(Integer value) {
|
||||
addCriterion("role_id >", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("role_id >=", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdLessThan(Integer value) {
|
||||
addCriterion("role_id <", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("role_id <=", value, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdIn(List<Integer> values) {
|
||||
addCriterion("role_id in", values, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdNotIn(List<Integer> values) {
|
||||
addCriterion("role_id not in", values, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("role_id between", value1, value2, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("role_id not between", value1, value2, "roleId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIsNull() {
|
||||
addCriterion("role is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIsNotNull() {
|
||||
addCriterion("role is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleEqualTo(Integer value) {
|
||||
addCriterion("role =", value, "role");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleNotEqualTo(Integer value) {
|
||||
addCriterion("role <>", value, "role");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleGreaterThan(Integer value) {
|
||||
addCriterion("role >", value, "role");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("role >=", value, "role");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleLessThan(Integer value) {
|
||||
addCriterion("role <", value, "role");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("role <=", value, "role");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleIn(List<Integer> values) {
|
||||
addCriterion("role in", values, "role");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleNotIn(List<Integer> values) {
|
||||
addCriterion("role not in", values, "role");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleBetween(Integer value1, Integer value2) {
|
||||
addCriterion("role between", value1, value2, "role");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRoleNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("role not between", value1, value2, "role");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria implements Serializable {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion implements Serializable {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -57,5 +57,21 @@
|
|||
<table tableName="upms_system" domainObjectName="UpmsSystem">
|
||||
<generatedKey column="system_id" sqlStatement="MySql" identity="true" />
|
||||
</table>
|
||||
<table tableName="upms_organization" domainObjectName="UpmsOrganization">
|
||||
<generatedKey column="organization_id" sqlStatement="MySql" identity="true" />
|
||||
</table>
|
||||
<table tableName="upms_role" domainObjectName="UpmsRole">
|
||||
<generatedKey column="role_id" sqlStatement="MySql" identity="true" />
|
||||
</table>
|
||||
<table tableName="upms_user" domainObjectName="UpmsUser">
|
||||
<generatedKey column="user_id" sqlStatement="MySql" identity="true" />
|
||||
</table>
|
||||
<table tableName="upms_permission" domainObjectName="UpmsPermission">
|
||||
<generatedKey column="permission_id" sqlStatement="MySql" identity="true" />
|
||||
</table>
|
||||
<table tableName="upms_user_organization" domainObjectName="UpmsPermission"></table>
|
||||
<table tableName="upms_user_role" domainObjectName="UpmsUserRole"></table>
|
||||
<table tableName="upms_user_permission" domainObjectName="UpmsUserPermission"></table>
|
||||
<table tableName="upms_role_permission" domainObjectName="UpmsRolePermission"></table>
|
||||
</context>
|
||||
</generatorConfiguration>
|
Loading…
Reference in New Issue