|
|
|
@ -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.entity.CycleTestStandard; |
|
|
|
import org.springblade.desk.quality.pojo.request.CycleTestItemSubmit; |
|
|
|
import org.springblade.desk.quality.pojo.request.CycleTestItemSubmit; |
|
|
|
import org.springblade.desk.quality.pojo.vo.CycleTestItemVO; |
|
|
|
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.desk.quality.wrapper.CycleTestItemWrapper; |
|
|
|
import org.springblade.resource.feign.IAttachClient; |
|
|
|
import org.springblade.resource.feign.IAttachClient; |
|
|
|
import org.springblade.resource.pojo.entity.Attach; |
|
|
|
import org.springblade.resource.pojo.entity.Attach; |
|
|
|
@ -144,6 +145,7 @@ public class CycleTestItemService2 { |
|
|
|
CycleTestStandard standard = standardService.getById(vo.getCycleTestStandardId()); |
|
|
|
CycleTestStandard standard = standardService.getById(vo.getCycleTestStandardId()); |
|
|
|
if (standard != null) { |
|
|
|
if (standard != null) { |
|
|
|
vo.setCycleTestStandardName(standard.getName()); |
|
|
|
vo.setCycleTestStandardName(standard.getName()); |
|
|
|
|
|
|
|
if (IdUtil.isValid(standard.getStandardAttachId())) { |
|
|
|
Attach attach = attachClient.detailById(standard.getStandardAttachId()).getData(); |
|
|
|
Attach attach = attachClient.detailById(standard.getStandardAttachId()).getData(); |
|
|
|
if (attach != null) { |
|
|
|
if (attach != null) { |
|
|
|
vo.setStandardAttachId(attach.getId()); |
|
|
|
vo.setStandardAttachId(attach.getId()); |
|
|
|
@ -153,3 +155,4 @@ public class CycleTestItemService2 { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|