| | |
| | | return new JsonResult(returnMsg); |
| | | } |
| | | |
| | | |
| | | public IActionResult GetBanciAll(string id) |
| | | { |
| | | ReturnMsg<OrderBanciDTO> returnMsg = new ReturnMsg<OrderBanciDTO>(); |
| | | returnMsg.code = 2; |
| | | try |
| | | { |
| | | var orderBanciDTO = _orderBanciService.GetAll(id); |
| | | if (orderBanciDTO==null) |
| | | { |
| | | returnMsg.code = 2; |
| | | returnMsg.error = "没有查询到班次"; |
| | | returnMsg.count = 0; |
| | | } |
| | | |
| | | returnMsg.code = 1; |
| | | returnMsg.count = 1; |
| | | returnMsg.returnObj = orderBanciDTO; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | returnMsg.code = 2; |
| | | returnMsg.error = "没有获取到token"; |
| | | returnMsg.count = 0; |
| | | |
| | | } |
| | | return new JsonResult(returnMsg); |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | } |