select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark
from sys_post
delete from sys_post where post_id in
#{postId}
update sys_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 sys_post(
post_id,
post_code,
post_name,
post_sort,
status,
remark,
create_by,
create_time
)values(
#{postId},
#{postCode},
#{postName},
#{postSort},
#{status},
#{remark},
#{createBy},
sysdate()
)