| | |
| | | [ApiController] |
| | | public class CabinOrderController : ApiBaseController<ICabinOrderServices, Dt_CabinOrder> |
| | | { |
| | | public CabinOrderController(ICabinOrderServices service) : base(service) |
| | | private readonly IBusiness _business; |
| | | public CabinOrderController(ICabinOrderServices service, IBusiness business) : base(service) |
| | | { |
| | | _business = business; |
| | | } |
| | | |
| | | |
| | | [HttpPost,Route("GetUpstreamOrder"),AllowAnonymous] |
| | | [HttpPost, HttpGet, Route("GetUpstreamOrder"), AllowAnonymous] |
| | | public WebResponseContent GetUpstreamOrder() |
| | | { |
| | | return Service.GetUpstreamOrder(); |
| | | return _business.GetInOrder(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 宿å
¥åºå |
| | | /// </summary> |
| | | /// <param name="keys"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("FinishInOrder"),AllowAnonymous] |
| | | public WebResponseContent FinishInOrder(int key) |
| | | { |
| | | return Service.FinishInOrder(key); |
| | | } |
| | | /// æ¥è¯¢åä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("GetCabinOrders")] |
| | | public WebResponseContent GetCabinOrders([FromBody] SaveModel saveModel) |
| | | { |
| | | return Service.GetCabinOrders(saveModel); |
| | | } |
| | | |
| | | /// æ¥è¯¢å详æ
ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("GetCabinOrderDetail")] |
| | | public WebResponseContent GetCabinOrderDetail(int pageNo, string orderNo) |
| | | { |
| | | return Service.GetCabinOrderDetail(pageNo,orderNo); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, Route("FeedbackIn")] |
| | | public WebResponseContent FeedbackIn([FromBody] SaveModel saveModel) |
| | | { |
| | | return Service.FeedbackIn(saveModel); |
| | | } |
| | | //[HttpPost, Route("CompleteOrder"), AllowAnonymous] |
| | | //public WebResponseContent CompleteOrder(string order_no) |
| | | //{ |