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

Loading…
Cancel
Save