main
dongdingding 7 months ago
parent e183763675
commit 12cfe0f22e

@ -49,7 +49,10 @@ import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -65,12 +68,12 @@ import java.util.UUID;
* @author dong * @author dong
* @since 2024/3/12 16:37 * @since 2024/3/12 16:37
*/ */
@RestController //@RestController
@RequestMapping("pharmaceuticals/aCheck") //@RequestMapping("pharmaceuticals/aCheck")
@Api(tags = "新增") //@Api(tags = "新增")
//@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
//@Configuration @Configuration
//@EnableScheduling @EnableScheduling
public class AcheckTaskQuartz { public class AcheckTaskQuartz {
Logger logger = LoggerFactory.getLogger(AcheckTaskQuartz.class); Logger logger = LoggerFactory.getLogger(AcheckTaskQuartz.class);
/** /**
@ -170,10 +173,10 @@ public class AcheckTaskQuartz {
* *
* @Param qymc * @Param qymc
*/ */
// @Scheduled(cron = "0 0 4 * * ? ") @Scheduled(cron = "0 0 4 * * ? ")
// @Scheduled(cron = "0 0/5 * * * ?") // @Scheduled(cron = "0 0/5 * * * ?")
@PostMapping("/insert") // @PostMapping("/insert")
@ApiOperation(value = "新增创建时间为昨天且处于审批通过的工单数据") // @ApiOperation(value = "新增创建时间为昨天且处于审批通过的工单数据")
public void selectAll() throws ParseException { public void selectAll() throws ParseException {
// 获取token // 获取token
@ -644,10 +647,10 @@ public class AcheckTaskQuartz {
} }
// @Scheduled(cron = "0 0 4 * * ? ") @Scheduled(cron = "0 0 4 * * ? ")
// @Scheduled(cron = "0 0/5 * * * ?") // @Scheduled(cron = "0 0/5 * * * ?")
@PostMapping("/zicha") // @PostMapping("/zicha")
@ApiOperation(value = "自查") // @ApiOperation(value = "自查")
public void zicha() throws ParseException { public void zicha() throws ParseException {
// 获取token // 获取token
getToken(); getToken();

Loading…
Cancel
Save