select info_id,
title,
organize_id,
organize_name,
picture_url,
address,
plate_name,
keyword,
publish_time,
submit_time,
details,
publish_status,
sys_ctime,
sys_utime,
create_by,
update_by,
delete_flag
from info_market_information
insert into info_market_information
info_id,
title,
organize_id,
organize_name,
picture_url,
address,
plate_name,
keyword,
publish_time,
submit_time,
details,
publish_status,
sys_ctime,
sys_utime,
create_by,
update_by,
delete_flag,
#{infoId},
#{title},
#{organizeId},
#{organizeName},
#{pictureUrl},
#{address},
#{plateName},
#{keyword},
#{publishTime},
#{submitTime},
#{details},
#{publishStatus},
#{sysCtime},
#{sysUtime},
#{createBy},
#{updateBy},
#{deleteFlag},
update info_market_information
title = #{title},
organize_id = #{organizeId},
organize_name = #{organizeName},
picture_url = #{pictureUrl},
address = #{address},
plate_name = #{plateName},
keyword = #{keyword},
publish_time = #{publishTime},
submit_time = #{submitTime},
details = #{details},
publish_status = #{publishStatus},
sys_ctime = #{sysCtime},
sys_utime = #{sysUtime},
create_by = #{createBy},
update_by = #{updateBy},
delete_flag = #{deleteFlag},
where info_id = #{infoId}
delete
from info_market_information
where info_id = #{infoId}
update info_market_information set delete_flag = 1
where info_id in
#{infoId}
insert into info_market_information(title,
organize_id,
organize_name,
picture_url,
address,
plate_name,
keyword,
publish_time,
submit_time,
details,
create_by) value
( #{title},
#{organizeId},
#{organizeName},
#{pictureUrl},
#{address},
#{plateName},
#{keyword},
#{publishTime},
#{submitTime},
#{details},
#{createBy}
)
ON DUPLICATE KEY
UPDATE
TITLE = #{title},
ORGANIZE_ID = #{organizeId},
ORGANIZE_NAME = #{organizeName},
PICTURE_URL = #{pictureUrl},
ADDRESS = #{address},
PLATE_NAME = #{plateName},
KEYWORD = #{keyword},
PUBLISH_TIME = #{publishTime},
SUBMIT_TIME = #{submitTime},
DETAILS = #{details},
CREATE_BY = #{createBy}