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
d8799fed
Commit
d8799fed
authored
Jul 12, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
政平站新增点击更新后端
parent
64eb625b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
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
+5
-0
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+3
-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 @
d8799fed
...
@@ -121,6 +121,16 @@ public class CommonPageInfoParam extends CommonPageable {
...
@@ -121,6 +121,16 @@ public class CommonPageInfoParam extends CommonPageable {
private
String
indexTypeCode
;
private
String
indexTypeCode
;
private
String
fireEquipmentSpecificIndexKey
;
public
void
setFireEquipmentSpecificIndexKey
(
String
fireEquipmentSpecificIndexKey
)
{
this
.
fireEquipmentSpecificIndexKey
=
fireEquipmentSpecificIndexKey
;
}
public
String
getFireEquipmentSpecificIndexKey
()
{
return
fireEquipmentSpecificIndexKey
;
}
public
String
getIndexTypeCode
()
{
public
String
getIndexTypeCode
()
{
return
indexTypeCode
;
return
indexTypeCode
;
}
}
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/utils/CommonPageParamUtil.java
View file @
d8799fed
...
@@ -65,6 +65,8 @@ public class CommonPageParamUtil {
...
@@ -65,6 +65,8 @@ public class CommonPageParamUtil {
param
.
setIsRemovedFire
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
param
.
setIsRemovedFire
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
}
else
if
(
"equipmentCode"
.
equals
(
name
)){
}
else
if
(
"equipmentCode"
.
equals
(
name
)){
param
.
setEquipmentCode
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
param
.
setEquipmentCode
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
}
else
if
(
"specificIndexKey"
.
equals
(
name
)){
param
.
setFireEquipmentSpecificIndexKey
(
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 @
d8799fed
...
@@ -221,6 +221,7 @@ public class EquipmentAlarmController extends AbstractBaseController {
...
@@ -221,6 +221,7 @@ public class EquipmentAlarmController extends AbstractBaseController {
@RequestParam
(
value
=
"isRemovedFire"
,
required
=
false
)
String
isRemovedFire
,
@RequestParam
(
value
=
"isRemovedFire"
,
required
=
false
)
String
isRemovedFire
,
@RequestParam
(
value
=
"equipmentCode"
,
required
=
false
)
String
equipmentCode
,
@RequestParam
(
value
=
"equipmentCode"
,
required
=
false
)
String
equipmentCode
,
@RequestParam
(
value
=
"indexTypeCode"
,
required
=
false
)
String
indexTypeCode
,
@RequestParam
(
value
=
"indexTypeCode"
,
required
=
false
)
String
indexTypeCode
,
@RequestParam
(
value
=
"specificIndexKey"
,
required
=
false
)
String
specificIndexKey
,
CommonPageable
commonPageable
)
{
CommonPageable
commonPageable
)
{
List
<
CommonRequest
>
queryRequests
=
new
ArrayList
<>();
List
<
CommonRequest
>
queryRequests
=
new
ArrayList
<>();
CommonRequest
request
=
new
CommonRequest
();
CommonRequest
request
=
new
CommonRequest
();
...
@@ -280,6 +281,10 @@ public class EquipmentAlarmController extends AbstractBaseController {
...
@@ -280,6 +281,10 @@ public class EquipmentAlarmController extends AbstractBaseController {
request15
.
setName
(
"indexTypeCode"
);
request15
.
setName
(
"indexTypeCode"
);
request15
.
setValue
(
StringUtil
.
isNotEmpty
(
indexTypeCode
)
?
StringUtils
.
trimToNull
(
indexTypeCode
)
:
null
);
request15
.
setValue
(
StringUtil
.
isNotEmpty
(
indexTypeCode
)
?
StringUtils
.
trimToNull
(
indexTypeCode
)
:
null
);
queryRequests
.
add
(
request15
);
queryRequests
.
add
(
request15
);
CommonRequest
request16
=
new
CommonRequest
();
request16
.
setName
(
"specificIndexKey"
);
request16
.
setValue
(
StringUtil
.
isNotEmpty
(
specificIndexKey
)
?
StringUtils
.
trimToNull
(
specificIndexKey
)
:
null
);
queryRequests
.
add
(
request16
);
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 @
d8799fed
...
@@ -373,6 +373,9 @@
...
@@ -373,6 +373,9 @@
<if
test=
"param.indexTypeCode != null and param.indexTypeCode != ''"
>
AND
<if
test=
"param.indexTypeCode != null and param.indexTypeCode != ''"
>
AND
AND d.type == #{param.indexTypeCode}
AND d.type == #{param.indexTypeCode}
</if>
</if>
<if
test=
"param.fireEquipmentSpecificIndexKey != null and param.fireEquipmentSpecificIndexKey != ''"
>
AND d.fireEquipmentSpecificIndexKey like concat(concat("%",#{param.fireEquipmentSpecificIndexKey}),"%")
</if>
</where>
</where>
ORDER BY d.createDate DESC
ORDER BY d.createDate DESC
</select>
</select>
...
...
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