@SuppressWarnings("unchecked") public List<SysOrderDto> queryOrderList(SysOrderDto dto) { Map<String, Object> paraMap = new HashMap<String, Object>(); try { paraMap.put("fromOrderDate", dto.getFromOrderDate()); paraMap.put("toOrderDate", dto.getToOrderDate()); paraMap.put("fromPayDate", dto.getFromPayDate()); paraMap.put("toPayDate", dto.getToPayDate()); paraMap.put("status", dto.getStatus()); paraMap.put("payDate", dto.getPayDate()); paraMap.put("serviceCode", dto.getServiceCode()); paraMap.put("inOrderName", dto.getInOrderName()); paraMap.put("inOrderName", dto.getInOrderName()); paraMap.put("inOrderName", dto.getInOrderName()); paraMap.put("inOrderName", dto.getInOrderName()); paraMap.put("serviceName", dto.getServiceName()); paraMap.put("itemCode", dto.getItemCode()); paraMap.put("inOrder", dto.getInOrder()); paraMap.put("endDate", dto.getEndDate()); paraMap.put("service1Remains", dto.getService1Remains()); paraMap.put("service2Remains", dto.getService2Remains()); paraMap.put("service3Remains", dto.getService3Remains()); paraMap.put("isNew", dto.getIsNew()); } catch (Exception e) { logger.error(e); } return sqlMapClientTemplate.queryForList("queryOrderList", paraMap); }
public List<SysOrderDto> queryOrderList(PageInfo pageInfo, SysOrderDto dto) { Map<String, Object> paraMap = new HashMap<String, Object>(); try { paraMap.put("fromOrderDate", dto.getFromOrderDate()); paraMap.put("toOrderDate", dto.getToOrderDate()); paraMap.put("fromPayDate", dto.getFromPayDate()); paraMap.put("toPayDate", dto.getToPayDate()); paraMap.put("status", dto.getStatus()); paraMap.put("payDate", dto.getPayDate()); paraMap.put("serviceCode", dto.getServiceCode()); paraMap.put("inOrderName", dto.getInOrderName()); paraMap.put("inOrderName", dto.getInOrderName()); paraMap.put("inOrderName", dto.getInOrderName()); paraMap.put("inOrderName", dto.getInOrderName()); paraMap.put("serviceName", dto.getServiceName()); paraMap.put("itemCode", dto.getItemCode()); paraMap.put("inOrder", dto.getInOrder()); paraMap.put("endDate", dto.getEndDate()); paraMap.put("service1Remains", dto.getService1Remains()); paraMap.put("service2Remains", dto.getService2Remains()); paraMap.put("service3Remains", dto.getService3Remains()); paraMap.put("isNew", dto.getIsNew()); } catch (Exception e) { logger.error(e); } return PagingDataListUtil.getPagingData(pageInfo, "queryOrderCount", "queryOrderList", paraMap); }