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
87020a33
Commit
87020a33
authored
Jan 06, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
b237057d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
0 deletions
+34
-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
+10
-0
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+12
-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 @
87020a33
...
...
@@ -111,6 +111,16 @@ public class CommonPageInfoParam extends CommonPageable {
private
String
status
;
public
void
setCleanStatus
(
String
cleanStatus
)
{
this
.
cleanStatus
=
cleanStatus
;
}
public
String
getCleanStatus
()
{
return
cleanStatus
;
}
private
String
cleanStatus
;
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/utils/CommonPageParamUtil.java
View file @
87020a33
...
...
@@ -57,6 +57,8 @@ public class CommonPageParamUtil {
param
.
setBuildIds
((
List
<
String
>)
queryRequests
.
get
(
i
).
getValue
());
}
else
if
(
"status"
.
equals
(
name
)){
param
.
setStatus
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
}
else
if
(
"cleanStatus"
.
equals
(
name
)){
param
.
setCleanStatus
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
}
}
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 @
87020a33
...
...
@@ -94,6 +94,8 @@ public class EquipmentAlarmController extends AbstractBaseController {
@RequestParam
(
value
=
"alarmType"
,
required
=
false
)
String
alarmType
,
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
,
@RequestParam
(
value
=
"buildIds"
,
required
=
false
)
List
<
String
>
buildIds
,
@RequestParam
(
value
=
"id"
,
required
=
false
)
String
id
,
@RequestParam
(
value
=
"cleanStatus"
,
required
=
false
)
String
cleanStatus
,
CommonPageable
commonPageable
)
{
if
(
commonPageable
.
getPageNumber
()
==
0
)
{
commonPageable
.
setPageNumber
(
1
);
...
...
@@ -139,6 +141,14 @@ public class EquipmentAlarmController extends AbstractBaseController {
request9
.
setName
(
"buildIds"
);
request9
.
setValue
(
ObjectUtils
.
isEmpty
(
buildIds
)
?
null
:
buildIds
);
queryRequests
.
add
(
request9
);
CommonRequest
request10
=
new
CommonRequest
();
request10
.
setName
(
"id"
);
request10
.
setValue
(
StringUtil
.
isNotEmpty
(
id
)
?
StringUtils
.
trimToNull
(
id
)
:
null
);
queryRequests
.
add
(
request10
);
CommonRequest
request11
=
new
CommonRequest
();
request11
.
setName
(
"cleanStatus"
);
request11
.
setValue
(
StringUtil
.
isNotEmpty
(
cleanStatus
)
?
StringUtils
.
trimToNull
(
cleanStatus
)
:
null
);
queryRequests
.
add
(
request11
);
CommonPageInfoParam
param
=
CommonPageParamUtil
.
fillCommonPageInfoParam
(
queryRequests
,
commonPageable
);
Page
<
Map
<
String
,
Object
>>
list
=
iEquipmentSpecificAlarmService
.
listPage
(
param
);
return
CommonResponseUtil
.
success
(
list
);
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
87020a33
...
...
@@ -180,6 +180,11 @@
fireEquipmentName,
concat(wlesal.equipment_specific_name,wlesal.equipment_specific_index_name) as alamContent,
if(confirm_type is null,'未处理','已处理') handleStatus,
IF (
wlesal.clean_time
<![CDATA[<>]]>
'',
'已消除',
'未消除'
) cleanStatus,
confirm_type as handleType,
wlesal.equipment_index_id AS fireEquipmentIndexId,
wlesal.equipment_specific_index_key AS fireEquipmentSpecificIndexKey,
...
...
@@ -237,6 +242,13 @@
open=
"("
close=
")"
index=
""
>
#{item}
</foreach>
</if>
<if
test=
"param.id!=null and param.id!=''"
>
AND d.fireEquipmentId = #{param.id}
</if>
<if
test=
"param.cleanStatus != null and param.cleanStatus != '' and param.cleanStatus == 1"
>
AND
d.cleanStatus = '已消除'
</if>
<if
test=
"param.cleanStatus != null and param.cleanStatus != '' and param.cleanStatus == 2"
>
AND
d.cleanStatus = '未消除'
</if>
</where>
ORDER BY d.createDate DESC
</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