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;
}
Aggregations