|  |  | 
 |  |  | package com.doumee.api.web; | 
 |  |  |  | 
 |  |  | //import com.doumee.api.Repeat.RepeatSubmit; | 
 |  |  | import com.doumee.biz.system.SystemDictDataBiz; | 
 |  |  | import com.doumee.core.annotation.LoginRequired; | 
 |  |  | import com.doumee.core.annotation.pr.PreventRepeat; | 
 |  |  | import com.doumee.core.annotation.trace.Trace; | 
 |  |  | import com.doumee.core.constants.Constants; | 
 |  |  | import com.doumee.core.model.ApiResponse; | 
 |  |  | import com.doumee.core.model.PageData; | 
 |  |  | import com.doumee.core.model.PageWrap; | 
 |  |  | import com.doumee.dao.business.model.BaseParam; | 
 |  |  | import com.doumee.dao.business.model.MemberRides; | 
 |  |  | import com.doumee.dao.business.model.RentSite; | 
 |  |  | import com.doumee.dao.business.model.Transactions; | 
 |  |  | import com.doumee.dao.business.model.*; | 
 |  |  | import com.doumee.dao.business.web.request.RepairRequest; | 
 |  |  | import com.doumee.dao.business.web.response.MemberRidesDetailResponse; | 
 |  |  | import com.doumee.dao.business.web.response.RidesDetailResponse; | 
 |  |  | import com.doumee.dao.system.model.SystemDictData; | 
 |  |  | import com.doumee.service.business.*; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiImplicitParam; | 
 |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private MemberRidesService memberRidesService; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private SystemDictDataBiz systemDictDataBiz; | 
 |  |  |  | 
 |  |  |     @PreventRepeat | 
 |  |  |     @LoginRequired | 
 |  |  |     @ApiOperation(value = "押金支付", notes = "小程序端") | 
 |  |  |     @GetMapping("/createGoodsOrderPay") | 
 |  |  | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<String> onlineBike() { | 
 |  |  |     public ApiResponse<MemberRides> onlineBike() { | 
 |  |  |         return  ApiResponse.success("查询成功",memberRidesService.getOnlineBike(getMemberId())); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse transactionsPage (@RequestBody RepairRequest repairRequest) { | 
 |  |  |     public ApiResponse transactionsPage (@RequestBody RepairRequest repairRequest) throws Exception{ | 
 |  |  |         repairRequest.setMemberId(getMemberId()); | 
 |  |  |         bikeRepairService.saveRepair(repairRequest); | 
 |  |  |         return ApiResponse.success("操作成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @PreventRepeat | 
 |  |  |     @LoginRequired | 
 |  |  |     @ApiOperation(value = "扫码解锁", notes = "小程序端") | 
 |  |  |     @GetMapping("/openLock") | 
 |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @LoginRequired | 
 |  |  |     @PreventRepeat | 
 |  |  |     @ApiOperation(value = "订单结算", notes = "小程序端") | 
 |  |  |     @GetMapping("/goodsOrderSettlement") | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "String", name = "orderId", value = "订单主键", required = true) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse goodsOrderSettlement(@RequestParam String orderId) { | 
 |  |  |         goodsorderService.goodsOrderSettlement(orderId); | 
 |  |  |     public ApiResponse goodsOrderSettlement() { | 
 |  |  |         goodsorderService.goodsOrderSettlement(getMemberId()); | 
 |  |  |         return  ApiResponse.success("操作成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @LoginRequired | 
 |  |  |     @ApiOperation(value = "获取字典值信息", notes = "小程序端") | 
 |  |  |     @GetMapping("/getSysDict") | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "String", name = "dicCode", value = "字典编码", required = true), | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "String", name = "label", value = "字典数值编码", required = true) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<SystemDictData> getSysDict(@RequestParam String dicCode, @RequestParam String label) { | 
 |  |  |         return  ApiResponse.success("查询成功",systemDictDataBiz.queryByCode(dicCode,label)); | 
 |  |  |     } | 
 |  |  | } |