修改重点接口,新增一人同诉,多人多诉接口

master
dongdingding 1 year ago
parent baa9633843
commit a29326ec62

@ -67,13 +67,19 @@ public class PushQuartz {
remoteCallsService.urgentAlgorithm(localTimeStr); remoteCallsService.urgentAlgorithm(localTimeStr);
// 重点人员接口 // 重点人员接口
log.info("==============推送重点人员接口" + LocalDateTime.now() + "============"); log.info("==============推送重点人员接口" + LocalDateTime.now() + "============");
remoteCallsService.keypersonAlgorithm(localTimeStr); remoteCallsService.keypersonAlgorithm();
// 群体事件接口 // 群体事件接口
log.info("==============推送群体事件接口" + LocalDateTime.now() + "============"); log.info("==============推送群体事件接口" + LocalDateTime.now() + "============");
remoteCallsService.groupAlgorithm(); remoteCallsService.groupAlgorithm();
// 同人事件接口 // 同人事件接口
log.info("==============推送同人事件接口" + LocalDateTime.now() + "============"); log.info("==============推送同人事件接口" + LocalDateTime.now() + "============");
remoteCallsService.onepersonAlgorithm(); remoteCallsService.onepersonAlgorithm();
// 同人同诉接口
log.info("==============推送同人同诉接口" + LocalDateTime.now() + "============");
remoteCallsService.samepersonComplaint();
// 一人多诉接口
log.info("==============推送一人多诉接口" + LocalDateTime.now() + "============");
remoteCallsService.onepersonSues();
// 推送 // 推送
log.info("==============推送到预警平台接口" + LocalDateTime.now() + "============"); log.info("==============推送到预警平台接口" + LocalDateTime.now() + "============");
int num = remoteCallsService.imports(1); int num = remoteCallsService.imports(1);

@ -25,6 +25,7 @@ public interface RemoteCallsService {
/** /**
* events_import * events_import
*
* @return * @return
*/ */
int getEventDate(); int getEventDate();
@ -38,10 +39,8 @@ public interface RemoteCallsService {
/** /**
* *
*
* @param yesterdayStr yyyy-MM-dd
*/ */
void keypersonAlgorithm(String yesterdayStr); void keypersonAlgorithm();
/** /**
* *
@ -75,4 +74,14 @@ public interface RemoteCallsService {
* @param innerEventId id * @param innerEventId id
*/ */
void pushByInnerEventId(String innerEventId); void pushByInnerEventId(String innerEventId);
/**
*
*/
void samepersonComplaint();
/**
*
*/
void onepersonSues();
} }

@ -208,16 +208,15 @@ public class RemoteCallsServiceImpl implements RemoteCallsService {
/** /**
* *
*
* @param yesterdayStr yyyy-MM-dd
*/ */
@Override @Override
public void keypersonAlgorithm(String yesterdayStr) { public void keypersonAlgorithm() {
Map<String, Object> body = new HashMap<>(); Map<String, Object> body = new HashMap<>();
body.put("data", yesterdayStr); //data写死成3
body.put("data", 3);
String bodyStr = JSONUtil.toJsonStr(body); String bodyStr = JSONUtil.toJsonStr(body);
HttpRequest.post("http://localhost:9003/keyperson_algorithm").body(bodyStr).execute().body(); HttpRequest.post("http://localhost:9003/keyperson_algorithm").body(bodyStr).execute().body();
log.info(yesterdayStr);
} }
/** /**
@ -320,6 +319,22 @@ public class RemoteCallsServiceImpl implements RemoteCallsService {
HttpRequest.post(url + "/gateway/event/event/eventData/imports").header("Authorization", "Bearer " + accessToken).body(jsonStr).execute().body(); HttpRequest.post(url + "/gateway/event/event/eventData/imports").header("Authorization", "Bearer " + accessToken).body(jsonStr).execute().body();
} }
@Override
public void samepersonComplaint() {
Map<String, Object> body = new HashMap<>();
body.put("data", 7);
String bodyStr = JSONUtil.toJsonStr(body);
HttpRequest.post("http://localhost:9003/oneperson_algorithm").body(bodyStr).execute().body();
}
@Override
public void onepersonSues() {
Map<String, Object> body = new HashMap<>();
body.put("data", 7);
String bodyStr = JSONUtil.toJsonStr(body);
HttpRequest.post("http://localhost:9003/oneperson_muti_algorithm").body(bodyStr).execute().body();
}
/** /**
* events_import * events_import
* *

Loading…
Cancel
Save