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
970cc4a0
Commit
970cc4a0
authored
Nov 01, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改联系人的数据帅选
parent
8e3d3463
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
AlertCalledController.java
...boot/module/jcs/biz/controller/AlertCalledController.java
+6
-6
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+10
-2
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 @
970cc4a0
...
@@ -403,14 +403,14 @@ public class AlertCalledController extends BaseController {
...
@@ -403,14 +403,14 @@ public class AlertCalledController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情填报联系人模糊查询"
,
notes
=
"警情填报联系人模糊查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情填报联系人模糊查询"
,
notes
=
"警情填报联系人模糊查询"
)
public
ResponseModel
<
Object
>
getContact
()
{
public
ResponseModel
<
Object
>
getContact
()
{
if
(
redisUtils
.
hasKey
(
RedisKey
.
CONTACT_USER
))
{
//
if (redisUtils.hasKey(RedisKey.CONTACT_USER)) {
Object
obj
=
redisUtils
.
get
(
RedisKey
.
CONTACT_USER
);
//
Object obj = redisUtils.get(RedisKey.CONTACT_USER);
return
ResponseHelper
.
buildResponse
(
obj
);
//
return ResponseHelper.buildResponse(obj);
}
else
{
//
} else {
List
<
Map
<
String
,
String
>>
contactName
=
iAlertCalledService
.
getContactName
();
List
<
Map
<
String
,
String
>>
contactName
=
iAlertCalledService
.
getContactName
();
redisUtils
.
set
(
RedisKey
.
CONTACT_USER
,
contactName
,
time
);
//
redisUtils.set(RedisKey.CONTACT_USER, contactName, time);
return
ResponseHelper
.
buildResponse
(
contactName
);
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 @
970cc4a0
...
@@ -67,6 +67,8 @@ import com.yeejoin.amos.boot.module.jcs.api.mapper.TemplateMapper;
...
@@ -67,6 +67,8 @@ import com.yeejoin.amos.boot.module.jcs.api.mapper.TemplateMapper;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAlertCalledService
;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAlertCalledService
;
import
com.yeejoin.amos.component.rule.config.RuleConfig
;
import
com.yeejoin.amos.component.rule.config.RuleConfig
;
import
ch.qos.logback.core.joran.conditional.IfAction
;
/**
/**
* 警情接警记录 服务实现类
* 警情接警记录 服务实现类
*
*
...
@@ -845,8 +847,14 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
...
@@ -845,8 +847,14 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
// firefightersName.addAll(contactNames);
// firefightersName.addAll(contactNames);
List
<
Map
<
String
,
String
>>
list
=
orgUsrServiceImpl
.
getPersonSimpleDetail
();
List
<
Map
<
String
,
String
>>
list
=
orgUsrServiceImpl
.
getPersonSimpleDetail
();
list
.
stream
().
forEach
(
i
->{
list
.
stream
().
forEach
(
i
->{
String
phone
=
QRCodeUtil
.
generateQRCode
()+
"@"
+
i
.
get
(
"phone"
).
toString
();
String
phone
=
""
;
i
.
replace
(
"phone"
,
phone
);
if
(
i
.
containsKey
(
"phone"
))
{
phone
=
QRCodeUtil
.
generateQRCode
()+
"@"
+
i
.
get
(
"phone"
).
toString
();
i
.
replace
(
"phone"
,
phone
);
}
else
{
phone
=
QRCodeUtil
.
generateQRCode
()+
"@"
+
phone
;
i
.
put
(
"phone"
,
phone
);
}
});
});
return
list
;
return
list
;
}
}
...
...
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