Commit d1c1fcd2 authored by 李驰骋's avatar 李驰骋

生产计划看板BUG修复

parent cd58819d
......@@ -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")){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment