From 18386fc12cb3c41e99951407ff7ae5530e5ae0df Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Sat, 3 Apr 2021 17:05:15 +0800 Subject: [PATCH] =?UTF-8?q?'=E4=BF=AE=E5=A4=8D=E5=B7=B2=E7=9F=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hai/service/impl/HighOrderServiceImpl.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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