diff --git a/hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java index 6c3360e8..6a96b002 100644 --- a/hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java @@ -281,8 +281,18 @@ public class HighOrderServiceImpl implements HighOrderService { criteria.andOrderNoEqualTo(MapUtils.getString(map, "orderNo")); } + if (MapUtils.getString(map, "phone") != null) { + criteria.andMemPhoneEqualTo(MapUtils.getString(map, "phone")); + } + example.setOrderByClause("create_time desc"); - return highOrderMapper.selectByExample(example); + List list = highOrderMapper.selectByExample(example); + if (list.size() > 0) { + for (HighOrder order : list) { + order.setHighChildOrderList(getChildOrderByOrder(order.getId())); + } + } + return list; } @Override