Commit 595dffa8 by 熊付

【update sql】

1 parent 0dd46a5a
......@@ -190,18 +190,19 @@
from tb_contract where contract_unid = #{contract_unid}
</select>
<update id="updateOne" parameterType="com.vion.financial.vo.ContractVo">
update tb_contract set
<if test="salesperson_unid != null and salesperson_unid != ''">
salesperson_unid=#{salesperson_unid}
update tb_contract
<set>
<if test="salesperson_unid != null and salesperson_unid != ''">
salesperson_unid=#{salesperson_unid},
</if>
<if test="province != null and province != ''">
,province=#{province}
province=#{province},
</if>
<if test="city !=null and city != ''">
, city=#{city}
city=#{city},
</if>
<if test="county != null and county != ''">
,county=#{county}
county=#{county},
</if>
<if test="guarantee_period != null and guarantee_period != ''">
,guarantee_period=#{guarantee_period}
......@@ -275,6 +276,8 @@
<if test="customer_unid != null and customer_unid != ''">
,customer_unid=#{customer_unid}
</if>
</set>
where contract_unid=#{contract_unid}
</update>
<delete id="deleteOne" parameterType="java.lang.String">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!