Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes
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
ximai
mes
Commits
62a95130
Commit
62a95130
authored
Oct 30, 2024
by
温志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新排产警告
parent
a863e973
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
4 deletions
+13
-4
messages.properties
admin/src/main/resources/i18n/messages.properties
+1
-1
messages_en.properties
admin/src/main/resources/i18n/messages_en.properties
+1
-1
messages_th.properties
admin/src/main/resources/i18n/messages_th.properties
+3
-0
messages_zh_CN.properties
admin/src/main/resources/i18n/messages_zh_CN.properties
+1
-1
AlgorithmDataSourceImpl.java
.../ximai/mes/pro/schedule/impl/AlgorithmDataSourceImpl.java
+7
-1
No files found.
admin/src/main/resources/i18n/messages.properties
View file @
62a95130
...
@@ -184,7 +184,7 @@ pro.schedule.limit.min.duration=\u751F\u4EA7\u65F6\u957F\u5FC5\u987B\u5927\u4E8E
...
@@ -184,7 +184,7 @@ pro.schedule.limit.min.duration=\u751F\u4EA7\u65F6\u957F\u5FC5\u987B\u5927\u4E8E
pro.schedule.error.canNot.use.standardTime=
\u
4E0D
\u
652F
\u6301\u
5DE5
\u
65F6
\u5355\u
4F4D{0}
pro.schedule.error.canNot.use.standardTime=
\u
4E0D
\u
652F
\u6301\u
5DE5
\u
65F6
\u5355\u
4F4D{0}
pro.schedule.error.cal.error1=
\u
65E5
\u5386\u
7ED3
\u
675F
\u
65F6
\u
95F4
\u
5FC5
\u
987B
\u5927\u
4E8E
\u
5F00
\u
59CB
\u
65F6
\u
95F4
pro.schedule.error.cal.error1=
\u
65E5
\u5386\u
7ED3
\u
675F
\u
65F6
\u
95F4
\u
5FC5
\u
987B
\u5927\u
4E8E
\u
5F00
\u
59CB
\u
65F6
\u
95F4
pro.schedule.error.not.exist.solution=
\u
751F
\u
4EA7
\u
5DE5
\u5355\u
FF1A{0}
\u
751F
\u
4EA7
\u7248\u
672C
\u
672A
\u
627E
\u5230
pro.schedule.error.not.exist.solution=
\u
751F
\u
4EA7
\u
5DE5
\u5355\u
FF1A{0}
\u
751F
\u
4EA7
\u7248\u
672C
\u
672A
\u
627E
\u5230
pro.schedule.error.not.exist.process =
\u
751f
\u
4ea7
\u
5de5
\u5355\u
672a
\u
8bbe
\u
7f6e
\u
5de5
\u
827a
\u
8def
\u
7ebf
pro.schedule.error.not.exist.process =
\u
751f
\u
4ea7
\u
5de5
\u5355\u
ff1a{0}
\u
672a
\u
8bbe
\u
7f6e
\u
5de5
\u
827a
\u
8def
\u
7ebf
pro.schedule.error.fail=
\u6392\u
4EA7
\u5931\u
8D25{0},{1},{2}
pro.schedule.error.fail=
\u6392\u
4EA7
\u5931\u
8D25{0},{1},{2}
pro.schedule.error.not.exist.main.task=
\u
6CA1
\u6709\u
67E5
\u5230\u
4E3B
\u8981\u6392\u
4EA7
\u
4EFB
\u
52A1
pro.schedule.error.not.exist.main.task=
\u
6CA1
\u6709\u
67E5
\u5230\u
4E3B
\u8981\u6392\u
4EA7
\u
4EFB
\u
52A1
pro.schedule.error.split.quantity.lack=
\u
62C6
\u5206\u6570\u
91CF
\u
5FC5
\u9700\u
5C0F
\u
4E8E
\u6392\u
4EA7
\u6570\u
91CF
pro.schedule.error.split.quantity.lack=
\u
62C6
\u5206\u6570\u
91CF
\u
5FC5
\u9700\u
5C0F
\u
4E8E
\u6392\u
4EA7
\u6570\u
91CF
...
...
admin/src/main/resources/i18n/messages_en.properties
View file @
62a95130
...
@@ -181,7 +181,7 @@ pro.schedule.limit.min.duration=Production duration must be greater than 0.
...
@@ -181,7 +181,7 @@ pro.schedule.limit.min.duration=Production duration must be greater than 0.
pro.schedule.error.canNot.use.standardTime=The labor hour unit {0} is not supported.
pro.schedule.error.canNot.use.standardTime=The labor hour unit {0} is not supported.
pro.schedule.error.cal.error1=The calendar end time must be greater than the start time.
pro.schedule.error.cal.error1=The calendar end time must be greater than the start time.
pro.schedule.error.not.exist.solution=Production work order: {0} production version not found.
pro.schedule.error.not.exist.solution=Production work order: {0} production version not found.
pro.schedule.error.not.exist.process = Production work order process not found.
pro.schedule.error.not.exist.process = Production work order
: {0}
process not found.
pro.schedule.error.fail=Production scheduling failed {0}, {1}, {2}.
pro.schedule.error.fail=Production scheduling failed {0}, {1}, {2}.
pro.schedule.error.not.exist.main.task=No main production scheduling task found.
pro.schedule.error.not.exist.main.task=No main production scheduling task found.
pro.schedule.error.split.quantity.lack=The split quantity must be less than the production scheduling quantity.
pro.schedule.error.split.quantity.lack=The split quantity must be less than the production scheduling quantity.
...
...
admin/src/main/resources/i18n/messages_th.properties
View file @
62a95130
...
@@ -184,6 +184,9 @@ pro.schedule.error.not.null.vendor=\u0E15\u0E31\u0E27\u0E1B\u0E23\u0E30\u0E21\u0
...
@@ -184,6 +184,9 @@ pro.schedule.error.not.null.vendor=\u0E15\u0E31\u0E27\u0E1B\u0E23\u0E30\u0E21\u0
pro.schedule.error.cannot.use.standardtime
=
\u
0E44
\u
0E21
\u
0E48
\u
0E23
\u
0E2D
\u
0E07
\u
0E23
\u
0E31
\u
0E1A
\u
0E2B
\u
0E19
\u
0E48
\u
0E27
\u
0E22
\u
0E07
\u
0E32
\u
0E19
\u
0E0A
\u
0E31
\u
0E48
\u
0E27
\u
0E42
\u
0E21
\u
0E07{0}
pro.schedule.error.cannot.use.standardtime
=
\u
0E44
\u
0E21
\u
0E48
\u
0E23
\u
0E2D
\u
0E07
\u
0E23
\u
0E31
\u
0E1A
\u
0E2B
\u
0E19
\u
0E48
\u
0E27
\u
0E22
\u
0E07
\u
0E32
\u
0E19
\u
0E0A
\u
0E31
\u
0E48
\u
0E27
\u
0E42
\u
0E21
\u
0E07{0}
pro.schedule.error.cal.error1
=
\u
0E40
\u
0E27
\u
0E25
\u
0E32
\u
0E2A
\u
0E34
\u
0E49
\u
0E19
\u
0E2A
\u
0E38
\u
0E14
\u
0E02
\u
0E2D
\u
0E07
\u
0E1B
\u
0E0F
\u
0E34
\u
0E17
\u
0E34
\u
0E19
\u
0E15
\u
0E49
\u
0E2D
\u
0E07
\u
0E21
\u
0E32
\u
0E01
\u
0E01
\u
0E27
\u
0E48
\u
0E32
\u
0E40
\u
0E27
\u
0E25
\u
0E32
\u
0E40
\u
0E23
\u
0E34
\u
0E48
\u
0E21
\u
0E15
\u
0E49
\u
0E19
pro.schedule.error.cal.error1
=
\u
0E40
\u
0E27
\u
0E25
\u
0E32
\u
0E2A
\u
0E34
\u
0E49
\u
0E19
\u
0E2A
\u
0E38
\u
0E14
\u
0E02
\u
0E2D
\u
0E07
\u
0E1B
\u
0E0F
\u
0E34
\u
0E17
\u
0E34
\u
0E19
\u
0E15
\u
0E49
\u
0E2D
\u
0E07
\u
0E21
\u
0E32
\u
0E01
\u
0E01
\u
0E27
\u
0E48
\u
0E32
\u
0E40
\u
0E27
\u
0E25
\u
0E32
\u
0E40
\u
0E23
\u
0E34
\u
0E48
\u
0E21
\u
0E15
\u
0E49
\u
0E19
pro.schedule.error.not.exist.solution
=
\u
0e43
\u
0e1a
\u
0e2a
\u
0e31
\u
0e48
\u
0e07
\u
0e07
\u
0e32
\u
0e19
\u
0e02
\u
0e32
\u
0e14
\u
0e40
\u
0e2a
\u
0e49
\u
0e19
\u
0e17
\u
0e32
\u
0e07
\u
0e01
\u
0e23
\u
0e30
\u
0e1a
\u
0e27
\u
0e19
\u
0e01
\u
0e32
\u
0e23
pro.schedule.error.not.exist.solution
=
\u
0e43
\u
0e1a
\u
0e2a
\u
0e31
\u
0e48
\u
0e07
\u
0e07
\u
0e32
\u
0e19
\u
0e02
\u
0e32
\u
0e14
\u
0e40
\u
0e2a
\u
0e49
\u
0e19
\u
0e17
\u
0e32
\u
0e07
\u
0e01
\u
0e23
\u
0e30
\u
0e1a
\u
0e27
\u
0e19
\u
0e01
\u
0e32
\u
0e23
pro.schedule.error.not.exist.process
=
\u
0e43
\u
0e1a
\u
0e2a
\u
0e31
\u
0e48
\u
0e07
\u
0e07
\u
0e32
\u
0e19
\u
003a{0}
\u
0e44
\u
0e21
\u
0e48
\u
0e2d
\u
0e22
\u
0e39
\u
0e48
\u
0e43
\u
0e19
\u
0e2a
\u
0e16
\u
0e32
\u
0e19
\u
0e30
\u
0e17
\u
0e35
\u
0e48
\u
0e2a
\u
0e32
\u
0e21
\u
0e32
\u
0e23
\u
0e16
\u
0e41
\u
0e01
\u
0e49
\u
0e44
\u
0e02
\u
0e44
\u
0e14
\u
0e49
pro.schedule.error.fail
=
\u
0E01
\u
0E32
\u
0E23
\u
0E40
\u
0E23
\u
0E35
\u
0E22
\u
0E07
\u
0E25
\u
0E4D
\u
0E32
\u
0E14
\u
0E31
\u
0E1A
\u
0E25
\u
0E49
\u
0E21
\u
0E40
\u
0E2B
\u
0E25
\u
0E27{0},{1},{2}
pro.schedule.error.fail
=
\u
0E01
\u
0E32
\u
0E23
\u
0E40
\u
0E23
\u
0E35
\u
0E22
\u
0E07
\u
0E25
\u
0E4D
\u
0E32
\u
0E14
\u
0E31
\u
0E1A
\u
0E25
\u
0E49
\u
0E21
\u
0E40
\u
0E2B
\u
0E25
\u
0E27{0},{1},{2}
pro.schedule.error.not.exist.main.task
=
\u
0E44
\u
0E21
\u
0E48
\u
0E1E
\u
0E1A
\u
0E20
\u
0E32
\u
0E23
\u
0E01
\u
0E34
\u
0E08
\u
0E01
\u
0E32
\u
0E23
\u
0E16
\u
0E48
\u
0E32
\u
0E22
\u
0E42
\u
0E2D
\u
0E19
\u
0E2B
\u
0E25
\u
0E31
\u
0E01
pro.schedule.error.not.exist.main.task
=
\u
0E44
\u
0E21
\u
0E48
\u
0E1E
\u
0E1A
\u
0E20
\u
0E32
\u
0E23
\u
0E01
\u
0E34
\u
0E08
\u
0E01
\u
0E32
\u
0E23
\u
0E16
\u
0E48
\u
0E32
\u
0E22
\u
0E42
\u
0E2D
\u
0E19
\u
0E2B
\u
0E25
\u
0E31
\u
0E01
pro.schedule.error.split.quantity.black
=
\u
0E08
\u
0E4D
\u
0E32
\u
0E19
\u
0E27
\u
0E19
\u
0E17
\u
0E35
\u
0E48
\u
0E41
\u
0E1A
\u
0E48
\u
0E07
\u
0E08
\u
0E30
\u
0E15
\u
0E49
\u
0E2D
\u
0E07
\u
0E19
\u
0E49
\u
0E2D
\u
0E22
\u
0E01
\u
0E27
\u
0E48
\u
0E32
\u
0E08
\u
0E4D
\u
0E32
\u
0E19
\u
0E27
\u
0E19
\u
0E17
\u
0E35
\u
0E48
\u
0E1B
\u
0E25
\u
0E48
\u
0E2D
\u
0E22
\u
0E2D
\u
0E2D
\u
0E01
\u
0E21
\u
0E32
pro.schedule.error.split.quantity.black
=
\u
0E08
\u
0E4D
\u
0E32
\u
0E19
\u
0E27
\u
0E19
\u
0E17
\u
0E35
\u
0E48
\u
0E41
\u
0E1A
\u
0E48
\u
0E07
\u
0E08
\u
0E30
\u
0E15
\u
0E49
\u
0E2D
\u
0E07
\u
0E19
\u
0E49
\u
0E2D
\u
0E22
\u
0E01
\u
0E27
\u
0E48
\u
0E32
\u
0E08
\u
0E4D
\u
0E32
\u
0E19
\u
0E27
\u
0E19
\u
0E17
\u
0E35
\u
0E48
\u
0E1B
\u
0E25
\u
0E48
\u
0E2D
\u
0E22
\u
0E2D
\u
0E2D
\u
0E01
\u
0E21
\u
0E32
...
...
admin/src/main/resources/i18n/messages_zh_CN.properties
View file @
62a95130
...
@@ -184,7 +184,7 @@ pro.schedule.limit.min.duration=\u751F\u4EA7\u65F6\u957F\u5FC5\u987B\u5927\u4E8E
...
@@ -184,7 +184,7 @@ pro.schedule.limit.min.duration=\u751F\u4EA7\u65F6\u957F\u5FC5\u987B\u5927\u4E8E
pro.schedule.error.canNot.use.standardTime=
\u
4E0D
\u
652F
\u6301\u
5DE5
\u
65F6
\u5355\u
4F4D{0}
pro.schedule.error.canNot.use.standardTime=
\u
4E0D
\u
652F
\u6301\u
5DE5
\u
65F6
\u5355\u
4F4D{0}
pro.schedule.error.cal.error1=
\u
65E5
\u5386\u
7ED3
\u
675F
\u
65F6
\u
95F4
\u
5FC5
\u
987B
\u5927\u
4E8E
\u
5F00
\u
59CB
\u
65F6
\u
95F4
pro.schedule.error.cal.error1=
\u
65E5
\u5386\u
7ED3
\u
675F
\u
65F6
\u
95F4
\u
5FC5
\u
987B
\u5927\u
4E8E
\u
5F00
\u
59CB
\u
65F6
\u
95F4
pro.schedule.error.not.exist.solution=
\u
751F
\u
4EA7
\u
5DE5
\u5355\u
FF1A{0}
\u
751F
\u
4EA7
\u7248\u
672C
\u
672A
\u
627E
\u5230
pro.schedule.error.not.exist.solution=
\u
751F
\u
4EA7
\u
5DE5
\u5355\u
FF1A{0}
\u
751F
\u
4EA7
\u7248\u
672C
\u
672A
\u
627E
\u5230
pro.schedule.error.not.exist.process =
\u
751f
\u
4ea7
\u
5de5
\u5355\u
672a
\u
8bbe
\u
7f6e
\u
5de5
\u
827a
\u
8def
\u
7ebf
pro.schedule.error.not.exist.process =
\u
751f
\u
4ea7
\u
5de5
\u5355\u
ff1a{0}
\u
672a
\u
8bbe
\u
7f6e
\u
5de5
\u
827a
\u
8def
\u
7ebf
pro.schedule.error.fail=
\u6392\u
4EA7
\u5931\u
8D25{0},{1},{2}
pro.schedule.error.fail=
\u6392\u
4EA7
\u5931\u
8D25{0},{1},{2}
pro.schedule.error.not.exist.main.task=
\u
6CA1
\u6709\u
67E5
\u5230\u
4E3B
\u8981\u6392\u
4EA7
\u
4EFB
\u
52A1
pro.schedule.error.not.exist.main.task=
\u
6CA1
\u6709\u
67E5
\u5230\u
4E3B
\u8981\u6392\u
4EA7
\u
4EFB
\u
52A1
pro.schedule.error.split.quantity.lack=
\u
62C6
\u5206\u6570\u
91CF
\u
5FC5
\u9700\u
5C0F
\u
4E8E
\u6392\u
4EA7
\u6570\u
91CF
pro.schedule.error.split.quantity.lack=
\u
62C6
\u5206\u6570\u
91CF
\u
5FC5
\u9700\u
5C0F
\u
4E8E
\u6392\u
4EA7
\u6570\u
91CF
...
...
mes/src/main/java/com/ximai/mes/pro/schedule/impl/AlgorithmDataSourceImpl.java
View file @
62a95130
...
@@ -129,6 +129,7 @@ public class AlgorithmDataSourceImpl implements AlgorithmDataSource {
...
@@ -129,6 +129,7 @@ public class AlgorithmDataSourceImpl implements AlgorithmDataSource {
//按交期近,数量少排序
//按交期近,数量少排序
scheduleJobGroupList
.
sort
(
Comparator
.
comparing
(
ScheduleJobGroup:
:
getDemandDate
).
thenComparing
(
ScheduleJobGroup:
:
getQuantity
));
scheduleJobGroupList
.
sort
(
Comparator
.
comparing
(
ScheduleJobGroup:
:
getDemandDate
).
thenComparing
(
ScheduleJobGroup:
:
getQuantity
));
Long
i
=
0
l
;
Long
i
=
0
l
;
StringBuilder
msg
=
new
StringBuilder
();
for
(
ScheduleJobGroup
scheduleJobGroup
:
scheduleJobGroupList
)
{
for
(
ScheduleJobGroup
scheduleJobGroup
:
scheduleJobGroupList
)
{
ProWorkorder
firstWorkorder
=
scheduleJobGroup
.
getWorkorderList
().
get
(
0
);
ProWorkorder
firstWorkorder
=
scheduleJobGroup
.
getWorkorderList
().
get
(
0
);
QueryWrapper
<
ProWorkOrderProcess
>
processQuery
=
new
QueryWrapper
<
ProWorkOrderProcess
>();
QueryWrapper
<
ProWorkOrderProcess
>
processQuery
=
new
QueryWrapper
<
ProWorkOrderProcess
>();
...
@@ -137,7 +138,9 @@ public class AlgorithmDataSourceImpl implements AlgorithmDataSource {
...
@@ -137,7 +138,9 @@ public class AlgorithmDataSourceImpl implements AlgorithmDataSource {
List
<
ProWorkOrderProcess
>
productionOrderRoutings
=
proWorkOrderProcessService
.
selectListByQw
(
processQuery
);
List
<
ProWorkOrderProcess
>
productionOrderRoutings
=
proWorkOrderProcessService
.
selectListByQw
(
processQuery
);
//
//
if
(
productionOrderRoutings
==
null
){
if
(
productionOrderRoutings
==
null
){
throw
new
ServiceException
(
MessageUtils
.
message
(
"pro.schedule.error.not.exist.process"
,
firstWorkorder
.
getWorkorderCode
()));
msg
.
append
(
MessageUtils
.
message
(
"pro.schedule.error.not.exist.process"
,
firstWorkorder
.
getWorkorderCode
()));
msg
.
append
(
System
.
lineSeparator
());
continue
;
}
}
//生产版本查询
//生产版本查询
ProProductionSolutionVo
productionSolution
=
proProductionSolutionService
.
selectProProductionSolutionByProductionSolutionId
(
firstWorkorder
.
getProductionSolutionId
());
ProProductionSolutionVo
productionSolution
=
proProductionSolutionService
.
selectProProductionSolutionByProductionSolutionId
(
firstWorkorder
.
getProductionSolutionId
());
...
@@ -195,6 +198,9 @@ public class AlgorithmDataSourceImpl implements AlgorithmDataSource {
...
@@ -195,6 +198,9 @@ public class AlgorithmDataSourceImpl implements AlgorithmDataSource {
}
}
algJobs
.
add
(
job
);
algJobs
.
add
(
job
);
}
}
if
(
msg
.
length
()
>
0
){
throw
new
ServiceException
(
msg
.
toString
());
}
stopWatch
.
stop
();
stopWatch
.
stop
();
logger
.
info
(
String
.
format
(
"待排产数据加载耗时:%s"
,
stopWatch
.
getTotalTimeSeconds
()));
logger
.
info
(
String
.
format
(
"待排产数据加载耗时:%s"
,
stopWatch
.
getTotalTimeSeconds
()));
return
algJobs
;
return
algJobs
;
...
...
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