Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
5865573d
Commit
5865573d
authored
Oct 25, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
02585c32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
AlertCalledController.java
...boot/module/jcs/biz/controller/AlertCalledController.java
+12
-5
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+13
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AlertCalledController.java
View file @
5865573d
...
...
@@ -2,13 +2,16 @@ package com.yeejoin.amos.boot.module.jcs.biz.controller;
import
java.lang.reflect.Field
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
import
com.alibaba.fastjson.JSON
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.utils.*
;
import
com.yeejoin.amos.boot.module.common.api.dto.FailureDetailsDto
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.AlertStatusEnum
;
...
...
@@ -30,9 +33,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.ESAlertCalledDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.ESAlertCalledRequestDto
;
...
...
@@ -362,9 +362,16 @@ public class AlertCalledController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getAmosId"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情填报联系人模糊查询"
,
notes
=
"警情填报联系人模糊查询"
)
public
ResponseModel
<
List
<
Map
<
String
,
String
>>
>
getContact
(
)
{
public
ResponseModel
<
Object
>
getContact
(
)
{
return
ResponseHelper
.
buildResponse
(
iAlertCalledService
.
getContactName
());
if
(
redisUtils
.
hasKey
(
RedisKey
.
CONTACT_USER
))
{
Object
obj
=
redisUtils
.
get
(
RedisKey
.
CONTACT_USER
);
return
ResponseHelper
.
buildResponse
(
obj
);
}
else
{
List
<
Map
<
String
,
String
>>
contactName
=
iAlertCalledService
.
getContactName
();
redisUtils
.
set
(
RedisKey
.
CONTACT_USER
,
contactName
,
time
);
return
ResponseHelper
.
buildResponse
(
contactName
);
}
}
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
View file @
5865573d
...
...
@@ -5,6 +5,7 @@ import java.util.*;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
com.yeejoin.amos.boot.biz.common.utils.QRCodeUtil
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FirefightersServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.KeySiteServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.*
;
...
...
@@ -810,7 +811,19 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
/*2304 地址 联系人模糊查询缺失 陈召 2021-09-23 开始*/
public
List
<
Map
<
String
,
String
>>
getContactName
()
{
List
<
Map
<
String
,
String
>>
firefightersName
=
firefightersService
.
getFirefightersName
();
firefightersName
.
forEach
(
r
->{
String
phone
=
r
.
get
(
"phone"
);
phone
=
QRCodeUtil
.
generateQRCode
()+
"@"
+
phone
;
r
.
put
(
"phone"
,
phone
);
}
);
List
<
Map
<
String
,
String
>>
contactNames
=
alertCalledMapper
.
getContactName
();
contactNames
.
forEach
(
r
->{
String
phone
=
r
.
get
(
"phone"
);
phone
=
QRCodeUtil
.
generateQRCode
()+
"@"
+
phone
;
r
.
put
(
"phone"
,
phone
);
}
);
firefightersName
.
addAll
(
contactNames
);
return
firefightersName
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment