优化代码

This commit is contained in:
XinYi Song 2022-02-14 08:49:53 +08:00
parent 6d59774cfa
commit 18c401ba25
2 changed files with 4 additions and 4 deletions

View File

@ -22,12 +22,12 @@ public class SaticScheduleTask {
/** /**
* 查询新的火点信息 * 查询新的火点信息
*/ *//*
@Scheduled(cron = "0 0/5 * * * ?") @Scheduled(cron = "0 0/5 * * * ?")
private void configureTasks() { private void configureTasks() {
logger.info("执行静态定时任务时间: " + LocalDateTime.now()); logger.info("执行静态定时任务时间: " + LocalDateTime.now());
System.out.println("------" + "开始执行定时任务"); System.out.println("------" + "开始执行定时任务");
// tempQueryPoint.findPointToLocal(); // tempQueryPoint.findPointToLocal();
} }*/
} }

View File

@ -30,7 +30,7 @@ public class EquipmentController {
Locale locale = LocaleContextHolder.getLocale(); Locale locale = LocaleContextHolder.getLocale();
@GetMapping("/getEquipment") /*@GetMapping("/getEquipment")
public String getEquipment(){ public String getEquipment(){
Locale locale = LocaleContextHolder.getLocale(); Locale locale = LocaleContextHolder.getLocale();
@ -95,7 +95,7 @@ public class EquipmentController {
equipmentDao.save(equipment); equipmentDao.save(equipment);
} }
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "设备入库成功!", locale); return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "设备入库成功!", locale);
} }*/
/** /**
* 查询实时视频信息 * 查询实时视频信息