任务中心领取防抖
This commit is contained in:
parent
3ef912482e
commit
9642d0ad2b
|
|
@ -105,7 +105,7 @@ public class TaskCenterController {
|
||||||
@ApiImplicitParam(name = "taskId", value = "任务id", dataTypeClass = Long.class, paramType = "body"),
|
@ApiImplicitParam(name = "taskId", value = "任务id", dataTypeClass = Long.class, paramType = "body"),
|
||||||
@ApiImplicitParam(name = "sourceId", value = "实物(物品Id)", dataTypeClass = Long.class, paramType = "body")
|
@ApiImplicitParam(name = "sourceId", value = "实物(物品Id)", dataTypeClass = Long.class, paramType = "body")
|
||||||
})
|
})
|
||||||
@Debounce(interval = 1000, value = "#userId,#record.taskId")
|
@Debounce(interval = 600000, value = "#userId,#record.taskId")
|
||||||
public Result receiveGoods(@ApiIgnore @RequestAttribute("userId") Long userId,@ApiIgnore TaskCenterRecord record) {
|
public Result receiveGoods(@ApiIgnore @RequestAttribute("userId") Long userId,@ApiIgnore TaskCenterRecord record) {
|
||||||
TaskCenter task = taskCenterService.getById(record.getTaskId());
|
TaskCenter task = taskCenterService.getById(record.getTaskId());
|
||||||
if (Objects.isNull(task)) {
|
if (Objects.isNull(task)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue