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
d034e375
Commit
d034e375
authored
Mar 31, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
740b18f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
ContingencyPlanInstanceMapper.java
...as/business/dao/mapper/ContingencyPlanInstanceMapper.java
+2
-0
ContingencyInstanceImpl.java
...os/fas/business/service/impl/ContingencyInstanceImpl.java
+5
-1
ContingencyPlanInstanceMapper.xml
...ain/resources/db/mapper/ContingencyPlanInstanceMapper.xml
+7
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/ContingencyPlanInstanceMapper.java
View file @
d034e375
...
@@ -42,4 +42,6 @@ public interface ContingencyPlanInstanceMapper extends BaseMapper<ContingencyPla
...
@@ -42,4 +42,6 @@ public interface ContingencyPlanInstanceMapper extends BaseMapper<ContingencyPla
List
<
Map
<
String
,
Object
>>
getWaterInfo
(
@Param
(
"current"
)
Integer
current
,
@Param
(
"size"
)
Integer
size
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getWaterInfo
(
@Param
(
"current"
)
Integer
current
,
@Param
(
"size"
)
Integer
size
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
long
countWater
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
long
countWater
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
Integer
getPlanInstanceCountByCondition
(
@Param
(
"category"
)
String
category
,
@Param
(
"recordType"
)
String
recordType
,
@Param
(
"batchNo"
)
String
batchNo
);
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyInstanceImpl.java
View file @
d034e375
...
@@ -157,7 +157,11 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
...
@@ -157,7 +157,11 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
int
count
=
repository
.
countByBatchNo
(
instanceNo
);
int
count
=
repository
.
countByBatchNo
(
instanceNo
);
planInstance
.
setSort
(++
count
);
planInstance
.
setSort
(++
count
);
ContingencyPlanInstance
contingencyPlanInstance
=
contingencyInstance
.
updateExtendColumn
(
planInstance
);
ContingencyPlanInstance
contingencyPlanInstance
=
contingencyInstance
.
updateExtendColumn
(
planInstance
);
ContingencyPlanInstance
instance
=
this
.
repository
.
save
(
contingencyPlanInstance
);
Integer
num
=
contingencyPlanInstanceMapper
.
getPlanInstanceCountByCondition
(
contingencyPlanInstance
.
getCategory
(),
contingencyPlanInstance
.
getRecordType
(),
contingencyPlanInstance
.
getBatchNo
());
ContingencyPlanInstance
instance
=
new
ContingencyPlanInstance
();
if
(
0
==
num
)
{
instance
=
this
.
repository
.
save
(
contingencyPlanInstance
);
}
// 异步数据同步之消息发送
// 异步数据同步之消息发送
// contingencyPlanInstanceDataSync(instance);
// contingencyPlanInstanceDataSync(instance);
return
instance
;
return
instance
;
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/ContingencyPlanInstanceMapper.xml
View file @
d034e375
...
@@ -389,4 +389,10 @@
...
@@ -389,4 +389,10 @@
levelStatus DESC,sequence_nbr DESC
levelStatus DESC,sequence_nbr DESC
) b
) b
</select>
</select>
<select
id=
"getPlanInstanceCountByCondition"
resultType=
"java.lang.Integer"
>
select count(1) from
contingency_plan_instance
where category = #{category} AND record_type = #{recordType} AND batch_no = #{batchNo} AND is_delete = 0
</select>
</mapper>
</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