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
764ef792
Commit
764ef792
authored
Oct 10, 2022
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
近七日启停
parent
6ea71ccf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+4
-0
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+8
-0
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+5
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfigureController.java
View file @
764ef792
...
...
@@ -188,6 +188,10 @@ public class ConfigureController extends AbstractBaseController {
if
(!
CollectionUtils
.
isEmpty
(
fireCarInfoByWL
.
getRecords
()))
{
List
<
Map
<
String
,
Object
>>
records
=
fireCarInfoByWL
.
getRecords
();
records
.
forEach
(
item
->
{
String
carId
=
item
.
get
(
"id"
).
toString
();
Map
<
String
,
Object
>
fireCaStartBySeven
=
fireFightingSystemMapper
.
getFireCaStartBySeven
(
carId
);
Object
count
=
fireCaStartBySeven
.
get
(
"count"
);
item
.
put
(
"count"
,
count
.
toString
());
if
(
item
.
containsKey
(
"carStateDate"
)
&&
!
ObjectUtils
.
isEmpty
(
item
.
get
(
"carStateDate"
)))
{
try
{
Date
carStateDate
=
DateUtils
.
dateParse
(
item
.
get
(
"carStateDate"
).
toString
(),
"yyyy-MM-dd'T'HH:mm:ss"
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
764ef792
...
...
@@ -300,6 +300,14 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
Page
<
Map
<
String
,
Object
>>
getFireCarInfoByWL
(
Page
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
/**
* 物联监控页面消防车辆信息
*
* @param carId
* @return
*/
Map
<
String
,
Object
>
getFireCaStartBySeven
(
@Param
(
"carId"
)
String
carId
);
/**
* 获取水源信息
*
* @param bizOrgCode
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
764ef792
...
...
@@ -4356,4 +4356,9 @@
temp.notReturnd DESC
</select>
<select
id=
"getFireCaStartBySeven"
resultType=
"java.util.Map"
>
select count(1) as count from wl_car_property wcp where
wcp.create_date BETWEEN DATE_SUB(NOW(),INTERVAL 7 DAY) and now()
and equipment_index_key = 'FireCar_Start' and value = 'true' and car_id = #{carId}
</select>
</mapper>
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