bess-WeiganCai пре 3 година
родитељ
комит
76ec3c82d9

+ 9 - 0
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/service/impl/FlowQueryRecordServiceImpl.java

@@ -227,6 +227,15 @@ public class FlowQueryRecordServiceImpl implements IFlowQueryRecordService {
         //转换类型
         List<ExportFlowQueryRecordRes> flowQueryRecordBeanList = list.stream()
                 .parallel().map(s -> {
+                    // 查询sku
+                    String skuCode = s.getSkuCode();
+                    if (StringUtils.isNotBlank(skuCode)) {
+                        SkuFeign.Sku sku = skuFeign.getSkuByCode(skuCode);
+                        if (sku != null) {
+                            s.setSkuName(sku.getSkuName());
+                        }
+                    }
+
                     ExportFlowQueryRecordRes flowQueryRecordBean = new ExportFlowQueryRecordRes();
                     BeanUtil.copyProperties(s, flowQueryRecordBean);
 

+ 9 - 0
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/service/impl/InspectionCaseServiceImpl.java

@@ -514,6 +514,15 @@ public class InspectionCaseServiceImpl implements IInspectionCaseService {
         //转换类型
         List<ExportInspectionCaseRes> exportDataList = listInspectionCaseVOS.stream()
                 .parallel().map(s -> {
+                    // 查询sku
+                    String skuCode = s.getSkuCode();
+                    if (StringUtils.isNotBlank(skuCode)) {
+                        SkuFeign.Sku sku = skuFeign.getSkuByCode(skuCode);
+                        if (sku != null) {
+                            s.setSkuName(sku.getSkuName());
+                        }
+                    }
+
                     ExportInspectionCaseRes res = new ExportInspectionCaseRes();
                     BeanUtil.copyProperties(s, res);
                     //经销商