|
@@ -40,6 +40,7 @@ import java.util.Map;
|
|
@EnableScheduling
|
|
@EnableScheduling
|
|
public class ShenChanTimer {
|
|
public class ShenChanTimer {
|
|
|
|
|
|
|
|
+ //生产数据
|
|
@Autowired
|
|
@Autowired
|
|
private RestTemplate restTemplate;
|
|
private RestTemplate restTemplate;
|
|
//环控数据
|
|
//环控数据
|
|
@@ -49,10 +50,17 @@ public class ShenChanTimer {
|
|
private static final String BASE_URL ="test.htpig.cn";
|
|
private static final String BASE_URL ="test.htpig.cn";
|
|
|
|
|
|
|
|
|
|
-// @Scheduled(cron = "0 0/11 * * * ? ")
|
|
|
|
-// private void getShenChan() throws Exception {
|
|
|
|
-//
|
|
|
|
-// }
|
|
|
|
|
|
+ @Scheduled(cron = "0 0/11 * * * ? ")
|
|
|
|
+ private void getShenChan() throws Exception {
|
|
|
|
+ //自己生成
|
|
|
|
+// if (false){
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// }else {
|
|
|
|
+ //没接口,暂时没有
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
private String loginOnly() throws Exception {
|
|
private String loginOnly() throws Exception {
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
Map<String, Object> map = new HashMap<String, Object>();
|