(select case when max(receipt_progress) is null then 1 else max(receipt_progress)+1 end as receipt_progress from tb_receipt where contract_unid=#{contract_unid})
(select case when max(receipt_progress) is null then 1 else max(receipt_progress)+1 end as receipt_progress from tb_receipt where tb_receipt.contract_unid=#{contract_unid})
<iftest="reback_progress !=null and reback_progress !=''">
reback_progress,
reback_progress,
</if>
<iftest="reback_date !=null">
<iftest="reback_date !=null">
reback_date,
reback_date,
</if>
</if>
...
@@ -21,7 +19,7 @@
...
@@ -21,7 +19,7 @@
#{reback_progress},
#{reback_progress},
</if>
</if>
<iftest="reback_progress ==null">
<iftest="reback_progress ==null">
(select case when max(reback_progress) is null then 1 else max(reback_progress)+1 end as reback_progress from tb_return_info where contract_unid=#{contract_unid}),
(select case when max(reback_progress) is null then 1 else max(reback_progress)+1 end as reback_progress from tb_return_info where tb_return_info.contract_unid=#{contract_unid}),