| | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | @Autowired |
| | | private ShopInfoService shopInfoService; |
| | | |
| | | @Autowired |
| | | private DriverInfoService driverInfoService; |
| | | |
| | | @ApiOperation("初始化历史门店/司机变更版本数据") |
| | | @PostMapping("/initChangeVersions") |
| | | public ApiResponse<String> initChangeVersions() { |
| | | int shopCount = shopInfoService.initChangeVersions(); |
| | | int driverCount = driverInfoService.initChangeVersions(); |
| | | return ApiResponse.success("门店初始化 " + shopCount + " 条,司机初始化 " + driverCount + " 条"); |
| | | } |
| | | |
| | | @ApiOperation("全部区划树形查询") |
| | | @PostMapping("/treeList") |
| | | public ApiResponse<List<Areas>> treeList (@RequestBody AreasDto pageWrap) { |
| | |
| | | @ApiOperation(value = "计算就地存取预估费用", notes = "根据城市、天数、物品类型和数量计算就地存取预估费用") |
| | | @PostMapping("/calculateLocalPrice") |
| | | public ApiResponse<PriceCalculateVO> calculateLocalPrice(@RequestBody @Valid CalculateLocalPriceDTO dto) { |
| | | dto.setMemberId(getMemberId()); |
| | | return ApiResponse.success("操作成功", ordersService.calculateLocalPrice(dto)); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "计算异地存取预估费用", notes = "根据距离、物品类型和数量计算异地存取预估费用") |
| | | @PostMapping("/calculateRemotePrice") |
| | | public ApiResponse<PriceCalculateVO> calculateRemotePrice(@RequestBody @Valid CalculateRemotePriceDTO dto) { |
| | | dto.setMemberId(getMemberId()); |
| | | return ApiResponse.success("操作成功", ordersService.calculateRemotePrice(dto)); |
| | | } |
| | | |