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
51867d39
Commit
51867d39
authored
Feb 23, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
8e6ae18a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
PlanVisual3dController.java
.../amos/fas/business/controller/PlanVisual3dController.java
+13
-0
PlanVisual3dServiceImpl.java
...os/fas/business/service/impl/PlanVisual3dServiceImpl.java
+18
-0
IPlanVisual3dService.java
...amos/fas/business/service/intfc/IPlanVisual3dService.java
+8
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/PlanVisual3dController.java
View file @
51867d39
...
...
@@ -185,6 +185,19 @@ public class PlanVisual3dController extends BaseController {
}
@Permission
@ApiOperation
(
value
=
"根据批次号获取预案状态"
,
notes
=
"根据批次号获取预案状态"
)
@GetMapping
(
value
=
"/plan/getPlaneIfDataMock"
)
public
ResponseModel
getPlaneRecord
(
@RequestParam
(
"batchNo"
)
String
batchNo
)
{
if
(
StringUtils
.
isBlank
(
batchNo
))
{
batchNo
=
planVisual3dService
.
getLastBatchNo
();
}
if
(
StringUtils
.
isBlank
(
batchNo
))
{
return
CommonResponseUtil
.
successNew
(
null
);
}
return
CommonResponseUtil
.
successNew
(
planVisual3dService
.
judgeIfPlanDataMock
(
batchNo
));
}
@Permission
@ApiOperation
(
value
=
"预案智能辅助"
,
notes
=
"预案智能辅助"
)
@GetMapping
(
value
=
"/plan/getPlaneRecordOne"
)
public
ResponseModel
getPlaneRecordOne
()
{
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanVisual3dServiceImpl.java
View file @
51867d39
...
...
@@ -22,6 +22,7 @@ import com.yeejoin.amos.fas.business.vo.*;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
import
com.yeejoin.amos.fas.core.util.CommonResponseUtil
;
import
com.yeejoin.amos.fas.dao.entity.*
;
import
com.yeejoin.amos.fas.exception.YeeException
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.RoleModel
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
...
...
@@ -72,6 +73,9 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
private
IPlanOperationRecordDao
planOperationRecordDao
;
@Autowired
private
IPlanDetailDao
planDetailDao
;
@Autowired
private
ContingencyInstanceInfoMapper
contingencyInstanceInfoMapper
;
@Autowired
...
...
@@ -284,6 +288,20 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
}
@Override
public
boolean
judgeIfPlanDataMock
(
String
batchNo
)
{
PlanOperationRecord
planOperationRecord
=
planOperationRecordDao
.
findByBatchNo
(
batchNo
);
if
(
planOperationRecord
==
null
)
{
throw
new
YeeException
(
"执行记录不存在"
);
}
else
{
PlanDetail
planDetail
=
planDetailDao
.
getOne
(
planOperationRecord
.
getPlanId
());
if
(
planDetail
==
null
)
{
throw
new
YeeException
(
"数字预案模型被删除"
);
}
return
planDetail
.
getStatus
()
==
4
?
true
:
false
;
}
}
@Override
public
ToipResponse
getPlaneRecordOneByBatchNo
(
String
batchNo
)
{
// 根据批次号获取预案记录
String
instances
=
contingencyPlanInstanceRepository
.
queryRecordOne
(
batchNo
,
"HELPAREA"
);
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IPlanVisual3dService.java
View file @
51867d39
...
...
@@ -74,6 +74,14 @@ public interface IPlanVisual3dService {
ToipResponse
getPlaneRecordByBatchNo
(
String
batchNo
);
/**
* 根据批次号获取预案状态
*
* @param batchNo 批次号
* @return 预案记录
*/
boolean
judgeIfPlanDataMock
(
String
batchNo
);
/**
* 根据批次号获取预案记录
*
* @param batchNo 批次号
...
...
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