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
7f2d4b65
Commit
7f2d4b65
authored
Sep 24, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2304 地址 联系人模糊查询缺失
parent
3babee54
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
51 additions
and
44 deletions
+51
-44
FirefightersMapper.java
...mos/boot/module/common/api/mapper/FirefightersMapper.java
+1
-1
KeySiteMapper.java
...oin/amos/boot/module/common/api/mapper/KeySiteMapper.java
+1
-1
FireTeamMapper.xml
...e-common-api/src/main/resources/mapper/FireTeamMapper.xml
+1
-1
FirefightersMapper.xml
...mmon-api/src/main/resources/mapper/FirefightersMapper.xml
+6
-5
KeySiteMapper.xml
...le-common-api/src/main/resources/mapper/KeySiteMapper.xml
+9
-5
AlertCalledMapper.java
...in/amos/boot/module/jcs/api/mapper/AlertCalledMapper.java
+2
-2
AlertCalledMapper.xml
...e-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
+14
-10
FirefightersServiceImpl.java
...dule/common/biz/service/impl/FirefightersServiceImpl.java
+2
-2
KeySiteServiceImpl.java
...ot/module/common/biz/service/impl/KeySiteServiceImpl.java
+2
-2
AlertCalledController.java
...boot/module/jcs/biz/controller/AlertCalledController.java
+4
-4
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+9
-11
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/FirefightersMapper.java
View file @
7f2d4b65
...
@@ -34,5 +34,5 @@ public interface FirefightersMapper extends BaseMapper<Firefighters> {
...
@@ -34,5 +34,5 @@ public interface FirefightersMapper extends BaseMapper<Firefighters> {
List
<
FirefightersExcelDto
>
exportToExcel
(
Boolean
isDelete
);
List
<
FirefightersExcelDto
>
exportToExcel
(
Boolean
isDelete
);
List
<
String
>
getFirefightersName
(
String
contactName
);
List
<
String
>
getFirefightersName
(
);
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/KeySiteMapper.java
View file @
7f2d4b65
...
@@ -36,6 +36,6 @@ public KeySiteDto getSequenceNbr(Long sequenceNbr);
...
@@ -36,6 +36,6 @@ public KeySiteDto getSequenceNbr(Long sequenceNbr);
public
List
<
KeySiteDateDto
>
getKeySiteDate
(
Long
id
);
public
List
<
KeySiteDateDto
>
getKeySiteDate
(
Long
id
);
public
List
<
String
>
getAddress
(
String
address
);
public
List
<
String
>
getAddress
();
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FireTeamMapper.xml
View file @
7f2d4b65
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
a.name ,
a.name ,
a.contact_user contactUser,
a.contact_user contactUser,
a.contact_phone contactPhone,
a.contact_phone contactPhone,
( SELECT count( 1 ) FROM cb_firefighters WHERE fire_team_id = a.sequence_n
br AND is_delete = 0 ) userNum,
( SELECT count( 1 ) FROM cb_firefighters WHERE fire_team_id = a.sequence_nbr AND is_delete = 0 ) userNum,
Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1) AS distance
Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1) AS distance
FROM cb_fire_team a
FROM cb_fire_team a
where a.is_delete=0 and a.longitude is not null and a.latitude is not null
where a.is_delete=0 and a.longitude is not null and a.latitude is not null
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FirefightersMapper.xml
View file @
7f2d4b65
...
@@ -159,13 +159,14 @@ AND fp.is_delete = 0
...
@@ -159,13 +159,14 @@ AND fp.is_delete = 0
<select
id=
"getFirefightersName"
resultType=
"string"
>
<select
id=
"getFirefightersName"
resultType=
"string"
>
SELECT
SELECT
a
.name
cb_firefighters
.name
FROM
FROM
cb_firefighters a
cb_firefighters
WHERE
WHERE
a.is_delete =0
cb_firefighters.is_delete = 0 AND
and
cb_firefighters.name IS NOT NULL AND
a.name like concat ('%',#{contactName},'%')
cb_firefighters.name != ''
group by cb_firefighters.name
</select>
</select>
</mapper>
</mapper>
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/KeySiteMapper.xml
View file @
7f2d4b65
...
@@ -138,10 +138,14 @@
...
@@ -138,10 +138,14 @@
<select
id=
"getAddress"
resultType=
"string"
>
<select
id=
"getAddress"
resultType=
"string"
>
SELECT
SELECT
c.address_desc
cb_key_site.address_desc
FROM cb_key_site c
FROM
where c.is_delete = FALSE
cb_key_site
and
WHERE
c.address_desc like concat ('%',#{address},'%');
cb_key_site.is_delete = FALSE AND
cb_key_site.address_desc IS NOT NULL AND
cb_key_site.address_desc != ''
GROUP BY
cb_key_site.address_desc
</select>
</select>
</mapper>
</mapper>
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/mapper/AlertCalledMapper.java
View file @
7f2d4b65
...
@@ -36,9 +36,9 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> {
...
@@ -36,9 +36,9 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> {
List
<
AlertCalledTodyDto
>
getTodayAlertCalled
();
List
<
AlertCalledTodyDto
>
getTodayAlertCalled
();
List
<
String
>
getContactName
(
String
contactName
);
List
<
String
>
getContactName
(
);
List
<
String
>
getAddress
(
String
address
);
List
<
String
>
getAddress
();
List
<
AlertCalled
>
selectAllPage
(
Long
current
,
Long
size
,
List
<
AlertCalled
>
selectAllPage
(
Long
current
,
Long
size
,
Integer
alertStatus
,
Integer
alertStatus
,
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
7f2d4b65
...
@@ -190,24 +190,28 @@
...
@@ -190,24 +190,28 @@
<select
id=
"getContactName"
resultType=
"string"
>
<select
id=
"getContactName"
resultType=
"string"
>
SELECT
SELECT
a
.contact_user
jc_alert_called
.contact_user
FROM
FROM
jc_alert_called
a
jc_alert_called
WHERE
WHERE
a.is_delete =0
jc_alert_called.is_delete = 0 AND
and
jc_alert_called.contact_user IS NOT NULL AND
a.contact_user like concat ('%',#{contactName},'%')
jc_alert_called.contact_user != ''
GROUP BY
jc_alert_called.contact_user
</select>
</select>
<select
id=
"getAddress"
resultType=
"string"
>
<select
id=
"getAddress"
resultType=
"string"
>
SELECT
SELECT
a
.address
jc_alert_called
.address
FROM
FROM
jc_alert_called
a
jc_alert_called
WHERE
WHERE
a.is_delete =0
jc_alert_called.is_delete =0 AND
and
jc_alert_called.address IS NOT NULL AND
a.address like concat ('%',#{address},'%')
jc_alert_called.address != ''
GROUP BY
jc_alert_called.address
</select>
</select>
<!-- 未结束警情列表 -->
<!-- 未结束警情列表 -->
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FirefightersServiceImpl.java
View file @
7f2d4b65
...
@@ -103,9 +103,9 @@ public class FirefightersServiceImpl extends BaseService<FirefightersDto, Firefi
...
@@ -103,9 +103,9 @@ public class FirefightersServiceImpl extends BaseService<FirefightersDto, Firefi
}
}
public
List
<
String
>
getFirefightersName
(
String
contactName
)
{
public
List
<
String
>
getFirefightersName
(
)
{
return
firefightersMapper
.
getFirefightersName
(
contactName
);
return
firefightersMapper
.
getFirefightersName
();
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/KeySiteServiceImpl.java
View file @
7f2d4b65
...
@@ -312,7 +312,7 @@ public class KeySiteServiceImpl extends BaseService<KeySiteDto, KeySite, KeySite
...
@@ -312,7 +312,7 @@ public class KeySiteServiceImpl extends BaseService<KeySiteDto, KeySite, KeySite
public
List
<
String
>
getAddress
(
String
address
){
public
List
<
String
>
getAddress
(){
return
keySiteMapper
.
getAddress
(
address
);
return
keySiteMapper
.
getAddress
();
}
}
}
}
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 @
7f2d4b65
...
@@ -344,9 +344,9 @@ public class AlertCalledController extends BaseController {
...
@@ -344,9 +344,9 @@ public class AlertCalledController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getAmosId"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getAmosId"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情填报联系人模糊查询"
,
notes
=
"警情填报联系人模糊查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情填报联系人模糊查询"
,
notes
=
"警情填报联系人模糊查询"
)
public
List
<
String
>
getContact
(
String
contactName
)
{
public
ResponseModel
<
List
<
String
>>
getContact
(
)
{
return
iAlertCalledService
.
getContactName
(
contactName
);
return
ResponseHelper
.
buildResponse
(
iAlertCalledService
.
getContactName
()
);
}
}
/**
/**
...
@@ -358,9 +358,9 @@ public class AlertCalledController extends BaseController {
...
@@ -358,9 +358,9 @@ public class AlertCalledController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getAddress"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getAddress"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情填报地址模糊查询"
,
notes
=
"警情填报地址模糊查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情填报地址模糊查询"
,
notes
=
"警情填报地址模糊查询"
)
public
List
<
String
>
getAddress
(
String
address
)
{
public
ResponseModel
<
List
<
String
>>
getAddress
(
)
{
return
iAlertCalledService
.
getCalledAddress
(
address
);
return
ResponseHelper
.
buildResponse
(
iAlertCalledService
.
getCalledAddress
()
);
}
}
/*2304 地址 联系人模糊查询缺失 陈召 2021-09-23 结束*/
/*2304 地址 联系人模糊查询缺失 陈召 2021-09-23 结束*/
...
...
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 @
7f2d4b65
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.function.Function
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -783,17 +779,19 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
...
@@ -783,17 +779,19 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
return
resultList
;
return
resultList
;
}
}
/*2304 地址 联系人模糊查询缺失 陈召 2021-09-23 开始*/
/*2304 地址 联系人模糊查询缺失 陈召 2021-09-23 开始*/
public
List
<
String
>
getContactName
(
String
contactName
){
public
List
<
String
>
getContactName
(
){
List
<
String
>
firefightersName
=
firefightersService
.
getFirefightersName
(
contactName
);
List
<
String
>
firefightersName
=
firefightersService
.
getFirefightersName
();
List
<
String
>
contactNames
=
alertCalledMapper
.
getContactName
(
contactName
);
List
<
String
>
contactNames
=
alertCalledMapper
.
getContactName
();
firefightersName
.
addAll
(
contactNames
);
firefightersName
.
addAll
(
contactNames
);
return
firefightersName
;
return
firefightersName
;
}
}
public
List
<
String
>
getCalledAddress
(
String
address
){
public
List
<
String
>
getCalledAddress
(
){
List
<
String
>
keyAddress
=
keySiteService
.
getAddress
(
address
);
List
<
String
>
keyAddress
=
keySiteService
.
getAddress
();
List
<
String
>
alertAddress
=
alertCalledMapper
.
getAddress
(
address
);
List
<
String
>
alertAddress
=
alertCalledMapper
.
getAddress
();
keyAddress
.
addAll
(
alertAddress
);
keyAddress
.
addAll
(
alertAddress
);
return
keyAddress
;
return
keyAddress
;
}
}
/*2304 地址 联系人模糊查询缺失 陈召 2021-09-23 结束*/
/*2304 地址 联系人模糊查询缺失 陈召 2021-09-23 结束*/
...
...
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