Commit 75607788 authored by 温志超's avatar 温志超

更改查询BUG

parent a3f4122c
......@@ -699,7 +699,8 @@ public class ProTaskWorkunitServiceImpl implements IProTaskWorkunitService {
}
taskProWorkorderPrintData.setSize(i++);
taskProWorkorderPrintData.setDate(simpleDateFormat1.format(new Date()));
taskProWorkorderPrintData.setQuantity(taskBatchTasks.get(0).getQuantity());
BigDecimal quantity = taskBatchTasks.stream().filter(proTask -> proTask.getIdx().equals("0010")).map(proTask -> proTask.getQuantity()).reduce(BigDecimal.ZERO,BigDecimal::add);
taskProWorkorderPrintData.setQuantity(quantity);
//}
}
return printData;
......
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