首页24小时警情信息接口

develop
Angel 10 months ago
parent 985d1013b6
commit db378184a2

@ -22,11 +22,41 @@ public interface MetaAlarmInfoMapper extends BaseMapper<MetaAlarmInfo> {
@Select(
"select alarm_response_type_name,count from ( " +
"select *,count(1) count from meta_alarm_info group by alarm_response_type_name " +
") a order by count desc limit 3 ")
"select *,count(1) count from meta_alarm_info group by alarm_response_type_name " +
") a order by count desc limit 3 ")
public List<MetaAlarmInfoVo> selectTop3AlarmInfo();
// @Select("SELECT a.id, " +
// "a.alarm_code jjxx_alarm_code, " +
// "a.police_receiver_name jjxx_police_receiver_name, " +
// "a.alarm_response_unit jjxx_alarm_response_unit, " +
// "a.alarm_response_time jjxx_alarm_response_time, " +
// "a.alarm_response_content jjxx_alarm_response_content, " +
// "a.alarm_response_type_name jjxx_alarm_response_type_name, " +
// "a.informant_name jjxx_informant_name, " +
// "a.informant_phone jjxx_informant_phone, " +
// "a.informant_time jjxx_informant_time, " +
// "a.alarm_address jjxx_alarm_address, " +
// "a.longitude jjxx_longitude, " +
// "a.latitude jjxx_latitude " +
// "FROM (SELECT * FROM meta_alarm_info WHERE " +
// "alarm_response_unit LIKE '射阳县公安局临海派出所' OR " +
// "alarm_response_unit LIKE '射阳县公安局临海派出所第一警务区' OR " +
// "alarm_response_unit LIKE '射阳县公安局临海派出所第二警务区' OR " +
// "alarm_response_unit LIKE '射阳县公安局临海派出所第三警务区' OR " +
// "alarm_response_unit LIKE '射阳县公安局临海派出所第四警务区' OR " +
// "alarm_response_unit LIKE '射阳县公安局临港派出所' OR " +
// "alarm_response_unit LIKE '射阳县公安局临港派出所社区警务责任区' OR " +
// "alarm_response_unit LIKE '射阳县公安局临港派出所第一警务区' OR " +
// "alarm_response_unit LIKE '射阳县公安局临港派出所第二警务区' OR " +
// "alarm_response_unit LIKE '射阳县公安局临港派出所第一警务区' OR " +
// "alarm_response_unit LIKE '射阳县公安局扁担港边防派出所' OR " +
// "alarm_response_unit LIKE '射阳县公安局扁担港边防派出所第一警务区' OR " +
// "alarm_response_unit LIKE '射阳县公安局黄沙河边防派出所' OR " +
// "alarm_response_unit LIKE '射阳县公安局黄沙河边防派出所第一警务区' OR " +
// "alarm_response_unit LIKE '射阳县公安局黄沙河边防派出所第三警务区' " +
// "ORDER BY informant_time DESC LIMIT 100) a" )
@Select("SELECT a.id, " +
"a.alarm_code jjxx_alarm_code, " +
"a.police_receiver_name jjxx_police_receiver_name, " +
@ -41,24 +71,23 @@ public interface MetaAlarmInfoMapper extends BaseMapper<MetaAlarmInfo> {
"a.longitude jjxx_longitude, " +
"a.latitude jjxx_latitude " +
"FROM (SELECT * FROM meta_alarm_info WHERE " +
"alarm_response_unit LIKE '射阳县公安局临海派出所' OR " +
"alarm_response_unit LIKE '射阳县公安局临海派出所第一警务区' OR " +
"alarm_response_unit LIKE '射阳县公安局临海派出所第二警务区' OR " +
"alarm_response_unit LIKE '射阳县公安局临海派出所第三警务区' OR " +
"alarm_response_unit LIKE '射阳县公安局临海派出所第四警务区' OR " +
"alarm_response_unit LIKE '射阳县公安局临港派出所' OR " +
"alarm_response_unit LIKE '射阳县公安局临港派出所社区警务责任区' OR " +
"alarm_response_unit LIKE '射阳县公安局临港派出所第一警务区' OR " +
"alarm_response_unit LIKE '射阳县公安局临港派出所第二警务区' OR " +
"alarm_response_unit LIKE '射阳县公安局临港派出所第一警务区' OR " +
"alarm_response_unit LIKE '射阳县公安局扁担港边防派出所' OR " +
"alarm_response_unit LIKE '射阳县公安局扁担港边防派出所第一警务区' OR " +
"alarm_response_unit LIKE '射阳县公安局黄沙河边防派出所' OR " +
"alarm_response_unit LIKE '射阳县公安局黄沙河边防派出所第一警务区' OR " +
"alarm_response_unit LIKE '射阳县公安局黄沙河边防派出所第三警务区' " +
"ORDER BY informant_time DESC LIMIT 100) a")
" (alarm_response_unit LIKE '射阳县公安局临海派出所' OR " +
" alarm_response_unit LIKE '射阳县公安局临海派出所第一警务区' OR " +
" alarm_response_unit LIKE '射阳县公安局临海派出所第二警务区' OR " +
" alarm_response_unit LIKE '射阳县公安局临海派出所第三警务区' OR " +
" alarm_response_unit LIKE '射阳县公安局临海派出所第四警务区' OR " +
" alarm_response_unit LIKE '射阳县公安局临港派出所' OR " +
" alarm_response_unit LIKE '射阳县公安局临港派出所社区警务责任区' OR " +
" alarm_response_unit LIKE '射阳县公安局临港派出所第一警务区' OR " +
" alarm_response_unit LIKE '射阳县公安局临港派出所第二警务区' OR " +
" alarm_response_unit LIKE '射阳县公安局临港派出所第一警务区' OR " +
" alarm_response_unit LIKE '射阳县公安局扁担港边防派出所' OR " +
" alarm_response_unit LIKE '射阳县公安局扁担港边防派出所第一警务区' OR " +
" alarm_response_unit LIKE '射阳县公安局黄沙河边防派出所' OR " +
" alarm_response_unit LIKE '射阳县公安局黄沙河边防派出所第一警务区' OR " +
" alarm_response_unit LIKE '射阳县公安局黄沙河边防派出所第三警务区' " +
") " +
" AND DATE(informant_time) = CURDATE() " +
" ORDER BY informant_time DESC LIMIT 100) a")
public List<MetaAlarmInfoAndHandleAlarmVo> listAlarmAndHandleAlarm();
}

Loading…
Cancel
Save