|
@@ -59,11 +59,13 @@ public class QmsQueueResultController extends BaseRESTfulController {
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
map.put("vno",vno);
|
|
map.put("vno",vno);
|
|
int i = qmsQueueResultService.addQueueResult(map);
|
|
int i = qmsQueueResultService.addQueueResult(map);
|
|
- if(i > 0){
|
|
|
|
- return success();
|
|
|
|
- }else {
|
|
|
|
- return failed("","新增失败");
|
|
|
|
|
|
+ if(i==0) {
|
|
|
|
+ return failed("", "新增失败");
|
|
}
|
|
}
|
|
|
|
+ if(i==-1){
|
|
|
|
+ return failed("","车号"+vno+"没有对应的订单");
|
|
|
|
+ }
|
|
|
|
+ return success();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value="查询排队申请")
|
|
@ApiOperation(value="查询排队申请")
|