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
7e4d39b7
Commit
7e4d39b7
authored
Apr 03, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
d034e375
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
PlanOperationRecordMapper.java
...os/fas/business/dao/mapper/PlanOperationRecordMapper.java
+2
-0
PlanVisual3dServiceImpl.java
...os/fas/business/service/impl/PlanVisual3dServiceImpl.java
+9
-8
PlanOperationRecordMapper.xml
...rc/main/resources/db/mapper/PlanOperationRecordMapper.xml
+5
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/PlanOperationRecordMapper.java
View file @
7e4d39b7
...
...
@@ -45,4 +45,6 @@ public interface PlanOperationRecordMapper {
Map
<
String
,
Object
>
getLatestFireEquipId
();
PlanRule
getPlanRuleByBatchNo
(
String
batchNo
);
int
getLastPlanPattern
();
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanVisual3dServiceImpl.java
View file @
7e4d39b7
...
...
@@ -290,15 +290,12 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
}
public
boolean
judgeIfPlanDataMock
(
String
batchNo
)
{
PlanOperationRecord
planOperationRecord
=
planOperationRecordDao
.
findByBatchNo
(
batchNo
);
if
(
planOperationRecord
==
null
)
{
throw
new
YeeException
(
"执行记录不存在"
)
;
if
(
StringUtil
.
isNotEmpty
(
batchNo
))
{
PlanOperationRecord
planOperationRecord
=
planOperationRecordDao
.
findByBatchNo
(
batchNo
);
return
planOperationRecord
.
getPlanPattern
()
==
4
?
true
:
false
;
}
else
{
PlanDetail
planDetail
=
planDetailDao
.
getOne
(
planOperationRecord
.
getPlanId
());
if
(
planDetail
==
null
)
{
throw
new
YeeException
(
"数字预案模型被删除"
);
}
return
planDetail
.
getStatus
()
==
4
?
true
:
false
;
int
planPattern
=
getLastPlanPattern
();
return
planPattern
==
4
?
true
:
false
;
}
}
...
...
@@ -688,4 +685,8 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
public
String
getLastBatchNo
()
{
return
planOperationRecordMapper
.
getLastBatchNo
();
}
public
int
getLastPlanPattern
()
{
return
planOperationRecordMapper
.
getLastPlanPattern
();
}
}
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/PlanOperationRecordMapper.xml
View file @
7e4d39b7
...
...
@@ -136,4 +136,8 @@
<select
id=
"getLatestFireEquipId"
resultType=
"map"
>
select fire_equipment_id AS fireEquipId, batch_no AS batchNo from c_plan_operation_record where is_delete = 0 order by create_date desc limit 1
</select>
<select
id=
"getLastPlanPattern"
resultType=
"java.lang.Integer"
>
select plan_pattern as planPattern from c_plan_operation_record where is_delete = 0 order by create_date desc limit 1
</select>
</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