|
@@ -13,7 +13,9 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @author lfdc
|
|
* @author lfdc
|
|
@@ -28,13 +30,24 @@ public class AcceptCarriageOrderService {
|
|
|
List<AcceptCarriageOrderVo> list=new ArrayList<>();
|
|
List<AcceptCarriageOrderVo> list=new ArrayList<>();
|
|
|
AcceptCarriageOrderVo acceptCarriageOrderVo = new AcceptCarriageOrderVo();
|
|
AcceptCarriageOrderVo acceptCarriageOrderVo = new AcceptCarriageOrderVo();
|
|
|
List<CarWaybillVo> carWaybillVoList = new ArrayList<>();
|
|
List<CarWaybillVo> carWaybillVoList = new ArrayList<>();
|
|
|
|
|
+ CarWaybillVo carWaybillVo=new CarWaybillVo();
|
|
|
|
|
+ carWaybillVoList.add(carWaybillVo);
|
|
|
List<ConsignmentVo> consignmentVos = new ArrayList<>();
|
|
List<ConsignmentVo> consignmentVos = new ArrayList<>();
|
|
|
|
|
+ ConsignmentVo consignmentVo=new ConsignmentVo();
|
|
|
|
|
+ consignmentVos.add(consignmentVo);
|
|
|
acceptCarriageOrderVo.setCarWaybillList(carWaybillVoList);
|
|
acceptCarriageOrderVo.setCarWaybillList(carWaybillVoList);
|
|
|
acceptCarriageOrderVo.setConsignmentList(consignmentVos);
|
|
acceptCarriageOrderVo.setConsignmentList(consignmentVos);
|
|
|
list.add(acceptCarriageOrderVo);
|
|
list.add(acceptCarriageOrderVo);
|
|
|
PageHelper.startPage(query.getPageNum(), query.getPageSize());
|
|
PageHelper.startPage(query.getPageNum(), query.getPageSize());
|
|
|
PageResult pageResult = PageHelperUtil.getPageResult(new PageInfo<>(list));
|
|
PageResult pageResult = PageHelperUtil.getPageResult(new PageInfo<>(list));
|
|
|
- return HttpResult.ok(pageResult);
|
|
|
|
|
|
|
+ Map<String,Object> map=new HashMap<>();
|
|
|
|
|
+ map.put("data",pageResult);
|
|
|
|
|
+ Map<String,Object> map1=new HashMap<>();
|
|
|
|
|
+ map1.put("data1","1");
|
|
|
|
|
+ map1.put("data12","12");
|
|
|
|
|
+ map1.put("data13","13");
|
|
|
|
|
+ map.put("statistics",map1);
|
|
|
|
|
+ return HttpResult.ok(map);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public HttpResult count(AcceptCarriageOrderQuery query) {
|
|
public HttpResult count(AcceptCarriageOrderQuery query) {
|