Ejemplo n.º 1
0
 // 费用查询
 @Override
 public List<DeliveryCost> getListByDeliveryCost(String page, String rows, Paging paging)
     throws Exception {
   logger.info("费用查询" + "用户ID:" + paging.getDealerId() + "单号:" + paging.getDeliveryorderId());
   page = (page == null ? "1" : page);
   rows = (rows == null ? "5" : rows);
   int curpage = Integer.parseInt(page);
   int pagesize = Integer.parseInt(rows);
   List<IpoDeliveryCostExtended> list1 =
       ipoDeliveryCostMapper.selectByUserid(
           (curpage - 1) * pagesize + 1, curpage * pagesize, paging);
   List<DeliveryCost> list2 = new ArrayList<DeliveryCost>();
   for (IpoDeliveryCost ipodeliveryCost : list1) {
     DeliveryCost deliveryCost = new DeliveryCost();
     BeanUtils.copyProperties(ipodeliveryCost, deliveryCost);
     list2.add(deliveryCost);
   }
   return list2;
 }
Ejemplo n.º 2
0
 @Override
 public int countsByCost(Paging paging) throws Exception {
   return ipoDeliveryCostMapper.countsByCost(paging);
 }