Commit c7b94e8d by 熊付

【进度】

1 parent c25d0b3c
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
values( #{contract_unid}, values( #{contract_unid},
<choose> <choose>
<when test="receipt_progress == null"> <when test="receipt_progress == null">
(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})
</when> </when>
<otherwise> <otherwise>
#{receipt_progress} #{receipt_progress}
......
...@@ -4,9 +4,7 @@ ...@@ -4,9 +4,7 @@
<insert id="addReturnInfo" parameterType="com.vion.financial.entity.ReturnInfo"> <insert id="addReturnInfo" parameterType="com.vion.financial.entity.ReturnInfo">
insert into tb_return_info ( insert into tb_return_info (
contract_unid, contract_unid,
<if test="reback_progress !=null and reback_progress !=''">
reback_progress, reback_progress,
</if>
<if test="reback_date !=null"> <if test="reback_date !=null">
reback_date, reback_date,
</if> </if>
...@@ -21,7 +19,7 @@ ...@@ -21,7 +19,7 @@
#{reback_progress}, #{reback_progress},
</if> </if>
<if test="reback_progress ==null"> <if test="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}),
</if> </if>
<if test="reback_date !=null"> <if test="reback_date !=null">
#{reback_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler}, #{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!