Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
zlmy-cloud
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
zlmy
zlmy-cloud
Commits
ae2625cc
Commit
ae2625cc
authored
Dec 05, 2025
by
鲁鸿波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
所有作业3天未完成的,需要重新发起申请。
危险作业到交底环节后按固定时间判断是否超时,超时自动取消
parent
9d92e76e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
HazardWorkPlanScheduler.java
.../com/testor/common/scheduler/HazardWorkPlanScheduler.java
+3
-3
DangerousOperationValidator.java
...a/com/testor/common/util/DangerousOperationValidator.java
+1
-1
THazardWorkPlan.xml
...boot/src/main/resources/mapper/hazard/THazardWorkPlan.xml
+1
-1
No files found.
zlmy-modules/zlmy-boot/src/main/java/com/testor/common/scheduler/HazardWorkPlanScheduler.java
View file @
ae2625cc
...
...
@@ -98,7 +98,7 @@ public class HazardWorkPlanScheduler {
/**
* 定时刷新字典缓存(每 10 分钟刷新一次,保证字典变更能生效)
*/
//
@Scheduled(cron = "0 0/10 * * * ?")
@Scheduled
(
cron
=
"0 0/10 * * * ?"
)
public
void
refreshDictCacheScheduled
()
{
refreshDictCache
();
}
...
...
@@ -126,9 +126,9 @@ public class HazardWorkPlanScheduler {
}
/**
*
每5分钟检查安全许可通过后仍在运行的作业
*
定时刷新开关(每 30 分钟刷新一次,保证开关变更能生效)
*/
//@Scheduled(cron = "0 0/5
* * * ?")
@Scheduled
(
cron
=
"0 */30
* * * ?"
)
public
void
refreshSwitch
()
{
if
(!
isSchedulerEnabled
())
{
log
.
debug
(
"refreshSwitch: 调度被禁用(字典值非 {})"
,
DICT_ENABLE_VALUE
);
...
...
zlmy-modules/zlmy-boot/src/main/java/com/testor/common/util/DangerousOperationValidator.java
View file @
ae2625cc
...
...
@@ -65,7 +65,7 @@ public class DangerousOperationValidator {
// 动火作业
Map
<
DangerLevel
,
Integer
>
hotWorkMap
=
new
HashMap
<>();
hotWorkMap
.
put
(
DangerLevel
.
HIGH
,
8
);
hotWorkMap
.
put
(
DangerLevel
.
MEDIUM
,
12
);
hotWorkMap
.
put
(
DangerLevel
.
MEDIUM
,
8
);
hotWorkMap
.
put
(
DangerLevel
.
LOW
,
72
);
TIME_LIMITS
.
put
(
OperationType
.
HOT_WORK
,
hotWorkMap
);
...
...
zlmy-modules/zlmy-boot/src/main/resources/mapper/hazard/THazardWorkPlan.xml
View file @
ae2625cc
...
...
@@ -85,7 +85,7 @@
<select
id=
"selectHazardLicensePassTime"
resultType=
"com.testor.module.hazard.model.domain.THazardWorkPlan"
>
select * from t_hazard_work_plan
where status ='0' and hazard_license_pass_time is not null
where status ='0' and hazard_license_pass_time is not null
and hazard_license_pass_time !=''
and work_status in('4','8','9','10')
</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