|
|
|
|
@ -1212,7 +1212,8 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<PrintParentWoLabelVO> printWoLabel(List<Long> woIds, Short quantity) { |
|
|
|
|
public Map<String, Object> printWoLabel(List<Long> woIds, Short quantity) { |
|
|
|
|
Map<String, Object> data = new HashMap<>(1); |
|
|
|
|
if (CollectionUtils.isEmpty(woIds)) { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
@ -1224,7 +1225,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
|
List<Long> list = null; |
|
|
|
|
Integer num = 0; |
|
|
|
|
int i = 1; |
|
|
|
|
PrintWoLabelVO printWoLabel; |
|
|
|
|
String printWoLabel; |
|
|
|
|
PrintParentWoLabelVO printParentWoLabel = null; |
|
|
|
|
WorkOrder workOrder; |
|
|
|
|
List<PrintParentWoLabelVO> plList = new ArrayList<>(); |
|
|
|
|
@ -1241,11 +1242,11 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
|
printParentWoLabel = new PrintParentWoLabelVO(); |
|
|
|
|
} |
|
|
|
|
list.add(woId); |
|
|
|
|
printWoLabel = new PrintWoLabelVO(); |
|
|
|
|
workOrder = idMap.get(woId); |
|
|
|
|
printWoLabel.setPartCode(yieldOrderMap.get(workOrder.getYoId()).getPartCode()); |
|
|
|
|
printWoLabel.setBatchNo(workOrder.getBatchNo()); |
|
|
|
|
printWoLabel.setMakeQty(workOrder.getMakeQty().toString()); |
|
|
|
|
String partCode = yieldOrderMap.get(workOrder.getYoId()).getPartCode(); |
|
|
|
|
String batchNo = workOrder.getBatchNo(); |
|
|
|
|
String string = workOrder.getMakeQty().toString(); |
|
|
|
|
printWoLabel = String.join("\n\n", partCode, batchNo, string); |
|
|
|
|
if (list.size() == 1) { |
|
|
|
|
printParentWoLabel.setPlOne(printWoLabel); |
|
|
|
|
} |
|
|
|
|
@ -1264,7 +1265,8 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
|
} |
|
|
|
|
i++; |
|
|
|
|
} |
|
|
|
|
return plList; |
|
|
|
|
data.put("data", plList); |
|
|
|
|
return data; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|