diff --git a/kas-service/src/main/java/com/unlcn/ils/kas/service/order/impl/SharesOrderServiceImpl.java b/kas-service/src/main/java/com/unlcn/ils/kas/service/order/impl/SharesOrderServiceImpl.java index efe6065969b07be17f1b316cee845fbd5dcc1f4b..8c790be06ee48fc87c16f6f61286f76a7742cc03 100644 --- a/kas-service/src/main/java/com/unlcn/ils/kas/service/order/impl/SharesOrderServiceImpl.java +++ b/kas-service/src/main/java/com/unlcn/ils/kas/service/order/impl/SharesOrderServiceImpl.java @@ -414,7 +414,7 @@ public class SharesOrderServiceImpl implements SharesOrderService { @Transactional(propagation = Propagation.SUPPORTS) @Override public void saveDetail(OrderOtd orderOtd, List orderOtdLogDetailList) { - LOGGER.info(orderOtdLogDetailList.size() + "条在途信息"); + LOGGER.info("[" + orderOtd.getSysOrderNo() + "]" + orderOtdLogDetailList.size() + "条在途信息"); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); @@ -431,8 +431,9 @@ public class SharesOrderServiceImpl implements SharesOrderService { detailEntity.eq("sys_order_no", orderOtdLogDetail.getSysOrderNo()); orderOtdDetails = orderOtdDetailService.selectList(detailEntity); } - if (!CollectionUtils.isEmpty(orderOtdDetails)) + if (!CollectionUtils.isEmpty(orderOtdDetails)) { continue; + } OrderOtdDetail orderOtdDetail = new OrderOtdDetail(); BeanUtils.copyProperties(orderOtdLogDetail, orderOtdDetail); @@ -450,8 +451,9 @@ public class SharesOrderServiceImpl implements SharesOrderService { wrapper.lt("track_time", simpleDateFormat.format(orderOtdDetail.getTrackTime())); wrapper.lt("distance", orderOtdDetail.getDistance()); wrapper.eq("isdelete", OrderDetailDeleteFlagEnum.NORMAL.getCode()); - if (!CollectionUtils.isEmpty(orderOtdDetailService.selectList(wrapper))) + if (!CollectionUtils.isEmpty(orderOtdDetailService.selectList(wrapper))) { continue; + } orderOtdDetailService.insert(orderOtdDetail); } @@ -1524,7 +1526,7 @@ public class SharesOrderServiceImpl implements SharesOrderService { List orderOtdLogDetailList = new ArrayList<>(); // 根据vcdn拿到满足条件List - List vJmcKasOnwayTracks = getOnwayWithRule(vcdn, vJmcKasFlowInfoList.get(0)); + List vJmcKasOnwayTracks = getOnwayWithRule(vcdn, vJmcKasFlowInfoList.get(i)); // if (vJmcKasOnwayTracks.size() != 0) { for (VJmcKasOnwayTrack vJmcKasOnwayTrack : vJmcKasOnwayTracks) {