select thisTab.id, thisTab.system_no, thisTab.bill_id, thisTab.settle_amount, thisTab.remark, thisTab.attachment, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time from tms_ap_settlement AS thisTab
select count(0) from tms_ap_settlement as thisTab
and thisTab.system_no = #{systemNo}
and thisTab.bill_id = #{billId}
and thisTab.settle_amount = #{settleAmount}
and thisTab.attachment = #{attachment}
insert into tms_ap_settlement
system_no,
bill_id,
settle_amount,
remark,
attachment,
create_by,
create_time,
update_by,
update_time,
#{systemNo},
#{billId},
#{settleAmount},
#{remark},
#{attachment},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
insert into tms_ap_settlement
id,system_no,bill_id,settle_amount,remark,attachment,create_by,create_time,update_by,update_time,
#{item.id},#{item.systemNo},#{item.billId},#{item.settleAmount},#{item.remark},#{item.attachment},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},
update tms_ap_settlement
system_no = #{systemNo},
bill_id = #{billId},
settle_amount = #{settleAmount},
remark = #{remark},
attachment = #{attachment},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where id = #{id}
update tms_ap_settlement
system_no = #{item.systemNo},
bill_id = #{item.billId},
settle_amount = #{item.settleAmount},
remark = #{item.remark},
attachment = #{item.attachment},
create_by = #{item.createBy},
create_time = #{item.createTime},
update_by = #{item.updateBy},
update_time = #{item.updateTime},
where id = #{item.id}
delete from tms_ap_settlement where id = #{id}
delete from tms_ap_settlement where id in
#{id}