select thisTab.id, thisTab.fund_flow_id, thisTab.bill_no, thisTab.related_company_type, thisTab.related_company_name, thisTab.bill_amount, thisTab.bill_pending_amount, thisTab.claim_amount, thisTab.claim_date, thisTab.remarks, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.del_flag from fund_flow_claim_detail AS thisTab
select count(0) from fund_flow_claim_detail as thisTab
and thisTab.fund_flow_id = #{fundFlowId}
and thisTab.bill_no = #{billNo}
and thisTab.related_company_type = #{relatedCompanyType}
and thisTab.related_company_name like concat('%', #{relatedCompanyName}, '%')
and thisTab.bill_amount = #{billAmount}
and thisTab.bill_pending_amount = #{billPendingAmount}
and thisTab.claim_amount = #{claimAmount}
and thisTab.claim_date = #{claimDate}
and thisTab.remarks = #{remarks}
insert into fund_flow_claim_detail
fund_flow_id,
bill_no,
related_company_type,
related_company_name,
bill_amount,
bill_pending_amount,
claim_amount,
claim_date,
remarks,
create_by,
create_time,
update_by,
update_time,
del_flag,
#{fundFlowId},
#{billNo},
#{relatedCompanyType},
#{relatedCompanyName},
#{billAmount},
#{billPendingAmount},
#{claimAmount},
#{claimDate},
#{remarks},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{delFlag},
insert into fund_flow_claim_detail
id,fund_flow_id,bill_no,related_company_type,related_company_name,bill_amount,bill_pending_amount,claim_amount,claim_date,remarks,create_by,create_time,update_by,update_time,del_flag,
#{item.id},#{item.fundFlowId},#{item.billNo},#{item.relatedCompanyType},#{item.relatedCompanyName},#{item.billAmount},#{item.billPendingAmount},#{item.claimAmount},#{item.claimDate},#{item.remarks},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.delFlag},
update fund_flow_claim_detail
fund_flow_id = #{fundFlowId},
bill_no = #{billNo},
related_company_type = #{relatedCompanyType},
related_company_name = #{relatedCompanyName},
bill_amount = #{billAmount},
bill_pending_amount = #{billPendingAmount},
claim_amount = #{claimAmount},
claim_date = #{claimDate},
remarks = #{remarks},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
del_flag = #{delFlag},
where id = #{id}
update fund_flow_claim_detail
fund_flow_id = #{item.fundFlowId},
bill_no = #{item.billNo},
related_company_type = #{item.relatedCompanyType},
related_company_name = #{item.relatedCompanyName},
bill_amount = #{item.billAmount},
bill_pending_amount = #{item.billPendingAmount},
claim_amount = #{item.claimAmount},
claim_date = #{item.claimDate},
remarks = #{item.remarks},
create_by = #{item.createBy},
create_time = #{item.createTime},
update_by = #{item.updateBy},
update_time = #{item.updateTime},
del_flag = #{item.delFlag},
where id = #{item.id}
delete from fund_flow_claim_detail where id = #{id}
delete from fund_flow_claim_detail where id in
#{id}