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
6d6047dd
Commit
6d6047dd
authored
Nov 01, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/moa/amos-boot-biz
into developer
parents
6e4128a9
d562be7b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
21 deletions
+39
-21
OrgUsrMapper.java
...join/amos/boot/module/common/api/mapper/OrgUsrMapper.java
+1
-1
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+21
-11
AlertCalledController.java
...boot/module/jcs/biz/controller/AlertCalledController.java
+7
-7
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+10
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/OrgUsrMapper.java
View file @
6d6047dd
...
@@ -19,7 +19,7 @@ import java.util.Map;
...
@@ -19,7 +19,7 @@ import java.util.Map;
public
interface
OrgUsrMapper
extends
BaseMapper
<
OrgUsr
>
{
public
interface
OrgUsrMapper
extends
BaseMapper
<
OrgUsr
>
{
String
selectUpUnitByParam
(
@Param
(
"id"
)
String
biz_org_code
);
String
selectUpUnitByParam
(
@Param
(
"id"
)
String
biz_org_code
);
int
selectPersonListCount
(
Map
<
String
,
Object
>
map
);
int
selectPersonListCount
(
@Param
(
"map"
)
Map
<
String
,
Object
>
map
);
List
<
Map
<
String
,
Object
>>
selectPersonList
(
@Param
(
"map"
)
Map
<
String
,
Object
>
map
);
List
<
Map
<
String
,
Object
>>
selectPersonList
(
@Param
(
"map"
)
Map
<
String
,
Object
>
map
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
6d6047dd
...
@@ -57,18 +57,28 @@
...
@@ -57,18 +57,28 @@
on u.sequence_nbr = g.instance_id
on u.sequence_nbr = g.instance_id
where
where
u.biz_org_type = 'person'
u.biz_org_type = 'person'
AND
AND
u.is_delete = 0
u.is_delete = 0
<if
test=
"map.bizOrgName != null"
>
GROUP BY
AND u.biz_org_name like concat('%',#{map.bizOrgName},'%')
u.sequence_nbr ,
</if>
u.biz_org_name ,
<if
test=
"map.personNumber!= null"
>
u.biz_org_code
AND v.field_value like concat('%',#{map.personNumber},'%')
order by u.rec_date desc
</if>
)a where a.sequenceNbr is not null
<if
test=
"map.bizOrgCode != null and map.bizOrgCode != '-1'"
>
AND u.biz_org_code like concat(#{map.bizOrgCode}, '%')
</select>
</if>
GROUP BY
u.sequence_nbr ,
u.biz_org_name ,
u.biz_org_code
order by u.rec_date desc
)a where a.sequenceNbr is not null
<if
test=
"map.fieldsValue != null"
>
<foreach
collection=
"map.fieldsValue.keys"
item=
"item"
>
AND a.${item} = #{map.fieldsValue[${item}]}
</foreach>
</if>
</select>
<!--机场单位人员按时间倒叙排列add order by u.rec_date desc 2021-09-08 by kongfm -->
<!--机场单位人员按时间倒叙排列add order by u.rec_date desc 2021-09-08 by kongfm -->
<select
id=
"selectPersonList"
resultType=
"Map"
>
<select
id=
"selectPersonList"
resultType=
"Map"
>
...
...
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 @
6d6047dd
...
@@ -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
);
}
}
}
/**
/**
...
@@ -441,7 +441,7 @@ public class AlertCalledController extends BaseController {
...
@@ -441,7 +441,7 @@ public class AlertCalledController extends BaseController {
AlarmGiveStatisticsDto
dto
=
new
AlarmGiveStatisticsDto
();
AlarmGiveStatisticsDto
dto
=
new
AlarmGiveStatisticsDto
();
LambdaQueryWrapper
<
AlertCalled
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
AlertCalled
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
isNull
(
AlertCalled:
:
getFatherAlert
);
queryWrapper
.
isNull
(
AlertCalled:
:
getFatherAlert
);
queryWrapper
.
eq
(
AlertCalled:
:
getAlertStatus
,
tru
e
);
queryWrapper
.
eq
(
AlertCalled:
:
getAlertStatus
,
fals
e
);
queryWrapper
.
eq
(
AlertCalled:
:
getIsDelete
,
false
);
queryWrapper
.
eq
(
AlertCalled:
:
getIsDelete
,
false
);
Integer
alertNum
=
iAlertCalledService
.
getBaseMapper
().
selectCount
(
queryWrapper
);
Integer
alertNum
=
iAlertCalledService
.
getBaseMapper
().
selectCount
(
queryWrapper
);
dto
.
setAlarmNum
(
alertNum
);
dto
.
setAlarmNum
(
alertNum
);
...
...
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 @
6d6047dd
...
@@ -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
;
/**
/**
* 警情接警记录 服务实现类
* 警情接警记录 服务实现类
*
*
...
@@ -849,8 +851,14 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
...
@@ -849,8 +851,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