更新工单系统设备同步状态

This commit is contained in:
panshuling321 2022-05-10 17:55:25 +08:00
parent 4dd1e166fe
commit 4e26756b05
4 changed files with 4 additions and 4 deletions

View File

@ -472,6 +472,6 @@
current,
equipment_type equipmentType
from xhpc_charging_pile
where charging_station_id = #{stationId}
where charging_station_id = #{stationId} and del_flag=0
</select>
</mapper>

View File

@ -65,6 +65,6 @@
<select id="selectAll" resultType="com.xhpc.common.domain.XhpcChargingStation">
select * from xhpc_charging_station
select * from xhpc_charging_station where del_flag=0
</select>
</mapper>

View File

@ -54,7 +54,7 @@
LEFT JOIN xhpc_work_station s on s.work_station_id=d1.station_id
LEFT JOIN xhpc_station_device d2 on d2.parent_device_id=d1.device_id
LEFT JOIN xhpc_terminal t on t.serial_number = d2.serial_number
WHERE s.del_flag=0 and d1.del_flag=0 and d2.del_flag=0 and d1.device_type='PILE'
WHERE s.del_flag=0 and d1.del_flag=0 and d2.del_flag=0 and d1.device_type='PILE' and t.del_flag=0
<if test="params.stationName!=null and params.stationName != ''">
and s.name like concat('%', #{params.stationName}, '%')
</if>

View File

@ -405,6 +405,6 @@
<select id="selectByPileId" resultMap="BaseResultMap">
<include refid="selectXhpcTerminalVo"/>
WHERE charging_pile_id = #{pileId}
WHERE charging_pile_id = #{pileId} and del_flag=0
</select>
</mapper>