Ejemplo n.º 1
0
 // 在线配送
 @Override
 public List<Express> getListByExpress(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<IpoExpressExtended> list1 =
       ipoDeliveryorderMapper.selectByExpress(
           (curpage - 1) * pagesize + 1, curpage * pagesize, paging);
   List<Express> list2 = new ArrayList<Express>();
   for (IpoExpressExtended ipoExpressExtended : list1) {
     Express express = new Express();
     BeanUtils.copyProperties(ipoExpressExtended, express);
     list2.add(express);
   }
   return list2;
 }
Ejemplo n.º 2
0
 // 自提打印
 @Override
 public List<DeliveryOrder> getPrint(String page, String rows, Paging paging) throws Exception {
   logger.info("自提打印:" + 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<IpoDeliveryorder> list1 =
       ipoDeliveryorderMapper.selectByPickup(
           (curpage - 1) * pagesize + 1, curpage * pagesize, paging);
   List<DeliveryOrder> list2 = new ArrayList<DeliveryOrder>();
   for (IpoDeliveryorder ipoDeliveryorder : list1) {
     DeliveryOrder deliveryOrder = new DeliveryOrder();
     BeanUtils.copyProperties(ipoDeliveryorder, deliveryOrder);
     list2.add(deliveryOrder);
   }
   return list2;
 }
Ejemplo n.º 3
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.º 4
0
 // 提货查询总页数
 @Override
 public int countsByAll(Paging paging) throws Exception {
   logger.info("提货查询总页数" + "用户ID:" + paging.getDealerId() + "单号:" + paging.getDeliveryorderId());
   return ipoDeliveryorderMapper.allCounts(paging);
 }
Ejemplo n.º 5
0
 // 自提打印总页数
 @Override
 public int counts(Paging paging, String deliveryMethod) throws Exception {
   logger.info("自提打印总页数" + "userid:" + paging.getDealerId() + "单号:" + paging.getDeliveryorderId());
   return ipoDeliveryorderMapper.selectByCounts(paging, deliveryMethod);
 }