| | |
| | | import com.oying.modules.rider.service.*; |
| | | import com.oying.modules.rider.utils.Constants; |
| | | import com.oying.service.BucketStorageService; |
| | | import com.oying.utils.FileUtil; |
| | | import com.oying.utils.PageResult; |
| | | import com.oying.utils.R; |
| | | import com.oying.utils.StringUtils; |
| | | import com.oying.utils.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | @ApiOperation("查询第三方数据骑手信息") |
| | | // @PreAuthorize("@el.check('riderInfo:list')") |
| | | public ResponseEntity<?> getRiderSourceInfo(@PathVariable Long riderId) { |
| | | RiderInfo riderInfo = riderInfoService.getRiderSourceInfo(riderId); |
| | | RiderInfo riderInfo = riderInfoService.getRiderSourceInfo(SecurityUtils.getCurrentUserId()); |
| | | return ResponseEntity.ok(R.success(riderInfo)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("同步查询第三方骑手信息 LY") |
| | | // @PreAuthorize("@el.check('riderInfo:edit')") |
| | | public ResponseEntity<?> syncRiderSourceInfo(@PathVariable String sourcePlatform) { |
| | | riderInfoService.syncRiderSourceInfo(sourcePlatform); |
| | | return ResponseEntity.ok(R.success("操作成功")); |
| | | R result = riderInfoService.syncRiderSourceInfo(sourcePlatform); |
| | | return ResponseEntity.ok(result); |
| | | } |
| | | |
| | | @GetMapping("getRiderWalletInfo/{riderId}") |
| | | @ApiOperation("查询骑手钱包信息") |
| | | // @PreAuthorize("@el.check('riderWalletInfo:list')") |
| | | public ResponseEntity<?> getRiderWalletInfo(@PathVariable String riderId) { |
| | | RiderWalletInfo riderWalletInfo = riderWalletInfoService.getRiderWalletInfo(riderId); |
| | | RiderWalletInfo riderWalletInfo = riderWalletInfoService.getRiderWalletInfo(SecurityUtils.getCurrentUserId()); |
| | | return ResponseEntity.ok(R.success(riderWalletInfo)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("查询骑手订单收入明细分页") |
| | | // @PreAuthorize("@el.check('riderIncomeDetail:list')") |
| | | public ResponseEntity<?> getRiderIncomeDetail(RiderIncomeDetailQueryCriteria criteria) { |
| | | criteria.setRiderId(SecurityUtils.getCurrentUserId()); |
| | | Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize()); |
| | | PageResult<RiderIncomeDetail> riderIncomeDetails = riderIncomeDetailService.queryAll(criteria, page); |
| | | return ResponseEntity.ok(R.success(riderIncomeDetails)); |
| | |
| | | @ApiOperation("查询骑手提现记录分页") |
| | | // @PreAuthorize("@el.check('riderWithdrawalRecord:list')") |
| | | public ResponseEntity<?> getRiderWithdrawalRecord(RiderWithdrawalRecordQueryCriteria criteria) { |
| | | criteria.setRiderId(SecurityUtils.getCurrentUserId()); |
| | | Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize()); |
| | | PageResult<RiderWithdrawalRecord> riderIncomeDetails = riderWithdrawalRecordService.queryAll(criteria, page); |
| | | return ResponseEntity.ok(R.success(riderIncomeDetails)); |
| | |
| | | @ApiOperation("查询骑手订单记录分页") |
| | | // @PreAuthorize("@el.check('riderOrderRecord:list')") |
| | | public ResponseEntity<?> getRiderOrderRecord(RiderOrderRecordQueryCriteria criteria) { |
| | | criteria.setRiderId(SecurityUtils.getCurrentUserId()); |
| | | Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize()); |
| | | PageResult<RiderOrderRecord> riderOrderRecordPageResult = riderOrderRecordService.queryAll(criteria, page); |
| | | return ResponseEntity.ok(R.success(riderOrderRecordPageResult)); |