| | |
| | | // } |
| | | @Scheduled(cron = "0 0 1 * * ?") |
| | | public void mytask4() throws IOException { |
| | | Long time = getCurrentTimestampPlus8Hours(8); |
| | | Long time = getCurrentTimestampPlus8Hours(1); |
| | | List<List<Long>> listOfLists = new ArrayList<>(); |
| | | List<Long> sublist = new ArrayList<>(); |
| | | sublist.add(time); // 添加整数值 |
| | |
| | | List<Long> lists1 = new ArrayList<>(); |
| | | lists1.add(time); |
| | | String times = convertTimestampToFormattedString(time); |
| | | sendPostWithParameters("别墅巡查一段", "a07229af-471a-4058-9da6-5a2b84308b9e", times, lists1, listOfLists); |
| | | sendPostWithParameters("别墅巡查一段", "c1b9c70e-2e58-4147-b43e-aa4f639726bb", times, lists1, listOfLists); |
| | | } |
| | | |
| | | @Scheduled(cron = "0 50 0 * * ?") |
| | |
| | | + "\"dock_sn\":\"4TADKCM0010016\"," |
| | | + "\"task_type\":1," |
| | | + "\"select_execute_time\":\"%s\"," |
| | | + "\"rth_altitude\":80," |
| | | + "\"rth_altitude\":100," |
| | | + "\"out_of_control_action\":0," |
| | | + "\"executeTimeContinuousArr\":[{\"index\":1,\"value\":[]}]," |
| | | + "\"executeTimeRepeatArr\":[{\"index\":1,\"value\":\"\"}]," |
| | |
| | | + "\"rep_fre_type\":3," |
| | | + "\"rep_rule_type\":1," |
| | | + "\"time_range\":[]," |
| | | + "\"rth_mode\":1," |
| | | + "\"1conValue\":[]," |
| | | + "\"1repValue\":\"\"," |
| | | + "\"task_days\":%s," |