|
|
|
|
@ -14,6 +14,7 @@ import org.springblade.desk.quality.pojo.entity.CycleTestItem; |
|
|
|
|
import org.springblade.desk.quality.pojo.entity.CycleTestStandard; |
|
|
|
|
import org.springblade.desk.quality.pojo.request.CycleTestItemSubmit; |
|
|
|
|
import org.springblade.desk.quality.pojo.vo.CycleTestItemVO; |
|
|
|
|
import org.springblade.desk.quality.util.IdUtil; |
|
|
|
|
import org.springblade.desk.quality.wrapper.CycleTestItemWrapper; |
|
|
|
|
import org.springblade.resource.feign.IAttachClient; |
|
|
|
|
import org.springblade.resource.pojo.entity.Attach; |
|
|
|
|
@ -144,11 +145,13 @@ public class CycleTestItemService2 { |
|
|
|
|
CycleTestStandard standard = standardService.getById(vo.getCycleTestStandardId()); |
|
|
|
|
if (standard != null) { |
|
|
|
|
vo.setCycleTestStandardName(standard.getName()); |
|
|
|
|
Attach attach = attachClient.detailById(standard.getStandardAttachId()).getData(); |
|
|
|
|
if (attach != null) { |
|
|
|
|
vo.setStandardAttachId(attach.getId()); |
|
|
|
|
vo.setLink(attach.getLink()); |
|
|
|
|
vo.setOriginalName(attach.getOriginalName()); |
|
|
|
|
if (IdUtil.isValid(standard.getStandardAttachId())) { |
|
|
|
|
Attach attach = attachClient.detailById(standard.getStandardAttachId()).getData(); |
|
|
|
|
if (attach != null) { |
|
|
|
|
vo.setStandardAttachId(attach.getId()); |
|
|
|
|
vo.setLink(attach.getLink()); |
|
|
|
|
vo.setOriginalName(attach.getOriginalName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|