Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
66522a18
Commit
66522a18
authored
Feb 24, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务 15327
parent
1af5d25f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
WarehouseStructureMapper.java
...mos/fas/business/dao/mapper/WarehouseStructureMapper.java
+2
-0
ContingencyPlanServiceImpl.java
...fas/business/service/impl/ContingencyPlanServiceImpl.java
+1
-1
WarehouseStructureMapper.xml
...src/main/resources/db/mapper/WarehouseStructureMapper.xml
+9
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/WarehouseStructureMapper.java
View file @
66522a18
...
@@ -13,4 +13,6 @@ import org.apache.ibatis.annotations.Param;
...
@@ -13,4 +13,6 @@ import org.apache.ibatis.annotations.Param;
public
interface
WarehouseStructureMapper
extends
BaseMapper
<
WarehouseStructure
>
{
public
interface
WarehouseStructureMapper
extends
BaseMapper
<
WarehouseStructure
>
{
WarehouseStructure
getMessageById
(
@Param
(
"id"
)
Long
id
);
WarehouseStructure
getMessageById
(
@Param
(
"id"
)
Long
id
);
WarehouseStructure
getMessageByRiskId
(
@Param
(
"id"
)
Long
id
);
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
66522a18
...
@@ -227,7 +227,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
...
@@ -227,7 +227,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
instanceInfo
.
setName
(
detail
.
getPlanName
());
instanceInfo
.
setName
(
detail
.
getPlanName
());
instanceInfo
.
setOrgCode
(
detail
.
getOrgCode
());
instanceInfo
.
setOrgCode
(
detail
.
getOrgCode
());
WarehouseStructure
warehouseStructure
=
warehouseStructureMapper
.
getMessageBy
Id
(
equipmentSpecific
.
getWarehouseStructure
Id
());
WarehouseStructure
warehouseStructure
=
warehouseStructureMapper
.
getMessageBy
RiskId
(
equipmentSpecific
.
get
Id
());
if
(
warehouseStructure
!=
null
)
{
if
(
warehouseStructure
!=
null
)
{
instanceInfo
.
setPosition
(
warehouseStructure
.
getName
());
instanceInfo
.
setPosition
(
warehouseStructure
.
getName
());
}
}
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/WarehouseStructureMapper.xml
View file @
66522a18
...
@@ -7,4 +7,12 @@
...
@@ -7,4 +7,12 @@
select * from wl_warehouse_structure where id = #{id}
select * from wl_warehouse_structure where id = #{id}
</select>
</select>
<select
id=
"getMessageByRiskId"
resultType=
"com.yeejoin.amos.fas.dao.entity.WarehouseStructure"
>
select * from wl_warehouse_structure where id = (
SELECT risk_source_id from f_equipment where id = (
select equipment_id from f_equipment_fire_equipment where fire_equipment_id = #{id}
)
)
</select>
</mapper>
</mapper>
\ No newline at end of file
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