You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
826 B
30 lines
826 B
package com.qs.serve.task.controller;
|
|
|
|
import com.qs.serve.common.model.dto.R;
|
|
import com.qs.serve.modules.pay.service.impl.PayApplicationService;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
/**
|
|
* @author YenHex
|
|
* @since 2023/11/2
|
|
*/
|
|
@Slf4j
|
|
@AllArgsConstructor
|
|
@RestController
|
|
@RequestMapping("/task/pay")
|
|
@ConditionalOnProperty(value = "project.task", havingValue = "true")
|
|
public class TaskPayController {
|
|
|
|
PayApplicationService applicationService;
|
|
|
|
@RequestMapping("test")
|
|
public R<?> task(){
|
|
applicationService.syncTotalPayToActivity();
|
|
return R.ok();
|
|
}
|
|
|
|
}
|
|
|