update 查询枪口状态之前先查询该站点有没有推送第三方平台(华为)

This commit is contained in:
Lemon
2024-04-03 14:32:41 +08:00
parent 994b9cd809
commit bcc287b50c
8 changed files with 87 additions and 42 deletions

View File

@@ -99,6 +99,7 @@
FROM
thirdparty_sn_relation t1
JOIN thirdparty_station_relation t2 ON t1.thirdparty_type = t2.third_party_type
JOIN pile_basic_info t3 on t1.pile_sn = t3.sn
WHERE
t1.del_flag = '0'
<if test="stationId != null and stationId != ''">
@@ -107,6 +108,12 @@
<if test="pileSn != null and pileSn != ''">
AND t1.pile_sn = #{pileSn,jdbcType=VARCHAR}
</if>
<if test="pileIds != null and pileIds.size() != 0">
AND t3.id in
<foreach collection="pileIds" item="pileId" open="(" separator="," close=")">
#{pileId,jdbcType=BIGINT}
</foreach>
</if>
</select>
<select id="getRelationVOList" resultType="com.jsowell.pile.vo.web.ThirdPartySnRelationVO">