select attachment_id, attachment_name, url, create_by, create_time, update_by, update_time, process_id, path, final_path from zjwjsb_attachment
insert into zjwjsb_attachment
attachment_id,
attachment_name,
url,
create_by,
create_time,
update_by,
update_time,
process_id,
path,
final_path,
#{attachmentId},
#{attachmentName},
#{url},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{processId},
#{path},
#{finalPath},
update zjwjsb_attachment
attachment_name = #{attachmentName},
url = #{url},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
process_id = #{processId},
path = #{path},
final_path = #{finalPath},
where attachment_id = #{attachmentId}
delete from zjwjsb_attachment where attachment_id = #{attachmentId}
delete from zjwjsb_attachment where attachment_id in
#{attachmentId}
delete from zjwjsb_attachment where process_id = #{processId}
insert into zjwjsb_attachment(
attachment_id,
attachment_name,
url,
process_id,
path,
final_path,
create_by,
create_time
) values
(
#{attachment.attachmentId},
#{attachment.attachmentName},
#{attachment.url},
#{processId},
#{attachment.path},
#{attachment.finalPath},
#{createBy},
sysdate()
)
insert into zjwjsb_attachment(
attachment_id,
attachment_name,
url,
process_id,
path,
final_path,
create_by,
create_time,
attachment_type
) values
(
#{attachment.attachmentId},
#{attachment.attachmentName},
#{attachment.url},
#{attachment.processId},
#{attachment.path},
#{attachment.finalPath},
#{attachment.createBy},
sysdate(),
#{attachment.attachmentType}
)