Search in sources :

Example 1 with EvidenceSaveServiceCopyExample

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

the class SaveServiceImpl method selectByEvidenceSaveServiceCopy.

/**
 * 得到对应存证服务的第二条数据
 * @param id
 * @return
 */
public EvidenceSaveServiceCopy selectByEvidenceSaveServiceCopy(Long id) {
    EvidenceSaveServiceCopyExample ece = new EvidenceSaveServiceCopyExample();
    EvidenceSaveServiceCopyExample.Criteria ecec = ece.createCriteria();
    ecec.andAppServiceEqualTo(id);
    List<EvidenceSaveServiceCopy> ecList = sqlSession.selectList("com.itrus.portal.db.EvidenceSaveServiceCopyMapper.selectByExample", ece);
    if (ecList == null || ecList.isEmpty()) {
        return null;
    }
    return ecList.get(0);
}
Also used : EvidenceSaveServiceCopy(com.itrus.portal.db.EvidenceSaveServiceCopy) EvidenceSaveServiceCopyExample(com.itrus.portal.db.EvidenceSaveServiceCopyExample)

Aggregations

EvidenceSaveServiceCopy (com.itrus.portal.db.EvidenceSaveServiceCopy)1 EvidenceSaveServiceCopyExample (com.itrus.portal.db.EvidenceSaveServiceCopyExample)1