use of com.itrus.portal.db.ExtraProductSpec in project portal by ixinportal.
the class ExtraProductSpecServiceImpl method getSpecByProductIdValid.
/**
* 根据增值产品,获取增值产品对应的规格,获取有效的规格,排序
*
* @throws Exception
*/
public List<ExtraProductSpec> getSpecByProductIdValid(Long id) throws Exception {
List<ExtraProductSpec> extraProductSpecs = new ArrayList<>();
ExtraProductSpecExample example = new ExtraProductSpecExample();
ExtraProductSpecExample.Criteria criteria = example.or();
criteria.andExtraProductEqualTo(id);
criteria.andIsValidEqualTo(true);
example.setOrderByClause("priority ASC");
extraProductSpecs = selectByExample(example);
return extraProductSpecs;
}
Aggregations