Search in sources :

Example 21 with ExtraProductSpec

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;
}
Also used : ArrayList(java.util.ArrayList) ExtraProductSpec(com.itrus.portal.db.ExtraProductSpec) ExtraProductSpecExample(com.itrus.portal.db.ExtraProductSpecExample)

Aggregations

ExtraProductSpec (com.itrus.portal.db.ExtraProductSpec)21 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)15 ExtraProduct (com.itrus.portal.db.ExtraProduct)14 Enterprise (com.itrus.portal.db.Enterprise)11 ExtraBill (com.itrus.portal.db.ExtraBill)11 UserInfo (com.itrus.portal.db.UserInfo)11 ServiceProvider (com.itrus.portal.db.ServiceProvider)9 Ereceipt (com.itrus.portal.db.Ereceipt)8 OpenBankInfo (com.itrus.portal.db.OpenBankInfo)8 Agent (com.itrus.portal.db.Agent)7 BusinessLicense (com.itrus.portal.db.BusinessLicense)7 IdentityCard (com.itrus.portal.db.IdentityCard)7 OnlinePay (com.itrus.portal.db.OnlinePay)7 OrgCode (com.itrus.portal.db.OrgCode)7 TaxRegisterCert (com.itrus.portal.db.TaxRegisterCert)7 HttpSession (javax.servlet.http.HttpSession)7 Einvoice (com.itrus.portal.db.Einvoice)6 OnPayInfo (com.itrus.portal.db.OnPayInfo)6 ExtraBillExample (com.itrus.portal.db.ExtraBillExample)5 ExtraMessage (com.itrus.portal.db.ExtraMessage)5