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
7a58d1af
Commit
7a58d1af
authored
Nov 22, 2024
by
温志超
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
7dbd5e69
5dbe402e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
KanbanTaskService.java
.../java/com/ximai/mes/kanban/service/KanbanTaskService.java
+14
-8
ProTaskWorkunitMapper.java
.../com/ximai/mes/pro/mapper/task/ProTaskWorkunitMapper.java
+1
-1
No files found.
mes/src/main/java/com/ximai/mes/kanban/service/KanbanTaskService.java
View file @
7a58d1af
...
...
@@ -308,20 +308,26 @@ public class KanbanTaskService {
private
int
getWorkunitState
(
List
<
ProTaskWorkunitDto
>
list
){
Set
<
String
>
temp
=
new
HashSet
<>();
if
(
list
.
get
(
0
).
getItemCode
().
equals
(
"1872766-21-A"
)
&&
list
.
get
(
0
).
getProcessName
().
equals
(
"ยิงรีเวท"
)){
System
.
out
.
print
(
list
.
get
(
0
));
}
list
.
forEach
(
s
->{
Date
actualEndDate
=
s
.
getActualEndDate
();
if
(
actualEndDate
==
null
){
actualEndDate
=
new
Date
();
}
if
(
s
.
getStatus
().
equals
(
TaskWorkunitStatusEnum
.
FINISHED
.
getStatus
())
||
s
.
getQuantity
().
compareTo
(
s
.
getQuantityProduced
())<=
0
){
if
(
s
.
getActualEndDate
()==
null
){
temp
.
add
(
"finish"
);
}
else
if
(
s
.
getActualEndDate
().
compareTo
(
s
.
getScheduleEndDate
())<=
0
){
temp
.
add
(
"finish"
);
}
else
{
temp
.
add
(
"expireFinish"
);
}
||
s
.
getQuantity
().
compareTo
(
s
.
getQuantityProduced
())<=
0
){
temp
.
add
(
"finish"
);
}
else
if
(
actualEndDate
.
compareTo
(
s
.
getScheduleEndDate
())>
0
){
temp
.
add
(
"expireFinish"
);
}
else
{
temp
.
add
(
"other"
);
}
});
if
(
list
.
get
(
0
).
getItemCode
().
equals
(
"1872766-21-A"
)){
System
.
out
.
print
(
list
.
get
(
0
));
}
if
(
temp
.
contains
(
"other"
)){
return
0
;
}
else
if
(
temp
.
contains
(
"expireFinish"
)){
...
...
mes/src/main/java/com/ximai/mes/pro/mapper/task/ProTaskWorkunitMapper.java
View file @
7a58d1af
...
...
@@ -198,7 +198,7 @@ public interface ProTaskWorkunitMapper extends BaseMapper<ProTaskWorkunit> {
"\t, wo.product_code as item_code, wo.product_name as item_name, wo.customer_project_no, wo.order_code, t.specification\n"
+
"\t, t.unit_of_measure, ptw.task_workunit_id, ptw.quantity, ptw.create_by, t.quantity_wait\n"
+
"\t, ptw.quantity_produced\n"
+
"\t, ptw.schedule_start_date, t.duration, ptw.schedule_end_date\n"
+
"\t, ptw.schedule_start_date, t.duration, ptw.schedule_end_date
, ptw.actual_end_date
\n"
+
"\t, t.ordinal as idx, t.create_time, t.update_by\n"
+
"\t, t.update_time, ptw.STATUS, ptw.quantity_qualify, ptw.remark, ptw.quantity_unqualify\n"
+
"\t, wo.workorder_code, wu.line_name\n"
+
...
...
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