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
9a2be87d
Commit
9a2be87d
authored
Sep 20, 2023
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改设备告警查询条件
parent
29f8d0ec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
EquipmentAlarmController.java
...join/equipmanage/controller/EquipmentAlarmController.java
+8
-2
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+3
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentAlarmController.java
View file @
9a2be87d
...
...
@@ -106,11 +106,17 @@ public class EquipmentAlarmController extends AbstractBaseController {
List
<
CommonRequest
>
queryRequests
=
new
ArrayList
<>();
CommonRequest
request
=
new
CommonRequest
();
request
.
setName
(
"beginDate"
);
request
.
setValue
(
StringUtil
.
isNotEmpty
(
beginDate
)
?
StringUtils
.
trimToNull
(
beginDate
).
substring
(
0
,
10
)
+
" 00:00:00"
:
null
);
request
.
setValue
(
beginDate
);
if
(
StringUtil
.
isNotEmpty
(
beginDate
)
&&
StringUtils
.
trimToNull
(
beginDate
).
length
()
==
10
)
{
request
.
setValue
(
StringUtils
.
trimToNull
(
beginDate
).
substring
(
0
,
10
)
+
" 00:00:00"
);
}
queryRequests
.
add
(
request
);
CommonRequest
request1
=
new
CommonRequest
();
request1
.
setName
(
"endDate"
);
request1
.
setValue
(
StringUtil
.
isNotEmpty
(
endDate
)
?
StringUtils
.
trimToNull
(
endDate
).
substring
(
0
,
10
)
+
" 23:59:59"
:
null
);
request1
.
setValue
(
endDate
);
if
(
StringUtil
.
isNotEmpty
(
endDate
)
&&
StringUtils
.
trimToNull
(
endDate
).
length
()
==
10
)
{
request1
.
setValue
(
StringUtils
.
trimToNull
(
endDate
).
substring
(
0
,
10
)
+
" 23:59:59"
);
}
queryRequests
.
add
(
request1
);
CommonRequest
request2
=
new
CommonRequest
();
request2
.
setName
(
"warehouseStructureName"
);
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
9a2be87d
...
...
@@ -226,8 +226,9 @@
</if>
<if
test=
"param.beginDate!=null"
>
AND wlesal.create_date
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endDate!=null"
>
AND wlesal.create_date
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.alarmType == 'BREAKDOWN'"
>
AND wlesal.type = #{param.alarmType}
</if>
<if
test=
"param.alarmType == 'FIREALARM'"
>
AND wlesal.type = #{param.alarmType}
</if>
<if
test=
"param.alarmType != null and param.alarmType != ''"
>
AND UPPER(wlesal.type) = UPPER(#{param.alarmType})
</if>
<if
test=
"param.isFireAlarm == 'false'"
>
AND wlesal.type != 'FIREALARM'
</if>
<if
test=
"param.orgCode != null and param.orgCode != ''"
>
AND wlesal.org_code = #{param.orgCode}
</if>
<if
test=
"param.type != null and param.type != ''"
>
AND wlesal.type = #{param.type}
</if>
...
...
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