Browse Source

扫码报警事件对接

develop
lau572 4 months ago
parent
commit
a614199bed
  1. 8
      zc-business/src/main/java/com/zc/business/mapper/DcWarningMapper.java
  2. 2
      zc-business/src/main/java/com/zc/business/service/IDcWarningService.java
  3. 12
      zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java
  4. 5
      zc-business/src/main/resources/mapper/business/DcWarningMapper.xml

8
zc-business/src/main/java/com/zc/business/mapper/DcWarningMapper.java

@ -34,6 +34,14 @@ public interface DcWarningMapper
*/
public HashMap<String,Object> selectDcWarningById(String id);
/**
* 查询预警信息
*
* @param id 预警信息主键
* @return 预警信息
*/
public HashMap<String,Object> selectAlarmById(String id);
/**
* 查询预警信息列表
*

2
zc-business/src/main/java/com/zc/business/service/IDcWarningService.java

@ -32,6 +32,8 @@ public interface IDcWarningService
*/
public HashMap<String, Object> selectDcWarningById(String id);
public HashMap<String, Object> selectAlarmById(String id);
/**
* 查询预警信息列表
*

12
zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

@ -93,6 +93,18 @@ public class DcWarningServiceImpl implements IDcWarningService
return dcWarningMapper.selectDcWarningById(id);
}
/**
* 查询预警信息
*
* @param id 预警信息主键
* @return 预警信息
*/
@Override
public HashMap<String, Object> selectAlarmById(String id)
{
return dcWarningMapper.selectAlarmById(id);
}
/**
* 查询预警信息列表
*

5
zc-business/src/main/resources/mapper/business/DcWarningMapper.xml

@ -77,6 +77,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectDcWarningVo"/>
where id = #{id}
</select>
<select id="selectAlarmById" parameterType="string" resultType="hashmap">
<include refid="selectDcWarningVo"/>
where warning_source = '5' and JSON_EXTRACT(other_config, '$.id') = #{alarmId};
</select>
<select id="export" resultType="com.zc.business.domain.DcWarning">
SELECT warning.`id`,warning.`stake_mark`, warning.`direction`,warning.end_time,warning.event_cause,
warning.lane,warning.vehicle_type,mark.longitude,mark.latitude,

Loading…
Cancel
Save