Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HYH.APSJ
Project
Project
Details
Activity
Releases
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
佟礼
HYH.APSJ
Commits
5a208354
Commit
5a208354
authored
Aug 12, 2026
by
Tong Li
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into tl
parents
f8d2a066
ad8b2c19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
236 additions
and
51 deletions
+236
-51
ProdEquipSpecialCalService.java
...main/java/com/aps/service/ProdEquipSpecialCalService.java
+18
-1
LanuchServiceImpl.java
src/main/java/com/aps/service/impl/LanuchServiceImpl.java
+5
-3
ProdEquipSpecialCalServiceImpl.java
.../com/aps/service/impl/ProdEquipSpecialCalServiceImpl.java
+213
-47
No files found.
src/main/java/com/aps/service/ProdEquipSpecialCalService.java
View file @
5a208354
...
...
@@ -3,6 +3,8 @@ package com.aps.service;
import
com.aps.entity.ProdEquipSpecialCal
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
java.util.Collection
;
/**
* <p>
* 设备特殊日历配置表:记录特定工位/设备在指定时间段的特殊日历规则(如节假日、维护期等) 服务类
...
...
@@ -18,4 +20,19 @@ public interface ProdEquipSpecialCalService extends IService<ProdEquipSpecialCal
*/
void
copyFromEquipCapacityDef
(
String
sceneId
);
}
\ No newline at end of file
/**
* Copy calculated equipment shift capacity rows into the scene calendar table.
*/
void
copyFromEquipShiftCapacity
(
String
sceneId
);
/**
* Copy calculated equipment shift capacity rows for the scene's plan resources.
*/
void
copyFromEquipShiftCapacity
(
String
sceneId
,
Collection
<
Long
>
planResourceIds
);
/**
* Prefer calculated equipment shift capacity rows, then fall back to legacy capacity definitions.
*/
void
copyCalendarWithFallback
(
String
sceneId
,
Collection
<
Long
>
planResourceIds
);
}
src/main/java/com/aps/service/impl/LanuchServiceImpl.java
View file @
5a208354
...
...
@@ -121,9 +121,6 @@ public class LanuchServiceImpl implements LanuchService {
}
sceneId
=
sceneConfig
.
getSceneId
();
prodEquipSpecialCalService
.
copyFromEquipCapacityDef
(
sceneId
);
List
<
MesSchedule
>
mesSchedules
=
mesScheduleService
.
lambdaQuery
()
.
eq
(
MesSchedule:
:
getIsDeleted
,
0
)
.
eq
(
MesSchedule:
:
getScheduleUserId
,
username
)
...
...
@@ -844,6 +841,11 @@ public class LanuchServiceImpl implements LanuchService {
}
if
(!
CollectionUtils
.
isEmpty
(
allProdEquipments
))
{
prodEquipmentService
.
saveBatch
(
allProdEquipments
,
500
);
Set
<
Long
>
planResourceIds
=
allProdEquipments
.
stream
()
.
map
(
ProdEquipment:
:
getEquipId
)
.
filter
(
Objects:
:
nonNull
)
.
collect
(
Collectors
.
toSet
());
prodEquipSpecialCalService
.
copyCalendarWithFallback
(
sceneId
,
planResourceIds
);
}
log
.
info
(
"完成{}个工单的工序转换"
,
order
.
size
());
...
...
src/main/java/com/aps/service/impl/ProdEquipSpecialCalServiceImpl.java
View file @
5a208354
This diff is collapsed.
Click to expand it.
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