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
17bb97b7
Commit
17bb97b7
authored
Jun 21, 2021
by
xinglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)接警
parent
b2dfeeba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
AlertCalled.java
.../yeejoin/amos/boot/module/jcs/api/entity/AlertCalled.java
+1
-1
AlertCalledController.java
...boot/module/jcs/biz/controller/AlertCalledController.java
+8
-5
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/entity/AlertCalled.java
View file @
17bb97b7
...
@@ -110,5 +110,5 @@ public class AlertCalled extends BaseEntity {
...
@@ -110,5 +110,5 @@ public class AlertCalled extends BaseEntity {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"是否处警"
)
@ApiModelProperty
(
value
=
"是否处警"
)
private
Boolean
isFatherAlert
;
private
Boolean
isFatherAlert
=
false
;
}
}
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 @
17bb97b7
...
@@ -27,7 +27,6 @@ import org.springframework.web.bind.annotation.*;
...
@@ -27,7 +27,6 @@ import org.springframework.web.bind.annotation.*;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
@@ -153,8 +152,10 @@ public class AlertCalledController extends BaseController {
...
@@ -153,8 +152,10 @@ public class AlertCalledController extends BaseController {
if
(
alertCalled
.
getCallTimeStart
()
!=
null
&&
alertCalled
.
getCallTimeEnd
()
!=
null
)
{
if
(
alertCalled
.
getCallTimeStart
()
!=
null
&&
alertCalled
.
getCallTimeEnd
()
!=
null
)
{
alertCalledQueryWrapper
.
between
(
"call_time"
,
alertCalled
.
getCallTimeStart
(),
alertCalled
.
getCallTimeEnd
());
alertCalledQueryWrapper
.
between
(
"call_time"
,
alertCalled
.
getCallTimeStart
(),
alertCalled
.
getCallTimeEnd
());
}
}
if
(
!
ValidationUtil
.
isEmpty
(
alertCalled
.
getIsFatherAlert
()))
{
if
(
alertCalled
.
getIsFatherAlert
())
{
// 0:接警;1:处警
alertCalledQueryWrapper
.
isNull
(
"father_alert"
);
alertCalledQueryWrapper
.
isNull
(
"father_alert"
);
}
else
{
alertCalledQueryWrapper
.
isNotNull
(
"father_alert"
);
}
}
Arrays
.
stream
(
aClass
.
getDeclaredFields
()).
forEach
(
field
->
{
Arrays
.
stream
(
aClass
.
getDeclaredFields
()).
forEach
(
field
->
{
try
{
try
{
...
@@ -169,7 +170,7 @@ public class AlertCalledController extends BaseController {
...
@@ -169,7 +170,7 @@ public class AlertCalledController extends BaseController {
}
else
if
(
type
.
equals
(
String
.
class
))
{
}
else
if
(
type
.
equals
(
String
.
class
))
{
String
fileValue
=
(
String
)
field
.
get
(
alertCalled
);
String
fileValue
=
(
String
)
field
.
get
(
alertCalled
);
alertCalledQueryWrapper
.
eq
(
name
,
fileValue
);
alertCalledQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
if
(
type
.
equals
(
Boolean
.
class
))
{
}
else
if
(
type
.
equals
(
Boolean
.
class
)
&&
!
"IS_FATHER_ALERT"
.
equals
(
name
)
)
{
Boolean
fileValue
=
(
Boolean
)
field
.
get
(
alertCalled
);
Boolean
fileValue
=
(
Boolean
)
field
.
get
(
alertCalled
);
alertCalledQueryWrapper
.
eq
(
name
,
fileValue
);
alertCalledQueryWrapper
.
eq
(
name
,
fileValue
);
}
}
...
@@ -205,8 +206,10 @@ public class AlertCalledController extends BaseController {
...
@@ -205,8 +206,10 @@ public class AlertCalledController extends BaseController {
if
(
alertCalled
.
getCallTimeStart
()
!=
null
&&
alertCalled
.
getCallTimeEnd
()
!=
null
)
{
if
(
alertCalled
.
getCallTimeStart
()
!=
null
&&
alertCalled
.
getCallTimeEnd
()
!=
null
)
{
alertCalledQueryWrapper
.
between
(
"call_time"
,
alertCalled
.
getCallTimeStart
(),
alertCalled
.
getCallTimeEnd
());
alertCalledQueryWrapper
.
between
(
"call_time"
,
alertCalled
.
getCallTimeStart
(),
alertCalled
.
getCallTimeEnd
());
}
}
if
(
!
ValidationUtil
.
isEmpty
(
alertCalled
.
getIsFatherAlert
()))
{
if
(
alertCalled
.
getIsFatherAlert
())
{
// 0:接警;1:处警
alertCalledQueryWrapper
.
isNull
(
"father_alert"
);
alertCalledQueryWrapper
.
isNull
(
"father_alert"
);
}
else
{
alertCalledQueryWrapper
.
isNotNull
(
"father_alert"
);
}
}
Arrays
.
stream
(
aClass
.
getDeclaredFields
()).
forEach
(
field
->
{
Arrays
.
stream
(
aClass
.
getDeclaredFields
()).
forEach
(
field
->
{
try
{
try
{
...
@@ -221,7 +224,7 @@ public class AlertCalledController extends BaseController {
...
@@ -221,7 +224,7 @@ public class AlertCalledController extends BaseController {
}
else
if
(
type
.
equals
(
String
.
class
))
{
}
else
if
(
type
.
equals
(
String
.
class
))
{
String
fileValue
=
(
String
)
field
.
get
(
alertCalled
);
String
fileValue
=
(
String
)
field
.
get
(
alertCalled
);
alertCalledQueryWrapper
.
eq
(
name
,
fileValue
);
alertCalledQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
if
(
type
.
equals
(
Boolean
.
class
))
{
}
else
if
(
type
.
equals
(
Boolean
.
class
)
&&
!
"IS_FATHER_ALERT"
.
equals
(
name
)
)
{
Boolean
fileValue
=
(
Boolean
)
field
.
get
(
alertCalled
);
Boolean
fileValue
=
(
Boolean
)
field
.
get
(
alertCalled
);
alertCalledQueryWrapper
.
eq
(
name
,
fileValue
);
alertCalledQueryWrapper
.
eq
(
name
,
fileValue
);
}
}
...
...
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