select receipt_unid, contract_unid,receipt_progress,cast(receipt_amount as decimal(18,2)),oa_flow_id,receipt_note,create_date from tb_receipt where contract_unid = #{contract_unid}
select receipt_unid, contract_unid,
receipt_progress,cast(receipt_amount as decimal(18,2)),
oa_flow_id,receipt_note,create_date from tb_receipt
where contract_unid = #{contract_unid}
order by receipt_progress asc
</select>
<deleteid="deleteReceipt"parameterType="int">
delete from tb_receipt where receipt_unid = #{receipt_unid}
select reback_unid, contract_unid ,reback_progress ,reback_date, cast(actual_reback_amount as decimal(18,2)),reback_note from tb_return_info where contract_unid = #{contract_unid}
select reback_unid, contract_unid ,
reback_progress ,reback_date,
cast(actual_reback_amount as decimal(18,2)),
reback_note from tb_return_info where contract_unid = #{contract_unid}
order by reback_progress asc
</select>
<deleteid="deleteReturnInfo"parameterType="int">
delete from tb_return_info where reback_unid = #{reback_unid}