远程控制修改

This commit is contained in:
2026-01-27 15:16:58 +08:00
parent a0841d75d7
commit 1295adb885
7 changed files with 70 additions and 3 deletions

View File

@ -63,7 +63,25 @@
<delete id="delete">
delete from station_remote_control where id = #{id,jdbcType=INTEGER}
</delete>
<select id="search" resultType="com.ho.business.entity.StationRemoteControl">
select * from station_remote_control where station_id = #{stationId,jdbcType=INTEGER}
select s.*,t.name stationName from station_remote_control s
left join station t on s.station_id = t.id
<where>
<if test="stationId != null and stationId !=''">
and s.station_id = #{stationId}
</if>
</where>
</select>
<select id="selectList" resultType="com.ho.business.entity.StationRemoteControl">
select s.*,t.name stationName from station_remote_control s
left join station t on s.station_id = t.id
<where>
<if test="vo.stationId != null and vo.stationId !=''">
and s.station_id = #{vo.stationId}
</if>
</where>
order by s.create_time desc
</select>
</mapper>