|
|
|
@ -11,9 +11,8 @@ import com.ibeetl.jlw.web.query.SchoolClassQuery;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
public class SubsystemUserUtil {
|
|
|
|
|
|
|
|
|
@ -25,15 +24,26 @@ public class SubsystemUserUtil {
|
|
|
|
|
private static final String MNJY_USER_INSERT_API_URL="http://120.79.161.177:8091/account/saveNewUsersFromZhiyunPlatform";
|
|
|
|
|
private static final String SZJJ_USER_INSERT_API_URL="http://112.74.160.81:9909/api/user/synchronizationStudentInfoByAuto";
|
|
|
|
|
private static final String QKL_USER_INSERT_API_URL="http://120.79.54.255:8800/account/checkOrCreateForexSimulationUser";
|
|
|
|
|
private static final String JRDSJ_USER_INSERT_API_URL="http://120.78.220.29:8838/tea/user/checkOrCreateForexSimulationUser";
|
|
|
|
|
private static final String IPO_USER_INSERT_API_URL="http://120.78.220.29:8818/api/user/checkOrCreateForexSimulationUser";
|
|
|
|
|
private static final String SZZX_USER_INSERT_API_URL="https://120.79.54.255:7899/api/user/synchronizationStudentInfoByCredit";
|
|
|
|
|
private static final String SZYX_USER_INSERT_API_URL="https://120.79.54.255:9868/api/user/synchronizationStudentInfoByAuto";
|
|
|
|
|
private static final String JRDSJ_USER_INSERT_API_URL="http://120.78.220.29:9988/tea/user/checkOrCreateForexSimulationUser";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void subsystemUserCreate(List<ZYUserInfo> zyUserInfos, List<String> applications) throws JsonProcessingException {
|
|
|
|
|
|
|
|
|
|
public static void subsystemUserCreate(List<ZYUserInfo> zyUserInfoss, List<String> applications) throws JsonProcessingException {
|
|
|
|
|
Set<Integer> set=new HashSet<>();
|
|
|
|
|
List<ZYUserInfo> zyUserInfos=new ArrayList<>();
|
|
|
|
|
for (int i = 0; i < zyUserInfoss.size(); i++) {
|
|
|
|
|
if(set.contains(zyUserInfoss.get(i).getUserId())){
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
set.add(zyUserInfoss.get(i).getUserId());
|
|
|
|
|
zyUserInfos.add(zyUserInfoss.get(i));
|
|
|
|
|
}
|
|
|
|
|
if (zyUserInfos != null && zyUserInfos.size() > 0) {
|
|
|
|
|
ObjectMapper objectMapper = new ObjectMapper();
|
|
|
|
|
String json = objectMapper.writeValueAsString(zyUserInfos);
|
|
|
|
@ -53,14 +63,50 @@ public class SubsystemUserUtil {
|
|
|
|
|
//MNJY系统新增用户信息
|
|
|
|
|
HttpUtil.sendPostRequest(QKL_USER_INSERT_API_URL, json, "application/json");
|
|
|
|
|
}
|
|
|
|
|
if (applications.contains(SubsystemName.BIG_DATA_STORAGE.getText())) {
|
|
|
|
|
//MNJY系统新增用户信息
|
|
|
|
|
HttpUtil.sendPostRequest(JRDSJ_USER_INSERT_API_URL, json, "application/json");
|
|
|
|
|
if (applications.contains(SubsystemName.FINANCIAL_BIGDATA.getText())) {
|
|
|
|
|
//金融大数据系统新增用户信息
|
|
|
|
|
String systemOwner="?systemOwner=金融大数据";
|
|
|
|
|
try {
|
|
|
|
|
HttpUtil.sendPost(JRDSJ_USER_INSERT_API_URL+systemOwner, json, "application/json", null);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(applications.contains(SubsystemName.BIGDATA_BASICS.getText())){
|
|
|
|
|
//大数据基础系统新增用户信息
|
|
|
|
|
String systemOwner="?systemOwner=Python基础实训教学系统";
|
|
|
|
|
try {
|
|
|
|
|
HttpUtil.sendPost(JRDSJ_USER_INSERT_API_URL+systemOwner, json, "application/json", null);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(applications.contains(SubsystemName.MACHINE_LEARNING.getText())){
|
|
|
|
|
//机器学习新增用户信息
|
|
|
|
|
String systemOwner="?systemOwner=机器学习";
|
|
|
|
|
try {
|
|
|
|
|
HttpUtil.sendPost(JRDSJ_USER_INSERT_API_URL+systemOwner, json, "application/json", null);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(applications.contains(SubsystemName.INTELLIGEN_RISK_CONTROL.getText())){
|
|
|
|
|
//智能风控新增用户信息
|
|
|
|
|
String systemOwner="?systemOwner=金融风险管理实训系统";
|
|
|
|
|
try {
|
|
|
|
|
HttpUtil.sendPost(JRDSJ_USER_INSERT_API_URL+systemOwner, json, "application/json", null);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (applications.contains(SubsystemName.CREDIT_RATING_AGENCIES.getText())) {
|
|
|
|
|
//MNJY系统新增用户信息
|
|
|
|
|
HttpUtil.sendPostRequest(SZZX_USER_INSERT_API_URL, json, "application/json");
|
|
|
|
|
}
|
|
|
|
|
if (applications.contains(SubsystemName.IPO.getText())) {
|
|
|
|
|
//皖西虚拟仿真
|
|
|
|
|
HttpUtil.sendPostRequest(IPO_USER_INSERT_API_URL, json, "application/json");
|
|
|
|
|
}
|
|
|
|
|
//数字营销
|
|
|
|
|
if (applications.contains(SubsystemName.DIGITAL_MARKETING.getText())) {
|
|
|
|
|
//MNJY系统新增用户信息
|
|
|
|
|