update 联联

This commit is contained in:
Lemon
2023-06-06 10:54:29 +08:00
parent 91e37c0bd6
commit 8e6bf11abc
6 changed files with 177 additions and 116 deletions

View File

@@ -69,7 +69,7 @@
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
</trim>
where id = #{id}
where station_id = #{stationId,jdbcType=BIGINT}
</update>
<delete id="deleteStationSettingRelationById" parameterType="Long">
@@ -92,8 +92,8 @@
t2.operator_secret as operatorSecret,
t2.sign_secret as signSecret,
t2.data_secret as dataSecret,
t2.data_secret_IV as dataSecretIv,
from station_setting_relation t1 join thirdparty_setting_info t2 on t1.type = t2.type
t2.data_secret_IV as dataSecretIv
from station_setting_relation t1 join thirdparty_setting_info t2 on t1.third_party_type = t2.type
where t1.del_flag = '0'
<if test="stationId != null">
and t1.station_id = #{stationId,jdbcType=BIGINT}