Search in sources :

Example 1 with ReceiptExample

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

the class ReceiptServiceImpl method getReceiptMap.

/**
 * 根据开票服务id集合查询 开发服务Map
 *
 * @param receiptIds
 * @return
 */
public Map<Long, Receipt> getReceiptMap(Long[] receiptIds) {
    Map<Long, Receipt> receiptMap = new HashMap<Long, Receipt>();
    if (null != receiptIds) {
        ReceiptExample example = new ReceiptExample();
        ReceiptExample.Criteria criteria = example.or();
        criteria.andIdIn(Arrays.asList(receiptIds));
        receiptMap = sqlSession.selectMap("com.itrus.portal.db.ReceiptMapper.selectByExample", example, "id");
    }
    return receiptMap;
}
Also used : Receipt(com.itrus.portal.db.Receipt) HashMap(java.util.HashMap) ReceiptExample(com.itrus.portal.db.ReceiptExample)

Aggregations

Receipt (com.itrus.portal.db.Receipt)1 ReceiptExample (com.itrus.portal.db.ReceiptExample)1 HashMap (java.util.HashMap)1