|
@@ -27,6 +27,8 @@
|
|
|
<if test="publicServType != null">public_serv_type,</if>
|
|
<if test="publicServType != null">public_serv_type,</if>
|
|
|
<if test="billingType != null">billing_type,</if>
|
|
<if test="billingType != null">billing_type,</if>
|
|
|
<if test="meteringType != null">metering_type,</if>
|
|
<if test="meteringType != null">metering_type,</if>
|
|
|
|
|
+ <if test="openTime != null">open_time,</if>
|
|
|
|
|
+ <if test="installTime != null">install_time,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
#{code,jdbcType=VARCHAR},
|
|
#{code,jdbcType=VARCHAR},
|
|
@@ -54,6 +56,8 @@
|
|
|
<if test="publicServType != null">#{publicServType,jdbcType=SMALLINT},</if>
|
|
<if test="publicServType != null">#{publicServType,jdbcType=SMALLINT},</if>
|
|
|
<if test="billingType != null">#{billingType,jdbcType=SMALLINT},</if>
|
|
<if test="billingType != null">#{billingType,jdbcType=SMALLINT},</if>
|
|
|
<if test="meteringType != null">#{meteringType,jdbcType=SMALLINT},</if>
|
|
<if test="meteringType != null">#{meteringType,jdbcType=SMALLINT},</if>
|
|
|
|
|
+ <if test="openTime != null">#{openTime,jdbcType=TIMESTAMP},</if>
|
|
|
|
|
+ <if test="installTime != null">#{installTime,jdbcType=TIMESTAMP},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
on conflict (code) do update set
|
|
on conflict (code) do update set
|
|
|
<trim suffixOverrides=",">
|
|
<trim suffixOverrides=",">
|
|
@@ -79,6 +83,8 @@
|
|
|
<if test="publicServType != null">public_serv_type = excluded.public_serv_type,</if>
|
|
<if test="publicServType != null">public_serv_type = excluded.public_serv_type,</if>
|
|
|
<if test="billingType != null">billing_type = excluded.billing_type,</if>
|
|
<if test="billingType != null">billing_type = excluded.billing_type,</if>
|
|
|
<if test="meteringType != null">metering_type = excluded.metering_type,</if>
|
|
<if test="meteringType != null">metering_type = excluded.metering_type,</if>
|
|
|
|
|
+ <if test="openTime != null">open_time = excluded.open_time,</if>
|
|
|
|
|
+ <if test="installTime != null">install_time = excluded.install_time,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
</mapper>
|
|
</mapper>
|