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
1dbf52c5
Commit
1dbf52c5
authored
Jan 20, 2021
by
田涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
38af93cf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
ContingencyPlanController.java
...os/fas/business/controller/ContingencyPlanController.java
+2
-1
ContingencyPlanServiceImpl.java
...fas/business/service/impl/ContingencyPlanServiceImpl.java
+2
-1
IContingencyPlanService.java
...s/fas/business/service/intfc/IContingencyPlanService.java
+1
-1
PlanOperationRecordMapper.xml
...rc/main/resources/db/mapper/PlanOperationRecordMapper.xml
+7
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/ContingencyPlanController.java
View file @
1dbf52c5
...
...
@@ -192,6 +192,7 @@ public class ContingencyPlanController extends BaseController {
@ApiParam
(
value
=
"启动时间右边界"
)
@RequestParam
(
value
=
"startTimeRight"
,
required
=
false
)
Long
startTimeRightStamp
,
@ApiParam
(
value
=
"执行方式"
)
@RequestParam
(
value
=
"executionType"
,
required
=
false
)
Integer
executionType
,
@ApiParam
(
value
=
"运行模式"
)
@RequestParam
(
value
=
"planPattern"
,
required
=
false
)
Integer
planPattern
,
@ApiParam
(
value
=
"预案id"
)
@RequestParam
(
value
=
"planId"
,
required
=
false
)
Long
planId
,
@ApiParam
(
value
=
"预案名称"
)
@RequestParam
(
value
=
"planName"
,
required
=
false
)
String
planName
)
{
Date
startTimeLeft
=
startTimeLeftStamp
==
null
?
null
:
new
Date
(
startTimeLeftStamp
);
Date
startTimeRight
=
startTimeRightStamp
==
null
?
null
:
new
Date
(
startTimeRightStamp
);
...
...
@@ -199,7 +200,7 @@ public class ContingencyPlanController extends BaseController {
throw
new
YeeException
(
"分页参数有误"
);
}
Page
page
=
new
Page
(
current
,
pageSize
);
return
CommonResponseUtil2
.
success
(
contingencyPlanService
.
recordListByPage
(
page
,
planName
,
classifyId
,
startTimeLeft
,
startTimeRight
,
executionType
,
planPattern
));
return
CommonResponseUtil2
.
success
(
contingencyPlanService
.
recordListByPage
(
page
,
plan
Id
,
plan
Name
,
classifyId
,
startTimeLeft
,
startTimeRight
,
executionType
,
planPattern
));
}
@ApiOperation
(
value
=
"第一次查看预案记录"
)
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
1dbf52c5
...
...
@@ -271,9 +271,10 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
}
@Override
public
Page
recordListByPage
(
Page
page
,
String
planName
,
List
<
Long
>
classifyId
,
Date
startTimeLeft
,
Date
startTimeRight
,
Integer
executionType
,
Integer
planPattern
)
{
public
Page
recordListByPage
(
Page
page
,
Long
planId
,
String
planName
,
List
<
Long
>
classifyId
,
Date
startTimeLeft
,
Date
startTimeRight
,
Integer
executionType
,
Integer
planPattern
)
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"planName"
,
planName
);
params
.
put
(
"planId"
,
planId
);
params
.
put
(
"start"
,
(
int
)
((
page
.
getCurrent
()
-
1
)
*
page
.
getSize
()));
params
.
put
(
"size"
,
(
int
)
page
.
getSize
());
params
.
put
(
"classifyId"
,
classifyId
);
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IContingencyPlanService.java
View file @
1dbf52c5
...
...
@@ -114,6 +114,6 @@ public interface IContingencyPlanService {
List
<
HashMap
<
String
,
Object
>>
getRecordList
(
String
batchNo
);
Page
recordListByPage
(
Page
page
,
String
planName
,
List
<
Long
>
classifyId
,
Date
startTimeLeft
,
Date
startTimeRight
,
Integer
executionType
,
Integer
planPattern
);
Page
recordListByPage
(
Page
page
,
Long
planId
,
String
planName
,
List
<
Long
>
classifyId
,
Date
startTimeLeft
,
Date
startTimeRight
,
Integer
executionType
,
Integer
planPattern
);
}
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/PlanOperationRecordMapper.xml
View file @
1dbf52c5
...
...
@@ -9,6 +9,9 @@
LEFT JOIN c_plan_detail cpd ON
cpor.plan_id = cpd.id
<where>
<if
test=
"planId != null"
>
AND cpor.plan_id = #{planId}
</if>
<if
test=
"planName != null and planName.length > 0"
>
AND cpd.plan_name LIKE CONCAT('%', #{planName},'%')
</if>
...
...
@@ -49,12 +52,15 @@
, cpd.plan_name planName
, (SELECT classify_name FROM c_plan_classify_tree cpct WHERE id = cpd.classify_id) classifyName
, cpd.plan_range planRange
, TIMESTAMPDIFF(SECOND, cpor.start_time,
ifnull(cpor.end_time, now())
) spendTime
, TIMESTAMPDIFF(SECOND, cpor.start_time,
cpor.end_time
) spendTime
FROM
c_plan_operation_record cpor
LEFT JOIN c_plan_detail cpd ON
cpor.plan_id = cpd.id
<where>
<if
test=
"planId != null"
>
AND cpor.plan_id = #{planId}
</if>
<if
test=
"planName != null and planName.length > 0"
>
AND cpd.plan_name LIKE CONCAT('%', #{planName},'%')
</if>
...
...
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