select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark from system_post
AND post_code LIKE '%' || #{postCode} || '%'
AND post_name LIKE '%' || #{postName} || '%'
AND post_code like concat('%', #{postCode}, '%')
AND post_name like concat('%', #{postName}, '%')
AND status = #{status}
where post_id = #{postId}
select p.post_id from system_post p left join system_user_post up on up.post_id = p.post_id left join system_user u on u.user_id = up.user_id where u.user_id = #{userId}
select p.post_id, p.post_name, p.post_code from system_post p left join system_user_post up on up.post_id = p.post_id left join system_user u on u.user_id = up.user_id where u.user_name = #{userName}
where post_name=#{postName} limit 1
where post_code=#{postCode} limit 1
update system_post post_code = #{postCode}, post_name = #{postName}, post_sort = #{postSort}, status = #{status}, remark = #{remark}, update_by = #{updateBy}, update_time = sysdate() where post_id = #{postId}
insert into system_post( post_id, post_code, post_name, post_sort, status, remark, create_by, create_time )values( #{postId}, #{postCode}, #{postName}, #{postSort}, #{status}, #{remark}, #{createBy}, sysdate() )
delete from system_post where post_id = #{postId}
delete from system_post where post_id in #{postId}