Commit 57a3c25f authored by lining's avatar lining

fix: api执行间隔

parent e60179a6
...@@ -89,7 +89,7 @@ public class ServiceOrderController { ...@@ -89,7 +89,7 @@ public class ServiceOrderController {
} }
@ApiOperation(value = "修改估价") @ApiOperation(value = "修改估价")
@ApiIdempotent(interval = 30000L) @ApiIdempotent(interval = 3000L)
@PostMapping("revaluation") @PostMapping("revaluation")
public Result revaluation(@RequestBody @NonNull @Validated ValuationServiceOrderDTO dto, @CurrentUserId Long userId) { public Result revaluation(@RequestBody @NonNull @Validated ValuationServiceOrderDTO dto, @CurrentUserId Long userId) {
return serviceOrderService.revaluation(dto, userId, ServiceOrderOpSourceEnum.MINI_APP) == 1 ? success() : fail("修改估价失败"); return serviceOrderService.revaluation(dto, userId, ServiceOrderOpSourceEnum.MINI_APP) == 1 ? success() : fail("修改估价失败");
...@@ -114,7 +114,7 @@ public class ServiceOrderController { ...@@ -114,7 +114,7 @@ public class ServiceOrderController {
} }
@ApiOperation(value = "修改派单") @ApiOperation(value = "修改派单")
@ApiIdempotent(interval = 30000L) @ApiIdempotent(interval = 3000L)
@PostMapping("redispatch") @PostMapping("redispatch")
public Result redispatch(@RequestBody @NonNull @Validated DispatchServiceOrderDTO dto, @CurrentUserId Long userId) { public Result redispatch(@RequestBody @NonNull @Validated DispatchServiceOrderDTO dto, @CurrentUserId Long userId) {
return serviceOrderService.redispatch(dto, userId, ServiceOrderOpSourceEnum.MINI_APP) == 1 ? success() : fail("修改派单失败"); return serviceOrderService.redispatch(dto, userId, ServiceOrderOpSourceEnum.MINI_APP) == 1 ? success() : fail("修改派单失败");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment