远程控制修改
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user