|
|
@ -67,10 +67,16 @@ public class CollectionServiceImpl implements CollectionService { |
|
|
|
WorkorderTemplate template = workorderTemplateService.getById(record.getTemplateId()); |
|
|
|
//添加工单状态说明 |
|
|
|
for (WorkorderStatus status : workorderStatus) { |
|
|
|
if(template.getStatusId().equals(status.getId())){ |
|
|
|
template.setStatusDescribe(status.getName()); |
|
|
|
break; |
|
|
|
//工单状态为空是,不设置状态描述 |
|
|
|
if(null != template.getStatusId()){ |
|
|
|
if(template.getStatusId().equals(status.getId())){ |
|
|
|
template.setStatusDescribe(status.getName()); |
|
|
|
break; |
|
|
|
} |
|
|
|
}else { |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
record.setWorkorderTemplate(template); |
|
|
|
} |
|
|
|