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
3e651828
Commit
3e651828
authored
Jul 27, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
a2c54fcc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
7 deletions
+35
-7
AlertCalledDto.java
.../yeejoin/amos/boot/module/jcs/api/dto/AlertCalledDto.java
+2
-2
AlertCalled.java
.../yeejoin/amos/boot/module/jcs/api/entity/AlertCalled.java
+2
-2
ESAlertCalled.java
...eejoin/amos/boot/module/jcs/api/entity/ESAlertCalled.java
+2
-2
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+29
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/AlertCalledDto.java
View file @
3e651828
...
...
@@ -86,10 +86,10 @@ public class AlertCalledDto extends BaseDto{
private
String
rescueGrid
;
@ApiModelProperty
(
value
=
"坐标x"
)
private
String
coordinateX
;
private
Double
coordinateX
;
@ApiModelProperty
(
value
=
"坐标y"
)
private
String
coordinateY
;
private
Double
coordinateY
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/entity/AlertCalled.java
View file @
3e651828
...
...
@@ -93,10 +93,10 @@ public class AlertCalled extends BaseEntity {
private
String
rescueGrid
;
@ApiModelProperty
(
value
=
"经度"
)
private
String
coordinateX
;
private
Double
coordinateX
;
@ApiModelProperty
(
value
=
"纬度"
)
private
String
coordinateY
;
private
Double
coordinateY
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/entity/ESAlertCalled.java
View file @
3e651828
...
...
@@ -90,10 +90,10 @@ public class ESAlertCalled {
/**
* 坐标x
*/
private
String
coordinateX
;
private
Double
coordinateX
;
/**
* 坐标y
*/
private
String
coordinateY
;
private
Double
coordinateY
;
}
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 @
3e651828
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
...
...
@@ -135,8 +136,27 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
public
AlertCalledObjsDto
createAlertCalled
(
AlertCalledObjsDto
alertCalledObjsDto
)
{
try
{
// 警情基本信息
AlertCalled
alertCalled
=
alertCalledObjsDto
.
getAlertCalled
();
alertCalled
.
setCallTime
(
new
Date
());
if
(
alertCalled
.
getAddress
()!=
null
){
String
[]
data
=
alertCalled
.
getAddress
().
split
(
"@address@"
);
alertCalled
.
setAddress
(
data
[
0
]);
if
(
data
[
1
]!=
null
&&!
""
.
equals
(
data
[
1
])){
JSONObject
jSONObject
=
JSON
.
parseObject
(
data
[
1
]);
if
(
jSONObject
.
getString
(
"longitude"
)!=
null
&&!
""
.
equals
(
jSONObject
.
getString
(
"longitude"
)))
{
alertCalled
.
setCoordinateX
(
Double
.
valueOf
(
jSONObject
.
getString
(
"longitude"
)));
}
if
(
jSONObject
.
getString
(
"longitude"
)!=
null
&&!
""
.
equals
(
jSONObject
.
getString
(
"longitude"
)))
{
alertCalled
.
setCoordinateY
(
Double
.
valueOf
(
jSONObject
.
getString
(
"latitude"
)));
}
}
}
alertCalled
.
setCallTime
(
new
Date
());
if
(
AlertStageEnums
.
RG
.
getValue
().
equals
(
alertCalled
.
getAlertSourceCode
())||
AlertStageEnums
.
RG
.
getValue
().
equals
(
alertCalled
.
getAlertSourceCode
())){
alertCalled
.
setType
(
"0"
);
...
...
@@ -197,6 +217,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
return
alertCalledObjsDto
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
RuntimeException
(
"报送失败,系统异常!"
);
}
}
...
...
@@ -405,4 +426,11 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
public
AlertCalled
getAlertCalledById
(
Long
id
)
{
return
this
.
getById
(
id
);
}
}
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