Commit ac0daddf authored by hezhuozhi's avatar hezhuozhi

提交大屏监控风机级别默认值

parent e2c97f30
...@@ -45,6 +45,7 @@ import org.springframework.beans.BeanUtils; ...@@ -45,6 +45,7 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner; import org.springframework.boot.ApplicationRunner;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.typroject.tyboot.core.foundation.enumeration.UserType; import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation; import org.typroject.tyboot.core.restful.doc.TycloudOperation;
...@@ -1868,7 +1869,8 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl ...@@ -1868,7 +1869,8 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
/** /**
* 初始化场站第一个选中 * 初始化场站第一个选中
*/ */
private void initStationFirstSelect() { @Scheduled(cron = "0 */3 * * * ?")
public void initStationFirstSelect() {
List<StationBasicDto> stationBasicDtos = stationBasicMapper.getStationBasicList(); List<StationBasicDto> stationBasicDtos = stationBasicMapper.getStationBasicList();
if(CollectionUtil.isNotEmpty(stationBasicDtos)){ if(CollectionUtil.isNotEmpty(stationBasicDtos)){
JSONArray resultArray=new JSONArray(); JSONArray resultArray=new JSONArray();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment