Browse Source

非机预警关联收费站类型区分

develop
wangsixiang 7 months ago
parent
commit
964410eb0f
  1. 8
      zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml

8
zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml

@ -28,7 +28,7 @@
where warning.`id`=#{id}
</select>
<select id="selectPerceivedEventsList" resultType="com.zc.business.domain.DcWarning">
SELECT facility.facility_name, warning.`id`,warning.`stake_mark`, warning.`direction`,facility.facility_name,
SELECT facility.facility_name, warning.`id`,warning.`stake_mark`, warning.`direction`,
mark.longitude,mark.latitude,warning.lane,duration,
warning.`dept_id`,warning.`warning_state`,warning.`warning_time`,
warning.`user_id`, warning.`warning_source`,warning.`warning_level`,
@ -36,7 +36,7 @@
warning.`warning_type`,warning.`warning_subclass`,warning.`warning_title`,
warning.`other_config` FROM dc_warning AS warning
left JOIN dc_stake_mark AS mark ON mark.stake_mark=warning.stake_mark and mark.direction=warning.direction
left join dc_facility as facility on facility.stake_mark=warning.stake_mark
left join dc_facility as facility on facility.stake_mark=warning.stake_mark and facility.facility_type=1
<where>
<if test="warningSource == null || warningSource == ''"> and warning.warning_source !=6</if>
<if test="warningSource != null and warningSource != ''"> and warning.warning_source = #{warningSource}</if>
@ -60,7 +60,7 @@
order by warning.warning_time desc
</select>
<select id="selectNonAutomaticWarningList" resultType="com.zc.business.domain.DcWarning">
SELECT facility.facility_name, warning.`id`,warning.`stake_mark`, warning.`direction`,facility.facility_name,
SELECT facility.facility_name, warning.`id`,warning.`stake_mark`, warning.`direction`,
mark.longitude,mark.latitude,warning.lane,duration,
warning.`dept_id`,warning.`warning_state`,warning.`warning_time`,
warning.`user_id`, warning.`warning_source`,warning.`warning_level`,
@ -68,7 +68,7 @@
warning.`warning_type`,warning.`warning_subclass`,warning.`warning_title`,
warning.`other_config` FROM dc_warning AS warning
left JOIN dc_stake_mark AS mark ON mark.stake_mark=warning.stake_mark and mark.direction=warning.direction
left join dc_facility as facility on facility.stake_mark=warning.stake_mark
left join dc_facility as facility on facility.stake_mark=warning.stake_mark and facility.facility_type=1
<where>
<if test="warningSource != null and warningSource != ''"> and warning.warning_source = #{warningSource}</if>
<if test="warningState != null and warningState != ''"> and warning.warning_state = #{warningState}</if>

Loading…
Cancel
Save