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
ad8b2c19
Commit
ad8b2c19
authored
Aug 12, 2026
by
DESKTOP-VKRD9QF\Administration
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日历
parent
97f10b74
Expand all
Show 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 @
ad8b2c19
...
@@ -3,6 +3,8 @@ package com.aps.service;
...
@@ -3,6 +3,8 @@ package com.aps.service;
import
com.aps.entity.ProdEquipSpecialCal
;
import
com.aps.entity.ProdEquipSpecialCal
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
java.util.Collection
;
/**
/**
* <p>
* <p>
* 设备特殊日历配置表:记录特定工位/设备在指定时间段的特殊日历规则(如节假日、维护期等) 服务类
* 设备特殊日历配置表:记录特定工位/设备在指定时间段的特殊日历规则(如节假日、维护期等) 服务类
...
@@ -18,4 +20,19 @@ public interface ProdEquipSpecialCalService extends IService<ProdEquipSpecialCal
...
@@ -18,4 +20,19 @@ public interface ProdEquipSpecialCalService extends IService<ProdEquipSpecialCal
*/
*/
void
copyFromEquipCapacityDef
(
String
sceneId
);
void
copyFromEquipCapacityDef
(
String
sceneId
);
/**
* 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 @
ad8b2c19
...
@@ -121,9 +121,6 @@ public class LanuchServiceImpl implements LanuchService {
...
@@ -121,9 +121,6 @@ public class LanuchServiceImpl implements LanuchService {
}
}
sceneId
=
sceneConfig
.
getSceneId
();
sceneId
=
sceneConfig
.
getSceneId
();
prodEquipSpecialCalService
.
copyFromEquipCapacityDef
(
sceneId
);
List
<
MesSchedule
>
mesSchedules
=
mesScheduleService
.
lambdaQuery
()
List
<
MesSchedule
>
mesSchedules
=
mesScheduleService
.
lambdaQuery
()
.
eq
(
MesSchedule:
:
getIsDeleted
,
0
)
.
eq
(
MesSchedule:
:
getIsDeleted
,
0
)
.
eq
(
MesSchedule:
:
getScheduleUserId
,
username
)
.
eq
(
MesSchedule:
:
getScheduleUserId
,
username
)
...
@@ -844,6 +841,11 @@ public class LanuchServiceImpl implements LanuchService {
...
@@ -844,6 +841,11 @@ public class LanuchServiceImpl implements LanuchService {
}
}
if
(!
CollectionUtils
.
isEmpty
(
allProdEquipments
))
{
if
(!
CollectionUtils
.
isEmpty
(
allProdEquipments
))
{
prodEquipmentService
.
saveBatch
(
allProdEquipments
,
500
);
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
());
log
.
info
(
"完成{}个工单的工序转换"
,
order
.
size
());
...
...
src/main/java/com/aps/service/impl/ProdEquipSpecialCalServiceImpl.java
View file @
ad8b2c19
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