Commit c25d0b3c by 熊付

[进度]

1 parent 8e0e7e65
......@@ -10,7 +10,7 @@
values( #{contract_unid},
<choose>
<when test="receipt_progress == null">
(select max(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 contract_unid=#{contract_unid})
</when>
<otherwise>
#{receipt_progress}
......
......@@ -21,7 +21,7 @@
#{reback_progress},
</if>
<if test="reback_progress ==null">
(select max(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 contract_unid=#{contract_unid}),
</if>
<if test="reback_date !=null">
#{reback_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!