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
98ecb762
Commit
98ecb762
authored
May 12, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新消防炮查询接口
parent
3952d56d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
12 deletions
+38
-12
EquipmentInfoOnPlanController.java
...equipmanage/controller/EquipmentInfoOnPlanController.java
+3
-6
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+3
-1
IEquipmentInfoOnPlanService.java
...join/equipmanage/service/IEquipmentInfoOnPlanService.java
+1
-1
EquipmentInfoOnPlanServiceImpl.java
...ipmanage/service/impl/EquipmentInfoOnPlanServiceImpl.java
+3
-3
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+28
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentInfoOnPlanController.java
View file @
98ecb762
...
...
@@ -5,10 +5,7 @@ import com.yeejoin.equipmanage.service.IEquipmentInfoOnPlanService;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
...
@@ -36,8 +33,8 @@ public class EquipmentInfoOnPlanController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"消防炮信息"
,
notes
=
"消防炮信息"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/monitor"
,
method
=
RequestMethod
.
GET
)
public
ResponseModel
getFireMonitorInfo
()
{
List
<
Map
<
String
,
Object
>>
list
=
equipmentInfoOnPlanService
.
getFireMonitorInfo
();
public
ResponseModel
getFireMonitorInfo
(
@RequestParam
(
required
=
false
)
Long
fireEquipmentId
)
{
List
<
Map
<
String
,
Object
>>
list
=
equipmentInfoOnPlanService
.
getFireMonitorInfo
(
fireEquipmentId
);
return
ResponseHelper
.
buildResponse
(
list
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
98ecb762
...
...
@@ -203,6 +203,8 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
EquiplistSpecificBySystemVO
>
getListByWarehouseStructureId
(
Long
floorId
);
List
<
Map
<
String
,
Object
>>
getFireMonitorOrFirePumpInfo
(
@Param
(
"list"
)
String
[]
strings
);
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
@Param
(
"fireEquipmentId"
)
Long
fireEquipmentId
,
@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/IEquipmentInfoOnPlanService.java
View file @
98ecb762
...
...
@@ -20,7 +20,7 @@ public interface IEquipmentInfoOnPlanService {
* 消防炮信息
* @return
*/
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
();
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
Long
fireEquipmentId
);
/**
* 消防泵信息
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentInfoOnPlanServiceImpl.java
View file @
98ecb762
...
...
@@ -31,14 +31,14 @@ public class EquipmentInfoOnPlanServiceImpl implements IEquipmentInfoOnPlanServi
String
pumpCodes
;
@Override
public
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
()
{
public
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
Long
fireEquipmentId
)
{
String
[]
strings
=
monitorCodes
.
split
(
","
);
return
equipmentSpecificMapper
.
getFireMonitor
OrFirePumpInfo
(
strings
);
return
equipmentSpecificMapper
.
getFireMonitor
Info
(
fireEquipmentId
,
strings
);
}
@Override
public
List
<
Map
<
String
,
Object
>>
getFirePumpInfo
()
{
String
[]
strings
=
pumpCodes
.
split
(
","
);
return
equipmentSpecificMapper
.
getFire
MonitorOrFire
PumpInfo
(
strings
);
return
equipmentSpecificMapper
.
getFirePumpInfo
(
strings
);
}
}
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
98ecb762
...
...
@@ -1499,7 +1499,34 @@
det.amount > 0 and spe.warehouse_structure_id =#{floorId}
</select>
<select
id=
"getFireMonitorOrFirePumpInfo"
resultType=
"Map"
>
<select
id=
"getFireMonitorInfo"
resultType=
"Map"
>
SELECT
wes.name,
wes.position,
wes.equipment_code equipmentCode,
wes.realtime_iot_index_name realtimeIotIndexName,
wes.realtime_iot_index_key realtimeIotIndexKey,
wes.realtime_iot_index_value realtimeIotIndexValue,
wes.value_label valueLabel,
wes.realtime_iot_es_index_id realtimeIotSpecificIndexId,
wes.realtime_iot_index_update_date realtiemIotIndexUpdateDate,
wes.realtime_iot_index_id realtimeIotIndexId
FROM
wl_equipment_specific wes
LEFT JOIN f_equipment_fire_equipment fire ON wes.id = fire.fire_equipment_id
<where>
<if
test=
"list != null and list.length > 0"
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
"OR"
>
wes.equipment_code LIKE
<![CDATA[CONCAT(#{item},'%')]]>
</foreach>
</if>
<if
test=
"fireEquipmentId != null and fireEquipmentId != ''"
>
AND wes.id = #{fireEquipmentId}
</if>
</where>
ORDER BY realtiemIotIndexUpdateDate DESC
</select>
<select
id=
"getFirePumpInfo"
resultType=
"Map"
>
SELECT
wes.name,
wes.position,
...
...
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