id, pid, code, name, type, comment, status, is_valid, update_time, update_user_id,
create_time, create_user_id
and ID = #{id}
and pid = #{pid,jdbcType=VARCHAR}
and code = #{code,jdbcType=VARCHAR}
and name like CONCAT("%",#{name},"%")
and type = #{type,jdbcType=TINYINT}
and comment = #{comment,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}
and create_time = #{createTime,jdbcType=TIMESTAMP}
and create_user_id = #{createUserId,jdbcType=VARCHAR}
order by ${sorting}
limit #{offset}, #{limit}
delete from
t_sys_region
where ID = #{id}
insert into t_sys_region (id, pid, code,
name, type, comment,
status, is_valid, update_time,
update_user_id, create_time, create_user_id
)
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{comment,jdbcType=VARCHAR},
#{status,jdbcType=TINYINT}, #{isValid,jdbcType=TINYINT}, #{updateTime,jdbcType=TIMESTAMP},
#{updateUserId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=VARCHAR}
)
update t_sys_region
pid = #{pid,jdbcType=VARCHAR},
code = #{code,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
type = #{type,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},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user_id = #{createUserId,jdbcType=VARCHAR},
where id = #{id,jdbcType=VARCHAR}
delete from
t_sys_region
where
'${id}'