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
ada880eb
Commit
ada880eb
authored
Oct 19, 2022
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加预案信息相关接口
parent
12a60975
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
13 deletions
+7
-13
ContingencyInstanceInfoMapper.java
...as/business/dao/mapper/ContingencyInstanceInfoMapper.java
+1
-1
IContingencyPlanInstanceRepository.java
...ss/dao/repository/IContingencyPlanInstanceRepository.java
+0
-4
PlanVisual3dServiceImpl.java
...os/fas/business/service/impl/PlanVisual3dServiceImpl.java
+1
-1
ContingencyInstanceInfoMapper.xml
...ain/resources/db/mapper/ContingencyInstanceInfoMapper.xml
+5
-7
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/ContingencyInstanceInfoMapper.java
View file @
ada880eb
...
...
@@ -22,7 +22,7 @@ public interface ContingencyInstanceInfoMapper extends BaseMapper<ContingencyIns
List
<
ContingencyInstanceInfo
>
selectDisposalListPage
(
@Param
(
"current"
)
int
current
,
@Param
(
"size"
)
int
size
,
@Param
(
"orgCode"
)
String
orgCode
);
List
<
ContingencyPlanInstance
>
selectDisposalActionPage
(
@Param
(
"type"
)
String
type
,
@Param
(
"status"
)
String
status
,
@Param
(
"list"
)
List
<
String
>
roles
,
@Param
(
"batchNo"
)
String
batchNo
);
List
<
ContingencyPlanInstance
>
selectDisposalActionPage
(
@Param
(
"
current"
)
int
current
,
@Param
(
"size"
)
int
size
,
@Param
(
"
type"
)
String
type
,
@Param
(
"status"
)
String
status
,
@Param
(
"list"
)
List
<
String
>
roles
,
@Param
(
"batchNo"
)
String
batchNo
);
int
selectCountDisposalActionPage
(
@Param
(
"type"
)
String
type
,
@Param
(
"status"
)
String
status
,
@Param
(
"list"
)
List
<
String
>
roles
,
@Param
(
"batchNo"
)
String
batchNo
);
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/repository/IContingencyPlanInstanceRepository.java
View file @
ada880eb
...
...
@@ -86,8 +86,4 @@ public interface IContingencyPlanInstanceRepository extends BaseDao<ContingencyP
List
<
ContingencyPlanInstance
>
findByBatchNo
(
String
batchNo
);
@Query
(
value
=
"SELECT * FROM `contingency_plan_instance`"
+
" WHERE if(:?1 is not null or :?1 != '', record_type= ?1) "
+
" if(:?2 is not null or :?2 != '', and runstate = ?2) "
,
nativeQuery
=
true
)
List
<
ContingencyPlanInstance
>
selectDisposalActionPage
(
String
type
,
int
status
);
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanVisual3dServiceImpl.java
View file @
ada880eb
...
...
@@ -508,7 +508,7 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
page
.
setCurrent
(
1
);
start
=
0
;
}
List
<
ContingencyPlanInstance
>
list
=
contingencyInstanceInfoMapper
.
selectDisposalActionPage
(
type
,
status
,
roles
,
disposalId
);
List
<
ContingencyPlanInstance
>
list
=
contingencyInstanceInfoMapper
.
selectDisposalActionPage
(
(
int
)
start
,
size
,
type
,
status
,
roles
,
disposalId
);
page
.
setRecords
(
list
);
page
.
setTotal
(
total
);
}
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/ContingencyInstanceInfoMapper.xml
View file @
ada880eb
...
...
@@ -35,7 +35,8 @@
where is_delete = 0 and org_code = #{orgCode}
</select>
<select
id=
"selectDisposalActionPage"
resultType=
"com.yeejoin.amos.fas.dao.entity.ContingencyPlanInstance"
>
select * from contingency_plan_instance
<where>
select * from contingency_plan_instance
<where>
<if
test=
"batchNo != null and batchNo != ''"
>
batch_no = #{batchNo}
</if>
...
...
@@ -44,9 +45,7 @@
</if>
<if
test=
"status != null and status != ''"
>
and runstate = #{status}
</if>
<if
test=
"list != null and list.size() >0"
>
<foreach
collection=
"list"
item=
"role"
index=
"index"
open=
"and ("
close=
") "
separator=
"or"
>
...
...
@@ -54,10 +53,11 @@
</foreach>
</if>
</where>
LIMIT #{current}, #{size}
</select>
<select
id=
"selectCountDisposalActionPage"
resultType=
"java.lang.Integer"
>
select count(1) from contingency_plan_instance
<where>
select count(1) from contingency_plan_instance
<where>
<if
test=
"batchNo != null and batchNo != ''"
>
batch_no = #{batchNo}
</if>
...
...
@@ -66,9 +66,7 @@
</if>
<if
test=
"status != null and status != ''"
>
and runstate = #{status}
</if>
<if
test=
"list != null and list.size() >0"
>
<foreach
collection=
"list"
item=
"role"
index=
"index"
open=
"and ("
close=
") "
separator=
"or"
>
...
...
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