bug修复

This commit is contained in:
guoshengxiong 2025-11-12 11:28:17 +08:00
parent 018afbc1e7
commit 53b53ec691

View File

@ -27,6 +27,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Optional;
@ -39,7 +41,8 @@ import java.util.stream.Collectors;
* @create: 2021-06-21 15:41
**/
@Slf4j
@Component
@RestController
@RequestMapping("/xmgl/task")
public class HighFormworkTask {
@Lazy
@Autowired
@ -117,6 +120,7 @@ public class HighFormworkTask {
*/
@Scheduled(cron = "* */5 * * * ?")
@SchedulerLock(name = "getHighFormworkDatas", lockAtMostFor = 1000 * 60, lockAtLeastFor = 1000 * 60)
@RequestMapping("getHighFormworkDatas")
public void getHighFormworkDatas() {
List<Project> projectList = projectService.list(new LambdaQueryWrapper<Project>().isNotNull(Project::getJntxAppKey).isNotNull(Project::getJntxAppSecret).ne(Project::getJntxAppKey, "").ne(Project::getJntxAppSecret, ""));
for (Project project : projectList) {