pretty_id, pretty_erban_no, status, use_for, user_uid, user_erban_no, pretty_desc,
start_valid_time, end_valid_time, create_time
SELECT LAST_INSERT_ID()
insert into pretty_erban_no (pretty_erban_no, status, use_for,
user_uid, user_erban_no, pretty_desc,
start_valid_time, end_valid_time, create_time
)
values (#{prettyErbanNo,jdbcType=BIGINT}, #{status,jdbcType=TINYINT}, #{useFor,jdbcType=TINYINT},
#{userUid,jdbcType=BIGINT}, #{userErbanNo,jdbcType=BIGINT}, #{prettyDesc,jdbcType=VARCHAR},
#{startValidTime,jdbcType=TIMESTAMP}, #{endValidTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}
)
SELECT LAST_INSERT_ID()
insert into pretty_erban_no
pretty_erban_no,
status,
use_for,
user_uid,
user_erban_no,
pretty_desc,
start_valid_time,
end_valid_time,
create_time,
#{prettyErbanNo,jdbcType=BIGINT},
#{status,jdbcType=TINYINT},
#{useFor,jdbcType=TINYINT},
#{userUid,jdbcType=BIGINT},
#{userErbanNo,jdbcType=BIGINT},
#{prettyDesc,jdbcType=VARCHAR},
#{startValidTime,jdbcType=TIMESTAMP},
#{endValidTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
update pretty_erban_no
pretty_erban_no = #{prettyErbanNo,jdbcType=BIGINT},
status = #{status,jdbcType=TINYINT},
use_for = #{useFor,jdbcType=TINYINT},
user_uid = #{userUid,jdbcType=BIGINT},
user_erban_no = #{userErbanNo,jdbcType=BIGINT},
pretty_desc = #{prettyDesc,jdbcType=VARCHAR},
start_valid_time = #{startValidTime,jdbcType=TIMESTAMP},
end_valid_time = #{endValidTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
where pretty_id = #{prettyId,jdbcType=INTEGER}
update pretty_erban_no
set pretty_erban_no = #{prettyErbanNo,jdbcType=BIGINT},
status = #{status,jdbcType=TINYINT},
use_for = #{useFor,jdbcType=TINYINT},
user_uid = #{userUid,jdbcType=BIGINT},
user_erban_no = #{userErbanNo,jdbcType=BIGINT},
pretty_desc = #{prettyDesc,jdbcType=VARCHAR},
start_valid_time = #{startValidTime,jdbcType=TIMESTAMP},
end_valid_time = #{endValidTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP}
where pretty_id = #{prettyId,jdbcType=INTEGER}
delete from pretty_erban_no
where pretty_id = #{prettyId,jdbcType=INTEGER}
delete from pretty_erban_no
where pretty_erban_no = #{prettyErBanNo} and status = #{status}