Commit 27b16cdf authored by 喻训浩's avatar 喻训浩

fix: 测试数据

parent 071c7257
......@@ -34,6 +34,7 @@ public class AreaController {
PaintshopArea area = new PaintshopArea();
area.setCode("1");
area.setName("钣金");
area.setOnlineNum("44");
Map<String, PaintshopStation> stationMap = new HashMap<>();
PaintshopStation station = new PaintshopStation();
station.setBusNo("aaa");
......@@ -62,8 +63,26 @@ public class AreaController {
@ApiOperation(value = "根据工单号及订单号定位车体当前位置", response = PaintshopArea.class, responseContainer = "List")
@GetMapping("/currentPosition/orderNo/busNo")
private Return getPositionByOrderAndNo(@RequestParam("orderNo") String orderNo, @RequestParam("workOrderNo") String workOrderNo) {
return Return.success();
private Return getPositionByOrderAndNo(@RequestParam(value = "orderNo",required = false) String orderNo, @RequestParam(value = "workOrderNo",required = false) String workOrderNo) {
List<Map<String,PaintshopStation>> s = new ArrayList<>();
Map<String, PaintshopStation> stationMap = new HashMap<>();
PaintshopStation station = new PaintshopStation();
station.setBusNo("aaa");
station.setKeyStation(true);
station.setCode("HDG1-4");
station.setState(StationState.USE);
station.setBusType(ProductionType.OWN);
stationMap.put("HDG1-4",station);
PaintshopStation station2 = new PaintshopStation();
station2.setBusNo("bbb");
station2.setKeyStation(false);
station2.setBusType(ProductionType.OTHER);
station2.setState(StationState.FREE);
station2.setCode("HDG1-3");
stationMap.put("HDG1-3",station2);
s.add(stationMap);
return Return.success(stationMap);
}
@ApiOperation(value = "根据车身号获得当前车体信息", response = Bus.class)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment