Showing
2 changed files
with
9 additions
and
5 deletions
xingyun-sc/src/main/java/com/lframework/xingyun/sc/bo/sample/feedback/GetSampleResultFeedbackBo.java
| ... | ... | @@ -129,10 +129,5 @@ public class GetSampleResultFeedbackBo extends BaseBo<SampleResultFeedback> { |
| 129 | 129 | Workshop workshop = workshopService.findById(dto.getWorkshopId()); |
| 130 | 130 | this.workshopName = workshop == null ? null : workshop.getName(); |
| 131 | 131 | } |
| 132 | - if (StringUtils.isNotBlank(dto.getOrderId())) { | |
| 133 | - PurchaseOrderInfoService purchaseOrderInfoService = ApplicationUtil.getBean(PurchaseOrderInfoService.class); | |
| 134 | - PurchaseOrderInfo orderInfo = purchaseOrderInfoService.findById(dto.getOrderId()); | |
| 135 | - this.orderNo = orderInfo == null ? null : orderInfo.getOrderNo(); | |
| 136 | - } | |
| 137 | 132 | } |
| 138 | 133 | } | ... | ... |
| ... | ... | @@ -10,11 +10,13 @@ import com.lframework.starter.web.core.annotations.oplog.OpLog; |
| 10 | 10 | import com.lframework.starter.web.core.utils.PageHelperUtil; |
| 11 | 11 | import com.lframework.starter.common.utils.Assert; |
| 12 | 12 | import com.lframework.starter.web.inner.components.oplog.OtherOpLogType; |
| 13 | +import com.lframework.xingyun.sc.service.order.PurchaseOrderInfoService; | |
| 13 | 14 | import com.lframework.xingyun.sc.service.order.PurchaseOrderLineService; |
| 14 | 15 | import com.lframework.xingyun.sc.service.sample.SampleFeedbackTrackingDetailService; |
| 15 | 16 | import com.lframework.xingyun.sc.service.shipments.ShipmentsPlanDetailService; |
| 16 | 17 | import org.apache.commons.collections4.CollectionUtils; |
| 17 | 18 | import org.apache.commons.lang3.BooleanUtils; |
| 19 | +import org.apache.commons.lang3.StringUtils; | |
| 18 | 20 | import org.springframework.transaction.annotation.Transactional; |
| 19 | 21 | import com.lframework.xingyun.sc.mappers.SampleResultFeedbackMapper; |
| 20 | 22 | import com.lframework.xingyun.sc.service.sample.SampleResultFeedbackService; |
| ... | ... | @@ -34,6 +36,8 @@ public class SampleResultFeedbackServiceImpl extends BaseMpServiceImpl<SampleRes |
| 34 | 36 | private PurchaseOrderLineService purchaseOrderLineService; |
| 35 | 37 | @Resource |
| 36 | 38 | private ShipmentsPlanDetailService shipmentsPlanDetailService; |
| 39 | + @Resource | |
| 40 | + private PurchaseOrderInfoService purchaseOrderInfoService; | |
| 37 | 41 | |
| 38 | 42 | |
| 39 | 43 | @Override |
| ... | ... | @@ -59,6 +63,11 @@ public class SampleResultFeedbackServiceImpl extends BaseMpServiceImpl<SampleRes |
| 59 | 63 | if (sampleResultFeedback != null) { |
| 60 | 64 | List<SampleFeedbackTrackingDetail> detailList = sampleFeedbackTrackingDetailService.listByFeedbackIds(Collections.singletonList(id)); |
| 61 | 65 | sampleResultFeedback.setDetailList(detailList); |
| 66 | + String orderId = sampleResultFeedback.getOrderId(); | |
| 67 | + if (StringUtils.isNotBlank(orderId)) { | |
| 68 | + PurchaseOrderInfo orderInfo = purchaseOrderInfoService.getBaseMapper().selectById(orderId); | |
| 69 | + sampleResultFeedback.setOrderNo(orderInfo == null ? null : orderInfo.getOrderNo()); | |
| 70 | + } | |
| 62 | 71 | } |
| 63 | 72 | return sampleResultFeedback; |
| 64 | 73 | } | ... | ... |