调整区块链概念和技术,数字人民币,供应链金融授权问题

beetlsql3-dev
whb 6 months ago
parent 180228a8e6
commit 54a77f060d

@ -30,8 +30,16 @@ public class SubsystemUserUtil {
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";
//同步区块链超管端院校权限数据
private static final String QUL_ADMIN_PERMISSION_URL="https://qkljr.sztzjy.com:89/api/admin/permissions/getAdminModulePermissionsControl?limit=1&page=10";
//开启区块链概念和技术,区块链发票权限
private static final String QUL_BLOCK_START_URL="https://qkljr.sztzjy.com:89/api/admin/permissions/getBlock";
//开启区块链供应链金融权限
private static final String QUL_BLOCKSUPPLY_START_URL="https://qkljr.sztzjy.com:89/api/admin/permissions/getBlockSupply";
//开启区块链数字人民币权限
private static final String QUL_BLOCKDIGITALCURRENCY_START_URL="https://qkljr.sztzjy.com:89/api/admin/permissions/getDigitalCurrency";
@ -47,6 +55,8 @@ public class SubsystemUserUtil {
}
if (zyUserInfos != null && zyUserInfos.size() > 0) {
ObjectMapper objectMapper = new ObjectMapper();
//获取schoolId
Integer schoolId = zyUserInfos.get(0).getSchoolId();
String json = objectMapper.writeValueAsString(zyUserInfos);
if (applications.contains(SubsystemName.INVESTMENT_BANK.getText())) {
//PEVC系统新增用户信息
@ -63,9 +73,40 @@ public class SubsystemUserUtil {
if (applications.contains(SubsystemName.BLOCKCHAIN_TECHNOLOGY.getText())) {
//MNJY系统新增用户信息
HttpUtil.sendPostRequest(QKL_USER_INSERT_API_URL, json, "application/json");
//区块链超管端同步开启相关权限接口
cn.hutool.http.HttpUtil.createGet(QUL_ADMIN_PERMISSION_URL).execute();
String url= QUL_BLOCK_START_URL +"?schoolId="+schoolId;
cn.hutool.http.HttpUtil.createGet(url).execute();
}
if (applications.contains(SubsystemName.DIGITAL_CURRENCY.getText())) {
//MNJY系统新增用户信息
HttpUtil.sendPostRequest(QKL_USER_INSERT_API_URL, json, "application/json");
//区块链超管端同步开启相关权限接口
cn.hutool.http.HttpUtil.createGet(QUL_ADMIN_PERMISSION_URL).execute();
//单独开通区块链数字人民币权限
String url= QUL_BLOCKDIGITALCURRENCY_START_URL +"?schoolId="+schoolId;
cn.hutool.http.HttpUtil.createGet(url).execute();
}
if (applications.contains(SubsystemName.SUPPLY_CHAIN_FINANCE_COMPANY.getText())) {
//MNJY系统新增用户信息
HttpUtil.sendPostRequest(QKL_USER_INSERT_API_URL, json, "application/json");
//区块链超管端同步开启相关权限接口
cn.hutool.http.HttpUtil.createGet(QUL_ADMIN_PERMISSION_URL).execute();
//单独开通区块链供应链金融权限
String url= QUL_BLOCKSUPPLY_START_URL +"?schoolId="+schoolId;
cn.hutool.http.HttpUtil.createGet(url).execute();
}
if (applications.contains(SubsystemName.FINANCIAL_BIGDATA.getText())) {
//金融大数据系统新增用户信息
String systemOwner="?systemOwner=金融大数据";

Loading…
Cancel
Save