update 华为Service

This commit is contained in:
Lemon
2024-04-01 16:17:00 +08:00
parent 7064f4e4b2
commit 60d54f8fea
12 changed files with 338 additions and 163 deletions

View File

@@ -89,6 +89,26 @@
</foreach>
</delete>
<select id="selectSnRelationListByParams" resultType="com.jsowell.pile.vo.web.ThirdPartySnRelationVO">
SELECT
t1.station_id AS stationId,
t1.pile_sn AS pileSn,
t1.thirdparty_type AS thirdPartyType,
t1.thirdparty_pile_sn AS thirdPartyPileSn,
t2.start_mode AS startMode
FROM
thirdparty_sn_relation t1
JOIN thirdparty_station_relation t2 ON t1.thirdparty_type = t2.third_party_type
WHERE
t1.del_flag = '0'
<if test="stationId != null and stationId != ''">
AND t1.station_id = #{stationId,jdbcType=VARCHAR}
</if>
<if test="pileSn != null and pileSn != ''">
AND t1.pile_sn = #{pileSn,jdbcType=VARCHAR}
</if>
</select>
<select id="getRelationVOList" resultType="com.jsowell.pile.vo.web.ThirdPartySnRelationVO">
SELECT
pile_sn AS pileSn,
@@ -109,7 +129,4 @@
pile_sn = #{dto.pileSn,jdbcType=VARCHAR}
AND thirdparty_type = #{dto.thirdPartyType,jdbcType=VARCHAR}
</update>
<select id="selectSnRelationListByStationId" resultMap="ThirdpartySnRelationResult">
</select>
</mapper>