From abef6d2d4ee09033813668c1d0cf6cc671bfe1e5 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Thu, 22 Apr 2021 00:14:39 +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/HighCouponAgentServiceImpl.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hai-service/src/main/java/com/hai/service/impl/HighCouponAgentServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/HighCouponAgentServiceImpl.java index bb7c79f0..521c3859 100644 --- a/hai-service/src/main/java/com/hai/service/impl/HighCouponAgentServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/HighCouponAgentServiceImpl.java @@ -134,13 +134,7 @@ public class HighCouponAgentServiceImpl implements HighCouponAgentService { @Override public HighCouponAgentCode getCodeById(Long couponAgentCodeId) { - HighCouponAgentCodeExample example = new HighCouponAgentCodeExample(); - example.createCriteria().andCouponAgentIdEqualTo(couponAgentCodeId); - List list = highCouponAgentCodeMapper.selectByExample(example); - if (list.size() > 0) { - return list.get(0); - } - return null; + return highCouponAgentCodeMapper.selectByPrimaryKey(couponAgentCodeId); } @Override