Search in sources :

Example 6 with BusinessLicenseExample

use of com.itrus.portal.db.BusinessLicenseExample in project portal by ixinportal.

the class BusinessServiceImpl method getBusinessByBillId.

/**
 * 根据订单id查询订单的营业执照信息
 *
 * @param billId
 * @param status
 *            营业执照状态
 * @return
 */
public BusinessLicense getBusinessByBillId(Long billId, Integer status) {
    BusinessLicenseExample example = new BusinessLicenseExample();
    BusinessLicenseExample.Criteria criteria = example.or();
    criteria.andBillEqualTo(billId);
    if (null != status) {
        criteria.andItemStatusEqualTo(status);
    }
    BusinessLicense businessLicense = sqlSession.selectOne("com.itrus.portal.db.BusinessLicenseMapper.selectByExample", example);
    return businessLicense;
}
Also used : BusinessLicense(com.itrus.portal.db.BusinessLicense) BusinessLicenseExample(com.itrus.portal.db.BusinessLicenseExample)

Aggregations

BusinessLicense (com.itrus.portal.db.BusinessLicense)6 BusinessLicenseExample (com.itrus.portal.db.BusinessLicenseExample)6 ArrayList (java.util.ArrayList)3 Agent (com.itrus.portal.db.Agent)1 AgentExample (com.itrus.portal.db.AgentExample)1 Enterprise (com.itrus.portal.db.Enterprise)1 IdentityCard (com.itrus.portal.db.IdentityCard)1 IdentityCardExample (com.itrus.portal.db.IdentityCardExample)1 OrgCode (com.itrus.portal.db.OrgCode)1 OrgCodeExample (com.itrus.portal.db.OrgCodeExample)1 Proxy (com.itrus.portal.db.Proxy)1 ProxyExample (com.itrus.portal.db.ProxyExample)1 TaxRegisterCert (com.itrus.portal.db.TaxRegisterCert)1 TaxRegisterCertExample (com.itrus.portal.db.TaxRegisterCertExample)1 UserInfo (com.itrus.portal.db.UserInfo)1 EncDecException (com.itrus.portal.exception.EncDecException)1 UserInfoServiceException (com.itrus.portal.exception.UserInfoServiceException)1 CopyFile (com.itrus.portal.utils.CopyFile)1 File (java.io.File)1 FileInputStream (java.io.FileInputStream)1