Commit 595dffa8 by 熊付

【update sql】

1 parent 0dd46a5a
...@@ -190,18 +190,19 @@ ...@@ -190,18 +190,19 @@
from tb_contract where contract_unid = #{contract_unid} from tb_contract where contract_unid = #{contract_unid}
</select> </select>
<update id="updateOne" parameterType="com.vion.financial.vo.ContractVo"> <update id="updateOne" parameterType="com.vion.financial.vo.ContractVo">
update tb_contract set update tb_contract
<if test="salesperson_unid != null and salesperson_unid != ''"> <set>
salesperson_unid=#{salesperson_unid} <if test="salesperson_unid != null and salesperson_unid != ''">
salesperson_unid=#{salesperson_unid},
</if> </if>
<if test="province != null and province != ''"> <if test="province != null and province != ''">
,province=#{province} province=#{province},
</if> </if>
<if test="city !=null and city != ''"> <if test="city !=null and city != ''">
, city=#{city} city=#{city},
</if> </if>
<if test="county != null and county != ''"> <if test="county != null and county != ''">
,county=#{county} county=#{county},
</if> </if>
<if test="guarantee_period != null and guarantee_period != ''"> <if test="guarantee_period != null and guarantee_period != ''">
,guarantee_period=#{guarantee_period} ,guarantee_period=#{guarantee_period}
...@@ -275,6 +276,8 @@ ...@@ -275,6 +276,8 @@
<if test="customer_unid != null and customer_unid != ''"> <if test="customer_unid != null and customer_unid != ''">
,customer_unid=#{customer_unid} ,customer_unid=#{customer_unid}
</if> </if>
</set>
where contract_unid=#{contract_unid} where contract_unid=#{contract_unid}
</update> </update>
<delete id="deleteOne" parameterType="java.lang.String"> <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!