Merge #100 into master from cc_0260415_fix
feat:提现刷新 * cc_0260415_fix: (1 commits squashed) - feat:提现刷新 Signed-off-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com> Merged-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com> CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/100
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.dto.wallet.WithdrawApplicationDTO;
|
||||
import com.cool.store.job.XxlJobHandler;
|
||||
import com.cool.store.request.WithdrawApplicationPageRequest;
|
||||
import com.cool.store.request.WithdrawApplicationRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
@@ -26,6 +27,8 @@ public class WithdrawApplicationController {
|
||||
|
||||
@Resource
|
||||
private WithdrawApplicationService withdrawApplicationService;
|
||||
@Resource
|
||||
XxlJobHandler xxlJobHandler;
|
||||
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("新增提现申请")
|
||||
@@ -44,4 +47,11 @@ public class WithdrawApplicationController {
|
||||
public ResponseResult<Boolean> confirmWithdraw(@RequestParam Long id) {
|
||||
return ResponseResult.success(withdrawApplicationService.confirmWithdraw(id));
|
||||
}
|
||||
|
||||
@ApiOperation("刷新提现单状态")
|
||||
@GetMapping("/refreshStatus")
|
||||
public ResponseResult<Boolean> refreshStatus() {
|
||||
xxlJobHandler.withdrawUpdate();
|
||||
return ResponseResult.success(Boolean.TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user