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
043a4ebd
Commit
043a4ebd
authored
Nov 03, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排产不限制生产版本、排产任务保存工序序号
parent
5392ff01
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
Task.java
mes/src/main/java/com/ximai/mes/pro/schedule/Task.java
+5
-0
AlgorithmDataSourceImpl.java
.../ximai/mes/pro/schedule/impl/AlgorithmDataSourceImpl.java
+1
-5
AlgorithmResultProcessImpl.java
...mai/mes/pro/schedule/impl/AlgorithmResultProcessImpl.java
+1
-0
ProTaskMapper.xml
mes/src/main/resources/mapper/pro/task/ProTaskMapper.xml
+3
-0
No files found.
mes/src/main/java/com/ximai/mes/pro/schedule/Task.java
View file @
043a4ebd
...
...
@@ -63,6 +63,11 @@ public class Task {
*/
private
String
processName
;
/**
* 工序序列号
*/
private
String
idx
;
/**
* 工作中心名称
*/
...
...
mes/src/main/java/com/ximai/mes/pro/schedule/impl/AlgorithmDataSourceImpl.java
View file @
043a4ebd
...
...
@@ -142,11 +142,6 @@ public class AlgorithmDataSourceImpl implements AlgorithmDataSource {
msg
.
append
(
System
.
lineSeparator
());
continue
;
}
//生产版本查询
ProProductionSolutionVo
productionSolution
=
proProductionSolutionService
.
selectProProductionSolutionByProductionSolutionId
(
firstWorkorder
.
getProductionSolutionId
());
if
(
productionSolution
==
null
){
throw
new
ServiceException
(
MessageUtils
.
message
(
"pro.schedule.error.not.exist.solution"
,
firstWorkorder
.
getWorkorderCode
()));
}
// 工序分组 生成Job及Task
Job
job
=
new
Job
(
scheduleJobGroup
.
getWorkorderCode
(),
Duration
.
between
(
schedulingStartedDate
,
DateUtil
.
date
(
scheduleJobGroup
.
getDemandDate
()).
toLocalDateTime
()))
{{
setFixed
(
false
);
...
...
@@ -163,6 +158,7 @@ public class AlgorithmDataSourceImpl implements AlgorithmDataSource {
task
.
setStandardWorkingTime
(
Duration
.
ZERO
);
task
.
setSetupTime
(
Duration
.
ZERO
);
task
.
setProcessId
(
routingItem
.
getProcessId
());
task
.
setIdx
(
routingItem
.
getIdx
());
task
.
setProcessName
(
routingItem
.
getProcessName
());
task
.
setOrderQuantity
(
scheduleJobGroup
.
getQuantity
());
task
.
setWorkCenterId
(
routingItem
.
getWorkstationId
());
...
...
mes/src/main/java/com/ximai/mes/pro/schedule/impl/AlgorithmResultProcessImpl.java
View file @
043a4ebd
...
...
@@ -142,6 +142,7 @@ public class AlgorithmResultProcessImpl implements AlgorithmResultProcess {
private
ProTask
convertTask
(
Job
job
,
Task
task
)
{
ProTask
proTask
=
new
ProTask
();
proTask
.
setProcessId
(
task
.
getProcessId
());
proTask
.
setIdx
(
task
.
getIdx
());
proTask
.
setProcessName
(
task
.
getProcessName
());
proTask
.
setQuantity
(
task
.
getOrderQuantity
());
proTask
.
setWorkstationId
(
task
.
getScheduledEquipment
().
getWorkCenterId
());
...
...
mes/src/main/resources/mapper/pro/task/ProTaskMapper.xml
View file @
043a4ebd
...
...
@@ -48,6 +48,7 @@
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"arrangeCode"
column=
"arrange_code"
/>
<result
property=
"isLastProcess"
column=
"is_last_process"
/>
<result
property=
"idx"
column=
"idx"
/>
</resultMap>
...
...
@@ -391,6 +392,7 @@
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"idx != null"
>
idx,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"taskCode != null and taskCode != ''"
>
#{taskCode},
</if>
...
...
@@ -435,6 +437,7 @@
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"idx != null"
>
#{idx},
</if>
</trim>
</insert>
...
...
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