|
|
@ -494,18 +494,20 @@ public class ProdReadyTaskServiceImpl extends ServiceImpl<ProdReadyTaskMapper, P
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//下道工序
|
|
|
|
//下道工序
|
|
|
|
Router router = routerService.getRouterBySfcBo(HandleEnum.SFC.getHandle(site, sfcServiceById.getSfc()));
|
|
|
|
Router router = routerService.getRouterBySfcBo(HandleEnum.SFC.getHandle(site, sfcServiceById.getSfc()));
|
|
|
|
int seq = 0;
|
|
|
|
if (router==null){
|
|
|
|
|
|
|
|
throw new BaseException("未找到当前工序");
|
|
|
|
|
|
|
|
}
|
|
|
|
List<RouterStepDto> stepOperationList = routerStepService.findRouterOperationByRouterBo(site, router.getHandle());
|
|
|
|
List<RouterStepDto> stepOperationList = routerStepService.findRouterOperationByRouterBo(site, router.getHandle());
|
|
|
|
|
|
|
|
StringBuilder operationDesc = new StringBuilder();
|
|
|
|
for (int i = 0; i < stepOperationList.size(); i++) {
|
|
|
|
for (int i = 0; i < stepOperationList.size(); i++) {
|
|
|
|
RouterStepDto stepOperation = stepOperationList.get(i);
|
|
|
|
RouterStepDto stepOperation = stepOperationList.get(i);
|
|
|
|
if (stepOperation.getStepId().equals(prodReadyTask.getStepId())) {
|
|
|
|
operationDesc.append(stepOperation.getOperationDesc()) ;
|
|
|
|
seq = i;
|
|
|
|
if (i!=stepOperationList.size()-1){
|
|
|
|
}
|
|
|
|
operationDesc.append(",");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (seq != stepOperationList.size() - 1) {
|
|
|
|
|
|
|
|
RouterStepDto stepOperation = stepOperationList.get(seq + 1);
|
|
|
|
|
|
|
|
labelPrintDto.setOperation(stepOperation.getOperationDesc());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
labelPrintDto.setOperation(operationDesc.toString());
|
|
|
|
|
|
|
|
|
|
|
|
labelPrintDtoList.add(labelPrintDto);
|
|
|
|
labelPrintDtoList.add(labelPrintDto);
|
|
|
|
printData = JSON.toJSONString(labelPrintDtoList);
|
|
|
|
printData = JSON.toJSONString(labelPrintDtoList);
|
|
|
|
//打印记录
|
|
|
|
//打印记录
|
|
|
|