修改充电桩时, 运营桩删除密钥, 个人桩生成密钥

This commit is contained in:
Guoqs
2024-07-12 15:13:12 +08:00
parent 33b33ad29f
commit 0d521fd34f
3 changed files with 13 additions and 6 deletions

View File

@@ -231,7 +231,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="SET" suffixOverrides=",">
<if test="merchantId != null">merchant_id = #{merchantId},</if>
<if test="stationId != null">station_id = #{stationId},</if>
<if test="chargerPileType != null">business_type = #{chargerPileType,jdbcType=VARCHAR},</if>
<if test="chargerPileType != null">
business_type = #{chargerPileType,jdbcType=VARCHAR},
</if>
<if test="chargerPileType == '1'.toString() "> secret_key = null,</if>
<if test="chargerPileType == '2'.toString() "> secret_key = substring(uuid(), 1, 8),</if>
<if test="modelId != null">model_id = #{modelId},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>