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
19a3f8e7
Commit
19a3f8e7
authored
Oct 19, 2022
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加预案信息相关接口
parent
ada880eb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
9 deletions
+58
-9
ContingencyInstanceInfoMapper.java
...as/business/dao/mapper/ContingencyInstanceInfoMapper.java
+4
-1
PlanVisual3dServiceImpl.java
...os/fas/business/service/impl/PlanVisual3dServiceImpl.java
+31
-8
IPlanVisual3dService.java
...amos/fas/business/service/intfc/IPlanVisual3dService.java
+3
-0
ContingencyInstanceInfoMapper.xml
...ain/resources/db/mapper/ContingencyInstanceInfoMapper.xml
+20
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/ContingencyInstanceInfoMapper.java
View file @
19a3f8e7
...
@@ -24,5 +24,8 @@ public interface ContingencyInstanceInfoMapper extends BaseMapper<ContingencyIns
...
@@ -24,5 +24,8 @@ public interface ContingencyInstanceInfoMapper extends BaseMapper<ContingencyIns
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
);
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
);
int
selectCountDisposalActionPage
(
@Param
(
"type"
)
String
type
,
@Param
(
"status"
)
String
status
,
@Param
(
"list"
)
List
<
String
>
roles
,
@Param
(
"batchNo"
)
String
batchNo
);
List
<
ContingencyPlanInstance
>
selectDisposalActionList
(
@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/service/impl/PlanVisual3dServiceImpl.java
View file @
19a3f8e7
...
@@ -471,8 +471,6 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
...
@@ -471,8 +471,6 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
@Override
@Override
public
Page
<
ContingencyPlanInstance
>
selectDisposalActionPage
(
int
current
,
int
size
,
String
disposalId
,
List
<
RoleModel
>
roleModelList
,
int
dataType
)
{
public
Page
<
ContingencyPlanInstance
>
selectDisposalActionPage
(
int
current
,
int
size
,
String
disposalId
,
List
<
RoleModel
>
roleModelList
,
int
dataType
)
{
List
<
String
>
roles
=
new
ArrayList
<>();
List
<
String
>
roles
=
new
ArrayList
<>();
String
type
=
"OPERATE"
;
String
type
=
"OPERATE"
;
String
status
=
""
;
String
status
=
""
;
Page
<
ContingencyPlanInstance
>
page
=
new
Page
<>(
current
,
size
);
Page
<
ContingencyPlanInstance
>
page
=
new
Page
<>(
current
,
size
);
...
@@ -481,7 +479,7 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
...
@@ -481,7 +479,7 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
roles
.
add
(
roleModel
.
getRoleName
());
roles
.
add
(
roleModel
.
getRoleName
());
}
}
// 根据当前用户预案角色、未执行动作
// 根据当前用户预案角色、未执行动作
status
=
"1"
;
status
=
"1"
;
}
else
if
(
"2"
.
equals
(
String
.
valueOf
(
dataType
)))
{
}
else
if
(
"2"
.
equals
(
String
.
valueOf
(
dataType
)))
{
// 当前用户预案角色、全部动作数据
// 当前用户预案角色、全部动作数据
for
(
RoleModel
roleModel
:
roleModelList
)
{
for
(
RoleModel
roleModel
:
roleModelList
)
{
...
@@ -494,10 +492,10 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
...
@@ -494,10 +492,10 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
// }
// }
int
total
=
0
;
int
total
=
0
;
if
(
ObjectUtils
.
isEmpty
(
status
)){
if
(
ObjectUtils
.
isEmpty
(
status
))
{
total
=
contingencyInstanceInfoMapper
.
selectCountDisposalActionPage
(
type
,
null
,
roles
,
disposalId
);
total
=
contingencyInstanceInfoMapper
.
selectCountDisposalActionPage
(
type
,
null
,
roles
,
disposalId
);
}
else
{
}
else
{
total
=
contingencyInstanceInfoMapper
.
selectCountDisposalActionPage
(
type
,
status
,
roles
,
disposalId
);
total
=
contingencyInstanceInfoMapper
.
selectCountDisposalActionPage
(
type
,
status
,
roles
,
disposalId
);
}
}
long
start
=
(
page
.
getCurrent
()
-
1
)
*
page
.
getSize
();
long
start
=
(
page
.
getCurrent
()
-
1
)
*
page
.
getSize
();
...
@@ -508,11 +506,36 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
...
@@ -508,11 +506,36 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
page
.
setCurrent
(
1
);
page
.
setCurrent
(
1
);
start
=
0
;
start
=
0
;
}
}
List
<
ContingencyPlanInstance
>
list
=
contingencyInstanceInfoMapper
.
selectDisposalActionPage
((
int
)
start
,
size
,
type
,
status
,
roles
,
disposalId
);
List
<
ContingencyPlanInstance
>
list
=
contingencyInstanceInfoMapper
.
selectDisposalActionPage
((
int
)
start
,
size
,
type
,
status
,
roles
,
disposalId
);
page
.
setRecords
(
list
);
page
.
setRecords
(
list
);
page
.
setTotal
(
total
);
page
.
setTotal
(
total
);
}
}
return
page
;
return
page
;
}
}
@Override
public
List
<
ContingencyPlanInstance
>
selectDisposalActionList
(
int
current
,
int
size
,
String
disposalId
,
List
<
RoleModel
>
roleModelList
,
int
dataType
)
{
List
<
String
>
roles
=
new
ArrayList
<>();
String
type
=
"OPERATE"
;
String
status
=
""
;
Page
<
ContingencyPlanInstance
>
page
=
new
Page
<>(
current
,
size
);
if
(
"1"
.
equals
(
String
.
valueOf
(
dataType
)))
{
for
(
RoleModel
roleModel
:
roleModelList
)
{
roles
.
add
(
roleModel
.
getRoleName
());
}
// 根据当前用户预案角色、未执行动作
status
=
"1"
;
}
else
if
(
"2"
.
equals
(
String
.
valueOf
(
dataType
)))
{
// 当前用户预案角色、全部动作数据
for
(
RoleModel
roleModel
:
roleModelList
)
{
roles
.
add
(
roleModel
.
getRoleName
());
}
}
// else {
// // 当前预案全部动作
//
// }
return
contingencyInstanceInfoMapper
.
selectDisposalActionList
(
type
,
status
,
roles
,
disposalId
);
}
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IPlanVisual3dService.java
View file @
19a3f8e7
...
@@ -101,4 +101,7 @@ public interface IPlanVisual3dService {
...
@@ -101,4 +101,7 @@ public interface IPlanVisual3dService {
Page
<
ContingencyPlanInstance
>
getPlaneRecordByNew
(
Integer
pageNum
,
Integer
size
,
String
batchNo
);
Page
<
ContingencyPlanInstance
>
getPlaneRecordByNew
(
Integer
pageNum
,
Integer
size
,
String
batchNo
);
void
replyMessage
(
AgencyUserModel
user
,
ContingencyPlanInstance
dto
);
void
replyMessage
(
AgencyUserModel
user
,
ContingencyPlanInstance
dto
);
List
<
ContingencyPlanInstance
>
selectDisposalActionList
(
int
current
,
int
size
,
String
disposalId
,
List
<
RoleModel
>
roleModelList
,
int
dataType
);
}
}
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/ContingencyInstanceInfoMapper.xml
View file @
19a3f8e7
...
@@ -76,5 +76,25 @@
...
@@ -76,5 +76,25 @@
</where>
</where>
</select>
</select>
<select
id=
"selectDisposalActionList"
resultType=
"com.yeejoin.amos.fas.dao.entity.ContingencyPlanInstance"
>
select * from contingency_plan_instance
<where>
<if
test=
"batchNo != null and batchNo != ''"
>
batch_no = #{batchNo}
</if>
<if
test=
"type != null and type != ''"
>
and record_type = #{type}
</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"
>
role_code like concat('%',#{role},'%')
</foreach>
</if>
</where>
</select>
</mapper>
</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