|
|
@@ -6,6 +6,7 @@ import lombok.RequiredArgsConstructor;
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
import jakarta.validation.constraints.*;
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
+import org.dromara.backstage.business.payments.PayOrderBusiness;
|
|
|
import org.dromara.common.message.kafka.aop.annotation.SyncDataToLocal;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
@@ -39,6 +40,7 @@ import static org.dromara.common.message.kafka.constant.MessageEventTypeConstant
|
|
|
public class PtSubsidyController extends BaseController {
|
|
|
|
|
|
private final IPtSubsidyService ptSubsidyService;
|
|
|
+ private final PayOrderBusiness subsidyOrderBusiness;
|
|
|
|
|
|
/**
|
|
|
* 查询补助设置列表
|
|
|
@@ -122,4 +124,16 @@ public class PtSubsidyController extends BaseController {
|
|
|
@PathVariable Long[] mainIds) {
|
|
|
return toAjax(ptSubsidyService.deleteWithValidByIds(List.of(mainIds), true));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 手动执行补助发放定时任务
|
|
|
+ */
|
|
|
+ @SaCheckPermission("subsidy:ptSubsidy:audit")
|
|
|
+ @Log(title = "手动执行补助发放定时任务", businessType = BusinessType.UPDATE)
|
|
|
+ @RepeatSubmit()
|
|
|
+ @PutMapping("/exeScheduled")
|
|
|
+ public R<Object> exeScheduled() {
|
|
|
+ return subsidyOrderBusiness.createSubsidyOrder();
|
|
|
+ }
|
|
|
+
|
|
|
}
|