'修复已知问题'

dev-discount
胡锐 4 years ago
parent 2b68b71ff0
commit abef6d2d4e
  1. 8
      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<HighCouponAgentCode> list = highCouponAgentCodeMapper.selectByExample(example);
if (list.size() > 0) {
return list.get(0);
}
return null;
return highCouponAgentCodeMapper.selectByPrimaryKey(couponAgentCodeId);
}
@Override

Loading…
Cancel
Save