Search in sources :

Example 6 with Courier

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

the class CourierServiceImpl method getCourierMap.

/**
 * 根据配送服务id集合,查询所有配送服务Map
 *
 * @param courierIds
 * @return
 */
public Map<Long, Courier> getCourierMap(Long[] courierIds) {
    Map<Long, Courier> courierMap = new HashMap<Long, Courier>();
    if (null != courierIds) {
        CourierExample example = new CourierExample();
        CourierExample.Criteria criteria = example.or();
        criteria.andIdIn(Arrays.asList(courierIds));
        courierMap = sqlSession.selectMap("com.itrus.portal.db.CourierMapper.selectByExample", example, "id");
    }
    return courierMap;
}
Also used : HashMap(java.util.HashMap) CourierExample(com.itrus.portal.db.CourierExample) Courier(com.itrus.portal.db.Courier)

Aggregations

Courier (com.itrus.portal.db.Courier)6 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)4 CourierExample (com.itrus.portal.db.CourierExample)2 HashMap (java.util.HashMap)2 Bill (com.itrus.portal.db.Bill)1 CourierInfo (com.itrus.portal.db.CourierInfo)1 Delivery (com.itrus.portal.db.Delivery)1 MessageTemplate (com.itrus.portal.db.MessageTemplate)1 Date (java.util.Date)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1