Search in sources :

Example 11 with ServiceNameExample

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

the class TakeServiceNameServiceImpl method selectListByCertificationChargingId.

public List<ServiceName> selectListByCertificationChargingId(Long CertificationChargingId) {
    List<ServiceName> list = new ArrayList<ServiceName>();
    ServiceNameExample serviceNameExample = new ServiceNameExample();
    ServiceNameExample.Criteria criteria = serviceNameExample.or();
    criteria.andCertificationChargingEqualTo(CertificationChargingId);
    criteria.andIsValidityEqualTo(true);
    list = sqlSession.selectList("com.itrus.portal.db.ServiceNameMapper.selectByExample", serviceNameExample);
    return list;
}
Also used : ServiceName(com.itrus.portal.db.ServiceName) ServiceNameExample(com.itrus.portal.db.ServiceNameExample) ArrayList(java.util.ArrayList)

Example 12 with ServiceNameExample

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

the class StoreServiceNameServiceImpl method selectListByCertificationCharging.

/**
 * 取出所有属于该计费规则的服务名称
 *
 * @param certificationCharging
 * @return
 */
public List<ServiceName> selectListByCertificationCharging(CertificationCharging certificationChargings) {
    List<ServiceName> list = new ArrayList<ServiceName>();
    ServiceNameExample serviceNameExample = new ServiceNameExample();
    ServiceNameExample.Criteria criteria = serviceNameExample.or();
    criteria.andCertificationChargingEqualTo(certificationChargings.getId());
    list = sqlSession.selectList("com.itrus.portal.db.ServiceNameMapper.selectByExample", serviceNameExample);
    return list;
}
Also used : ServiceName(com.itrus.portal.db.ServiceName) ServiceNameExample(com.itrus.portal.db.ServiceNameExample) ArrayList(java.util.ArrayList)

Example 13 with ServiceNameExample

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

the class ServiceNameServiceImpl method selectListByCertificationChargingId.

public List<ServiceName> selectListByCertificationChargingId(Long CertificationChargingId) {
    List<ServiceName> list = new ArrayList<ServiceName>();
    ServiceNameExample serviceNameExample = new ServiceNameExample();
    ServiceNameExample.Criteria criteria = serviceNameExample.or();
    criteria.andCertificationChargingEqualTo(CertificationChargingId);
    criteria.andIsValidityEqualTo(true);
    list = sqlSession.selectList("com.itrus.portal.db.ServiceNameMapper.selectByExample", serviceNameExample);
    return list;
}
Also used : ServiceName(com.itrus.portal.db.ServiceName) ServiceNameExample(com.itrus.portal.db.ServiceNameExample) ArrayList(java.util.ArrayList)

Example 14 with ServiceNameExample

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

the class ServiceNameServiceImpl method selectListByCertificationCharging.

/**
 * 取出所有属于该计费规则的服务名称
 *
 * @param certificationCharging
 * @return
 */
public List<ServiceName> selectListByCertificationCharging(CertificationCharging certificationChargings) {
    List<ServiceName> list = new ArrayList<ServiceName>();
    ServiceNameExample serviceNameExample = new ServiceNameExample();
    ServiceNameExample.Criteria criteria = serviceNameExample.or();
    criteria.andCertificationChargingEqualTo(certificationChargings.getId());
    list = sqlSession.selectList("com.itrus.portal.db.ServiceNameMapper.selectByExample", serviceNameExample);
    return list;
}
Also used : ServiceName(com.itrus.portal.db.ServiceName) ServiceNameExample(com.itrus.portal.db.ServiceNameExample) ArrayList(java.util.ArrayList)

Example 15 with ServiceNameExample

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

the class ServiceNameServiceImpl method selectListByCertificationChargings.

/**
 * 取出所有属于该计费规则的服务名称
 *
 * @param certificationCharging
 * @return
 */
public List<ServiceName> selectListByCertificationChargings(List<CertificationCharging> certificationChargings) {
    List<Long> ccIdList = new ArrayList<Long>();
    for (int i = 0; i < certificationChargings.size(); i++) {
        ccIdList.add(certificationChargings.get(i).getId());
    }
    List<ServiceName> list = new ArrayList<ServiceName>();
    ServiceNameExample serviceNameExample = new ServiceNameExample();
    ServiceNameExample.Criteria criteria = serviceNameExample.or();
    criteria.andCertificationChargingIn(ccIdList);
    list = sqlSession.selectList("com.itrus.portal.db.ServiceNameMapper.selectByExample", serviceNameExample);
    return list;
}
Also used : ServiceName(com.itrus.portal.db.ServiceName) ServiceNameExample(com.itrus.portal.db.ServiceNameExample) ArrayList(java.util.ArrayList)

Aggregations

ServiceName (com.itrus.portal.db.ServiceName)15 ServiceNameExample (com.itrus.portal.db.ServiceNameExample)15 ArrayList (java.util.ArrayList)12 CertificationCharging (com.itrus.portal.db.CertificationCharging)3