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
2c25df06
Commit
2c25df06
authored
May 27, 2022
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改预案相关接口
parent
aa2d214c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
22 deletions
+39
-22
BuildingVideoVO.java
...yeejoin/equipmanage/common/entity/vo/BuildingVideoVO.java
+1
-1
EquipmentInfoOnPlanController.java
...equipmanage/controller/EquipmentInfoOnPlanController.java
+2
-2
EquipmentSpecificIndexMapper.java
...join/equipmanage/mapper/EquipmentSpecificIndexMapper.java
+2
-0
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+1
-1
EquipmentInfoOnPlanServiceImpl.java
...ipmanage/service/impl/EquipmentInfoOnPlanServiceImpl.java
+7
-15
EquipmentSpecificIndexMapper.xml
...rc/main/resources/mapper/EquipmentSpecificIndexMapper.xml
+24
-1
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+2
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/vo/BuildingVideoVO.java
View file @
2c25df06
...
@@ -31,7 +31,7 @@ public class BuildingVideoVO {
...
@@ -31,7 +31,7 @@ public class BuildingVideoVO {
private
String
token
;
private
String
token
;
@ApiModelProperty
(
"位置"
)
@ApiModelProperty
(
"位置"
)
private
String
location
=
"
1楼202房间
"
;
private
String
location
=
""
;
@ApiModelProperty
(
"设备id"
)
@ApiModelProperty
(
"设备id"
)
private
Long
specificId
;
private
Long
specificId
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentInfoOnPlanController.java
View file @
2c25df06
...
@@ -33,8 +33,8 @@ public class EquipmentInfoOnPlanController {
...
@@ -33,8 +33,8 @@ public class EquipmentInfoOnPlanController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"消防炮信息"
,
notes
=
"消防炮信息"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"消防炮信息"
,
notes
=
"消防炮信息"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/monitor"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/monitor"
,
method
=
RequestMethod
.
GET
)
public
ResponseModel
getFireMonitorInfo
(
@RequestParam
(
required
=
false
)
Long
fireE
quipmentId
)
{
public
ResponseModel
getFireMonitorInfo
(
@RequestParam
(
required
=
false
)
Long
e
quipmentId
)
{
List
<
Map
<
String
,
Object
>>
list
=
equipmentInfoOnPlanService
.
getFireMonitorInfo
(
fireE
quipmentId
);
List
<
Map
<
String
,
Object
>>
list
=
equipmentInfoOnPlanService
.
getFireMonitorInfo
(
e
quipmentId
);
return
ResponseHelper
.
buildResponse
(
list
);
return
ResponseHelper
.
buildResponse
(
list
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificIndexMapper.java
View file @
2c25df06
...
@@ -103,5 +103,7 @@ public interface EquipmentSpecificIndexMapper extends BaseMapper<EquipmentSpecif
...
@@ -103,5 +103,7 @@ public interface EquipmentSpecificIndexMapper extends BaseMapper<EquipmentSpecif
List
<
EquipmentIndexVO
>
getEquipIndexBySpecificIdIn
(
@Param
(
"list"
)
List
<
String
>
specificDetails
);
List
<
EquipmentIndexVO
>
getEquipIndexBySpecificIdIn
(
@Param
(
"list"
)
List
<
String
>
specificDetails
);
List
<
EquipmentIndexVO
>
getEquipIndexByIdIn
(
@Param
(
"list"
)
List
<
Long
>
specificIndexIds
);
List
<
EquipmentIndexVO
>
getEquipIndexByIdIn
(
@Param
(
"list"
)
List
<
Long
>
specificIndexIds
);
List
<
Map
<
String
,
Object
>>
getEquipSpecificIndexByUpdateDateDesc
();
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
2c25df06
...
@@ -203,7 +203,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -203,7 +203,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
EquiplistSpecificBySystemVO
>
getListByWarehouseStructureId
(
Long
floorId
);
List
<
EquiplistSpecificBySystemVO
>
getListByWarehouseStructureId
(
Long
floorId
);
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
@Param
(
"
fireE
quipmentId"
)
Long
fireEquipmentId
,
@Param
(
"list"
)
String
[]
strings
);
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
@Param
(
"
e
quipmentId"
)
Long
fireEquipmentId
,
@Param
(
"list"
)
String
[]
strings
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfo
(
@Param
(
"list"
)
String
[]
strings
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfo
(
@Param
(
"list"
)
String
[]
strings
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentInfoOnPlanServiceImpl.java
View file @
2c25df06
...
@@ -4,6 +4,7 @@ import com.google.common.collect.Maps;
...
@@ -4,6 +4,7 @@ import com.google.common.collect.Maps;
import
com.yeejoin.equipmanage.common.utils.DateUtils
;
import
com.yeejoin.equipmanage.common.utils.DateUtils
;
import
com.yeejoin.equipmanage.mapper.CarMapper
;
import
com.yeejoin.equipmanage.mapper.CarMapper
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificAlarmLogMapper
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificAlarmLogMapper
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificIndexMapper
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificMapper
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificMapper
;
import
com.yeejoin.equipmanage.service.IEquipmentInfoOnPlanService
;
import
com.yeejoin.equipmanage.service.IEquipmentInfoOnPlanService
;
import
org.apache.commons.compress.utils.Lists
;
import
org.apache.commons.compress.utils.Lists
;
...
@@ -31,6 +32,9 @@ public class EquipmentInfoOnPlanServiceImpl implements IEquipmentInfoOnPlanServi
...
@@ -31,6 +32,9 @@ public class EquipmentInfoOnPlanServiceImpl implements IEquipmentInfoOnPlanServi
@Autowired
@Autowired
private
EquipmentSpecificAlarmLogMapper
equipmentSpecificAlarmLogMapper
;
private
EquipmentSpecificAlarmLogMapper
equipmentSpecificAlarmLogMapper
;
@Autowired
EquipmentSpecificIndexMapper
equipmentSpecificIndexMapper
;
@Autowired
@Autowired
private
CarMapper
carMapper
;
private
CarMapper
carMapper
;
...
@@ -42,9 +46,9 @@ public class EquipmentInfoOnPlanServiceImpl implements IEquipmentInfoOnPlanServi
...
@@ -42,9 +46,9 @@ public class EquipmentInfoOnPlanServiceImpl implements IEquipmentInfoOnPlanServi
String
pumpCodes
;
String
pumpCodes
;
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
Long
fireE
quipmentId
)
{
public
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
Long
e
quipmentId
)
{
String
[]
strings
=
monitorCodes
.
split
(
","
);
String
[]
strings
=
monitorCodes
.
split
(
","
);
List
<
Map
<
String
,
Object
>>
list
=
equipmentSpecificMapper
.
getFireMonitorInfo
(
fireE
quipmentId
,
strings
);
List
<
Map
<
String
,
Object
>>
list
=
equipmentSpecificMapper
.
getFireMonitorInfo
(
e
quipmentId
,
strings
);
return
Optional
.
ofNullable
(
list
).
orElse
(
Lists
.
newArrayList
());
return
Optional
.
ofNullable
(
list
).
orElse
(
Lists
.
newArrayList
());
}
}
...
@@ -57,19 +61,7 @@ public class EquipmentInfoOnPlanServiceImpl implements IEquipmentInfoOnPlanServi
...
@@ -57,19 +61,7 @@ public class EquipmentInfoOnPlanServiceImpl implements IEquipmentInfoOnPlanServi
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
getOtherEquipInfo
()
{
public
List
<
Map
<
String
,
Object
>>
getOtherEquipInfo
()
{
Map
<
String
,
Object
>
map
=
equipmentSpecificAlarmLogMapper
.
getPlanRecord
();
List
<
Map
<
String
,
Object
>>
list
=
equipmentSpecificIndexMapper
.
getEquipSpecificIndexByUpdateDateDesc
();
Date
startTime
=
null
;
Long
equipmentId
=
null
;
if
(!
ValidationUtil
.
isEmpty
(
map
))
{
try
{
startTime
=
DateUtils
.
dateParse
(
String
.
valueOf
(
map
.
get
(
"startTime"
)),
DateUtils
.
DATE_TIME_T_PATTERN
);
equipmentId
=
Long
.
valueOf
(
String
.
valueOf
(
map
.
get
(
"equipmentId"
)));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
String
dateParam
=
startTime
==
null
?
null
:
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
startTime
);
List
<
Map
<
String
,
Object
>>
list
=
equipmentSpecificAlarmLogMapper
.
getOtherEquipInfo
(
dateParam
,
equipmentId
);
return
Optional
.
ofNullable
(
list
).
orElse
(
Lists
.
newArrayList
());
return
Optional
.
ofNullable
(
list
).
orElse
(
Lists
.
newArrayList
());
}
}
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificIndexMapper.xml
View file @
2c25df06
...
@@ -409,5 +409,27 @@ WHERE wles.id=#{id}
...
@@ -409,5 +409,27 @@ WHERE wles.id=#{id}
</if>
</if>
</where>
</where>
</select>
</select>
<select
id=
"getEquipSpecificIndexByUpdateDateDesc"
resultType=
"java.util.HashMap"
>
SELECT
esi.id,
es.`name` AS equipmentSpecificName,
esi.equipment_index_name AS equipmentSpecificIndexName,
IF (
esi.value_label = ''
OR esi.value_label IS NULL,
esi.`value`,
esi.value_label
) AS valueLabel,
es.position AS location,
esi.update_date AS createDate
FROM
`wl_equipment_specific_index` esi
LEFT JOIN wl_equipment_specific es ON es.id = esi.equipment_specific_id
WHERE
esi.`value` IS NOT NULL
ORDER BY
esi.update_date DESC
LIMIT 50
</select>
</mapper>
</mapper>
\ No newline at end of file
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
2c25df06
...
@@ -1521,8 +1521,8 @@
...
@@ -1521,8 +1521,8 @@
wes.equipment_code LIKE
<![CDATA[CONCAT(#{item},'%')]]>
wes.equipment_code LIKE
<![CDATA[CONCAT(#{item},'%')]]>
</foreach>
</foreach>
</if>
</if>
<if
test=
"
fireEquipmentId != null and fireE
quipmentId != ''"
>
<if
test=
"
equipmentId != null and e
quipmentId != ''"
>
AND
wes.id = #{fireE
quipmentId}
AND
fire.equipment_id = #{e
quipmentId}
</if>
</if>
</where>
</where>
ORDER BY realtiemIotIndexUpdateDate DESC
ORDER BY realtiemIotIndexUpdateDate DESC
...
...
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