public GetModApplyResponseViewModel GetFltDomesticModApply(GetModApplyRequestViewModel request) { //1.查询机场信息 SearchCityAportModel aportModel = _getCityForFlightServiceBll.SearchAirport(new List <string>() { "N" }); //2.根据Cid查询客户信息 CustomerModel customerModel = _getCustomerServiceBll.GetCustomerByCid(request.Cid); GetModApplyQueryModel query = Mapper.Map <GetModApplyRequestViewModel, GetModApplyQueryModel>(request); query.AportInfo = aportModel; query.Customer = customerModel; if (customerModel.UserID.ToLower() == "administrator" && !string.IsNullOrEmpty(customerModel.CorpID)) { throw new Exception("administrator帐号无法提交改签申请"); } GetModApplyModel dataModel = _getFltDomesticModApplyViewServiceBll.GetModApplyView(query); GetModApplyResponseViewModel viewModel = Mapper.Map <GetModApplyModel, GetModApplyResponseViewModel>(dataModel); return(viewModel); }
public ResponseBaseViewModel <GetModApplyResponseViewModel> GetModApply([FromBody] GetModApplyRequestViewModel request) { request.Cid = this.GetCid(); GetModApplyResponseViewModel responseViewModel = _getFltDomesticModApplyViewApplication.GetFltDomesticModApply(request); ResponseBaseViewModel <GetModApplyResponseViewModel> v = new ResponseBaseViewModel <GetModApplyResponseViewModel> { Flag = new ResponseCodeViewModel() { Code = 0, MojoryToken = this.GetToken() }, Data = responseViewModel }; return(v); }