'修复已知问题'

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 @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

Loading…
Cancel
Save