| | |
| | | fun saveCompanyLimit(money: Double,reason: String): Flowable<ResultData<Any>> { |
| | | return request().saveCompanyLimit(money,reason) |
| | | } |
| | | |
| | | /** |
| | | * 我的额度列表 |
| | | */ |
| | | fun getMineLimitList(page: Int): Flowable<ResultData<MyCreditBean>> { |
| | | return request().getMineLimitList(page) |
| | | } |
| | | |
| | | /** |
| | | * 额度审核 |
| | | */ |
| | | fun companyLimitApprove(id: String,state: Int,reason: String?): Flowable<ResultData<Any>> { |
| | | return request().companyLimitApprove(id,state,reason) |
| | | } |
| | | |
| | | /** |
| | | * 公务用车权限检测 |
| | | */ |
| | | fun validPermission(): Flowable<ResultData<JsonObject>> { |
| | | return request().validPermission() |
| | | } |
| | | |
| | | /** |
| | | * 出行事由 |
| | | */ |
| | | fun getBusinessReason(): Flowable<ResultData<List<Reason>>> { |
| | | return request().getBusinessReason() |
| | | } |
| | | |
| | | /** |
| | | * 查询价格和车型 |
| | | */ |
| | | fun queryBusinessCarModel(start:String,end:String,type: Int,startTime: String?,endTime: String?): Flowable<ResultData<ArrayList<CarPrice>>> { |
| | | return request().queryBusinessCarModel(start, end, type,endTime, startTime) |
| | | } |
| | | |
| | | /** |
| | | * 查询常用乘车人 |
| | | */ |
| | | fun queryStaff(): Flowable<ResultData<List<Passenger>>> { |
| | | return request().queryStaff() |
| | | } |
| | | |
| | | /** |
| | | * 公务下单 |
| | | */ |
| | | fun saveOrderBusiness(calType:Int,endAddress:String,endLat:Double, endLon:Double,isNotice:Int,orderSource:Int, orderType:Int,payWay:Int,people:String, |
| | | reason:String?,reasonTypeNames:String?, peopleNum:Int,placementLat:Double,placementLon:Double, serverCarModelId:Int?,startLat:Double,startLon:Double, |
| | | startAddress:String,substitute:Int,travelEndTime:String?, travelTime:String, type :Int, driverId: Int?): Flowable<ResultData<JsonObject>> { |
| | | return request().saveOrderBusiness(calType, endAddress, endLat, endLon, isNotice, orderSource, orderType, payWay, people, reason, reasonTypeNames, peopleNum, placementLat, |
| | | placementLon, serverCarModelId, startLat, startLon, startAddress, substitute, travelEndTime, travelTime, type,driverId) |
| | | } |
| | | |
| | | /** |
| | | * 公务订单审核列表 |
| | | */ |
| | | fun approveOrderList(page: Int): Flowable<ResultData<List<OrderCheckListBean>>> { |
| | | return request().approveOrderList(page) |
| | | } |
| | | |
| | | /** |
| | | * 公务订单审核详情 |
| | | */ |
| | | fun approveOrderDetail(id: String): Flowable<ResultData<OrderCheckDetail>> { |
| | | return request().approveOrderDetail(id) |
| | | } |
| | | |
| | | /** |
| | | * 订单审核 |
| | | */ |
| | | fun approveOrder(id: String,state:Int,reason: String?): Flowable<ResultData<Any>> { |
| | | return request().approveOrder(id,state,reason) |
| | | } |
| | | |
| | | /** |
| | | * 设置录音 |
| | | * @param state 1开 0关 |
| | | */ |
| | | fun setSound(state:Int): Flowable<ResultData<Any>> { |
| | | return request().setSound(state) |
| | | } |
| | | } |