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
0e4e056d
Commit
0e4e056d
authored
Feb 17, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
ff9f804a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
2 deletions
+29
-2
CommonPageInfoParam.java
...yeejoin/equipmanage/common/utils/CommonPageInfoParam.java
+10
-0
CommonPageParamUtil.java
...yeejoin/equipmanage/common/utils/CommonPageParamUtil.java
+2
-0
EquipmentAlarmController.java
...join/equipmanage/controller/EquipmentAlarmController.java
+11
-2
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+6
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/utils/CommonPageInfoParam.java
View file @
0e4e056d
...
@@ -111,6 +111,16 @@ public class CommonPageInfoParam extends CommonPageable {
...
@@ -111,6 +111,16 @@ public class CommonPageInfoParam extends CommonPageable {
private
String
status
;
private
String
status
;
private
String
isRemoveShield
;
public
void
setIsRemoveShield
(
String
isRemoveShield
)
{
this
.
isRemoveShield
=
isRemoveShield
;
}
public
String
getIsRemoveShield
()
{
return
isRemoveShield
;
}
public
void
setCleanStatus
(
String
cleanStatus
)
{
public
void
setCleanStatus
(
String
cleanStatus
)
{
this
.
cleanStatus
=
cleanStatus
;
this
.
cleanStatus
=
cleanStatus
;
}
}
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/utils/CommonPageParamUtil.java
View file @
0e4e056d
...
@@ -59,6 +59,8 @@ public class CommonPageParamUtil {
...
@@ -59,6 +59,8 @@ public class CommonPageParamUtil {
param
.
setStatus
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
param
.
setStatus
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
}
else
if
(
"cleanStatus"
.
equals
(
name
)){
}
else
if
(
"cleanStatus"
.
equals
(
name
)){
param
.
setCleanStatus
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
param
.
setCleanStatus
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
}
else
if
(
"isRemoveShield"
.
equals
(
name
)){
param
.
setIsRemoveShield
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
}
}
}
}
if
(
commonPageable
!=
null
){
if
(
commonPageable
!=
null
){
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentAlarmController.java
View file @
0e4e056d
...
@@ -96,6 +96,7 @@ public class EquipmentAlarmController extends AbstractBaseController {
...
@@ -96,6 +96,7 @@ public class EquipmentAlarmController extends AbstractBaseController {
@RequestParam
(
value
=
"buildIds"
,
required
=
false
)
List
<
String
>
buildIds
,
@RequestParam
(
value
=
"buildIds"
,
required
=
false
)
List
<
String
>
buildIds
,
@RequestParam
(
value
=
"id"
,
required
=
false
)
String
id
,
@RequestParam
(
value
=
"id"
,
required
=
false
)
String
id
,
@RequestParam
(
value
=
"cleanStatus"
,
required
=
false
)
String
cleanStatus
,
@RequestParam
(
value
=
"cleanStatus"
,
required
=
false
)
String
cleanStatus
,
@RequestParam
(
value
=
"isRemoveShield"
,
required
=
false
)
String
isRemoveShield
,
CommonPageable
commonPageable
)
{
CommonPageable
commonPageable
)
{
if
(
commonPageable
.
getPageNumber
()
==
0
)
{
if
(
commonPageable
.
getPageNumber
()
==
0
)
{
commonPageable
.
setPageNumber
(
1
);
commonPageable
.
setPageNumber
(
1
);
...
@@ -148,7 +149,11 @@ public class EquipmentAlarmController extends AbstractBaseController {
...
@@ -148,7 +149,11 @@ public class EquipmentAlarmController extends AbstractBaseController {
CommonRequest
request11
=
new
CommonRequest
();
CommonRequest
request11
=
new
CommonRequest
();
request11
.
setName
(
"cleanStatus"
);
request11
.
setName
(
"cleanStatus"
);
request11
.
setValue
(
StringUtil
.
isNotEmpty
(
cleanStatus
)
?
StringUtils
.
trimToNull
(
cleanStatus
)
:
null
);
request11
.
setValue
(
StringUtil
.
isNotEmpty
(
cleanStatus
)
?
StringUtils
.
trimToNull
(
cleanStatus
)
:
null
);
queryRequests
.
add
(
request11
);
queryRequests
.
add
(
request1
);
CommonRequest
request12
=
new
CommonRequest
();
request12
.
setName
(
"isRemoveShield"
);
request12
.
setValue
(
StringUtil
.
isNotEmpty
(
isRemoveShield
)
?
StringUtils
.
trimToNull
(
isRemoveShield
)
:
null
);
queryRequests
.
add
(
request12
);
CommonPageInfoParam
param
=
CommonPageParamUtil
.
fillCommonPageInfoParam
(
queryRequests
,
commonPageable
);
CommonPageInfoParam
param
=
CommonPageParamUtil
.
fillCommonPageInfoParam
(
queryRequests
,
commonPageable
);
Page
<
Map
<
String
,
Object
>>
list
=
iEquipmentSpecificAlarmService
.
listPage
(
param
);
Page
<
Map
<
String
,
Object
>>
list
=
iEquipmentSpecificAlarmService
.
listPage
(
param
);
return
CommonResponseUtil
.
success
(
list
);
return
CommonResponseUtil
.
success
(
list
);
...
@@ -209,7 +214,7 @@ public class EquipmentAlarmController extends AbstractBaseController {
...
@@ -209,7 +214,7 @@ public class EquipmentAlarmController extends AbstractBaseController {
@RequestParam
(
value
=
"alarmType"
,
required
=
false
)
String
alarmType
,
@RequestParam
(
value
=
"alarmType"
,
required
=
false
)
String
alarmType
,
@RequestParam
(
value
=
"systemCode"
,
required
=
false
)
String
systemCode
,
@RequestParam
(
value
=
"systemCode"
,
required
=
false
)
String
systemCode
,
@RequestParam
(
value
=
"buildId"
,
required
=
false
)
String
buildId
,
@RequestParam
(
value
=
"buildId"
,
required
=
false
)
String
buildId
,
// @RequestParam(value = "equipmentCode", required = false) String equipmentCode
,
@RequestParam
(
value
=
"isRemoveShield"
,
required
=
false
)
String
isRemoveShield
,
@RequestParam
(
value
=
"id"
,
required
=
false
)
String
id
,
@RequestParam
(
value
=
"id"
,
required
=
false
)
String
id
,
@RequestParam
(
value
=
"cleanStatus"
,
required
=
false
)
String
cleanStatus
,
@RequestParam
(
value
=
"cleanStatus"
,
required
=
false
)
String
cleanStatus
,
CommonPageable
commonPageable
)
{
CommonPageable
commonPageable
)
{
...
@@ -255,6 +260,10 @@ public class EquipmentAlarmController extends AbstractBaseController {
...
@@ -255,6 +260,10 @@ public class EquipmentAlarmController extends AbstractBaseController {
request11
.
setName
(
"cleanStatus"
);
request11
.
setName
(
"cleanStatus"
);
request11
.
setValue
(
StringUtil
.
isNotEmpty
(
cleanStatus
)
?
StringUtils
.
trimToNull
(
cleanStatus
)
:
null
);
request11
.
setValue
(
StringUtil
.
isNotEmpty
(
cleanStatus
)
?
StringUtils
.
trimToNull
(
cleanStatus
)
:
null
);
queryRequests
.
add
(
request11
);
queryRequests
.
add
(
request11
);
CommonRequest
request12
=
new
CommonRequest
();
request12
.
setName
(
"isRemoveShield"
);
request12
.
setValue
(
StringUtil
.
isNotEmpty
(
isRemoveShield
)
?
StringUtils
.
trimToNull
(
isRemoveShield
)
:
null
);
queryRequests
.
add
(
request12
);
CommonPageInfoParam
param
=
CommonPageParamUtil
.
fillCommonPageInfoParam
(
queryRequests
,
commonPageable
);
CommonPageInfoParam
param
=
CommonPageParamUtil
.
fillCommonPageInfoParam
(
queryRequests
,
commonPageable
);
org
.
springframework
.
data
.
domain
.
Page
<
AlarmListDataVO
>
list
=
iEquipmentSpecificAlarmService
.
listAlarmsPage
(
param
);
org
.
springframework
.
data
.
domain
.
Page
<
AlarmListDataVO
>
list
=
iEquipmentSpecificAlarmService
.
listAlarmsPage
(
param
);
return
CommonResponseUtil
.
success
(
list
);
return
CommonResponseUtil
.
success
(
list
);
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
0e4e056d
...
@@ -248,6 +248,9 @@
...
@@ -248,6 +248,9 @@
<if
test=
"param.cleanStatus != null and param.cleanStatus != '' and param.cleanStatus == 2"
>
AND
<if
test=
"param.cleanStatus != null and param.cleanStatus != '' and param.cleanStatus == 2"
>
AND
d.cleanStatus = '未消除'
d.cleanStatus = '未消除'
</if>
</if>
<if
test=
"param.isRemoveShield != null and param.isRemoveShield != ''"
>
AND
d.type != 'SHIELD'
</if>
</where>
</where>
ORDER BY d.createDate DESC
ORDER BY d.createDate DESC
</select>
</select>
...
@@ -389,6 +392,9 @@
...
@@ -389,6 +392,9 @@
<if
test=
"param.cleanStatus != null and param.cleanStatus != '' and param.cleanStatus == 2"
>
AND
<if
test=
"param.cleanStatus != null and param.cleanStatus != '' and param.cleanStatus == 2"
>
AND
d.cleanStatus = '未消除'
d.cleanStatus = '未消除'
</if>
</if>
<if
test=
"param.isRemoveShield != null and param.isRemoveShield != ''"
>
AND
d.type != 'SHIELD'
</if>
ORDER BY d.createDate DESC
ORDER BY d.createDate DESC
</select>
</select>
<select
id=
"getAlarmList"
resultType=
"java.util.HashMap"
>
<select
id=
"getAlarmList"
resultType=
"java.util.HashMap"
>
...
...
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