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