|
|
@ -134,13 +134,7 @@ public class HighCouponAgentServiceImpl implements HighCouponAgentService { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public HighCouponAgentCode getCodeById(Long couponAgentCodeId) { |
|
|
|
public HighCouponAgentCode getCodeById(Long couponAgentCodeId) { |
|
|
|
HighCouponAgentCodeExample example = new HighCouponAgentCodeExample(); |
|
|
|
return highCouponAgentCodeMapper.selectByPrimaryKey(couponAgentCodeId); |
|
|
|
example.createCriteria().andCouponAgentIdEqualTo(couponAgentCodeId); |
|
|
|
|
|
|
|
List<HighCouponAgentCode> list = highCouponAgentCodeMapper.selectByExample(example); |
|
|
|
|
|
|
|
if (list.size() > 0) { |
|
|
|
|
|
|
|
return list.get(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|