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
437670cc
Commit
437670cc
authored
Oct 15, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
c50a27fd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
RequestData.java
.../yeejoin/amos/boot/module/common/api/dto/RequestData.java
+4
-1
AlertCalledMapper.xml
...e-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
+8
-0
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+4
-1
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/dto/RequestData.java
View file @
437670cc
...
...
@@ -38,8 +38,11 @@ public class RequestData {
private
String
address
;
@ApiModelProperty
(
value
=
"灾情状态"
)
private
int
status
=
0
;
private
Integer
status
;
@ApiModelProperty
(
value
=
"灾情ID"
)
private
Long
alertId
;
@ApiModelProperty
(
value
=
"类型code"
)
private
String
alertTypeCode
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
437670cc
...
...
@@ -55,6 +55,11 @@
and a.address like CONCAT('%',#{par.address},'%') || a.alert_type like CONCAT('%',#{par.address},'%')
</if>
<if
test=
'par.alertTypeCode!=null and par.alertTypeCode!="" '
>
and a.alert_type_code = #{par.alertTypeCode}
</if>
<if
test=
'par.whether24!=false'
>
and a.call_time
>
= (NOW() - interval 24 hour)
</if>
...
...
@@ -81,6 +86,9 @@
<if
test=
'par.address!=null and par.address!="" '
>
and a.address like CONCAT('%',#{par.address},'%')
</if>
<if
test=
'par.alertTypeCode!=null and par.alertTypeCode!="" '
>
and a.alert_type_code = #{par.alertTypeCode}
</if>
<if
test=
'par.whether24!=false'
>
and a.call_time
>
= (NOW() - interval 24 hour)
</if>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-command-biz/src/main/java/com/yeejoin/amos/boot/module/command/biz/controller/CommandController.java
View file @
437670cc
...
...
@@ -170,7 +170,10 @@ public class CommandController extends BaseController {
@GetMapping
(
value
=
"history/list"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情列表查询"
,
notes
=
"警情列表查询"
)
public
ResponseModel
<
Page
<
AlertCalledZhDto
>>
listhistoryPage
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
)
{
par
.
setStatus
(
1
);
if
(
par
.
getStatus
()==
null
){
par
.
setStatus
(
1
);
}
if
(
null
==
pageNum
||
null
==
pageSize
)
{
pageNum
=
1
;
pageSize
=
Integer
.
MAX_VALUE
;
...
...
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