id, name, org_id, comment, data_range_type, status, is_valid, update_time, update_user_id
and ID = #{id}
and name like CONCAT("%",#{name},"%")
and data_range_type = #{dataRangeType,jdbcType=TINYINT}
and org_id = #{orgId,jdbcType=VARCHAR}
and status = #{status,jdbcType=TINYINT}
and is_valid = #{isValid,jdbcType=TINYINT}
and update_time = #{updateTime,jdbcType=TIMESTAMP}
and update_user_id = #{updateUserId,jdbcType=VARCHAR}
order by ${sorting}order by create_time
limit #{offset}, #{limit}
id!='1'
and ID = #{id}
and name like CONCAT("%",#{name},"%")
and data_range_type = #{dataRangeType,jdbcType=TINYINT}
and org_id = #{orgId,jdbcType=VARCHAR}
and status = #{status,jdbcType=TINYINT}
and is_valid = #{isValid,jdbcType=TINYINT}
and update_time = #{updateTime,jdbcType=TIMESTAMP}
and update_user_id = #{updateUserId,jdbcType=VARCHAR}
order by ${sorting}order by create_time
limit #{offset}, #{limit}
delete from
t_sys_role
where ID = #{id}
update t_sys_role
set is_valid=0
insert into t_sys_role (id, name, org_id, comment,
data_range_type, status, is_valid,
update_time, update_user_id,create_time, create_user_id)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR},
#{dataRangeType,jdbcType=TINYINT}, #{status,jdbcType=TINYINT}, #{isValid,jdbcType=TINYINT},
#{updateTime,jdbcType=TIMESTAMP}, #{updateUserId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=VARCHAR})
update t_sys_role
name = #{name,jdbcType=VARCHAR},
privilege = #{privilege,jdbcType=BIGINT},
org_id = #{orgId,jdbcType=VARCHAR},
data_range_type = #{dataRangeType,jdbcType=TINYINT},
comment = #{comment,jdbcType=VARCHAR},
status = #{status,jdbcType=TINYINT},
is_valid = #{isValid,jdbcType=TINYINT},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_user_id = #{updateUserId,jdbcType=VARCHAR},
where id = #{id,jdbcType=VARCHAR}
delete from
t_sys_role
where
'${id}'