|
|
|
@ -305,6 +305,7 @@ public class StudentAccountAssetAllocationService extends CoreBaseService<Studen
|
|
|
|
|
for (int j = 1; j < 3; j++) {
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < values.length; i++) {
|
|
|
|
|
if(values[i].getText().equals("现金账户"))continue;
|
|
|
|
|
StudentAccountAssetAllocation allocation = new StudentAccountAssetAllocation();
|
|
|
|
|
allocation.setStudentId(studentId);
|
|
|
|
|
//先默认不开通,条件符合就开通
|
|
|
|
@ -328,7 +329,7 @@ public class StudentAccountAssetAllocationService extends CoreBaseService<Studen
|
|
|
|
|
|
|
|
|
|
} else if (ObjectUtil.equals(values[i].getText(), AccountTypeEnum.EQUITY_INVESTMENT_ACCOUNT.getText())) {
|
|
|
|
|
|
|
|
|
|
query.setApplicationSecondLevelRelation("PE/VC");
|
|
|
|
|
query.setApplicationSecondLevelRelation("投资银行");
|
|
|
|
|
|
|
|
|
|
} else if (ObjectUtil.equals(values[i].getText(), AccountTypeEnum.EQUITY_FUND_QUANTITATIVE_TRADING_ACCOUNT.getText())) {
|
|
|
|
|
|
|
|
|
@ -356,6 +357,8 @@ public class StudentAccountAssetAllocationService extends CoreBaseService<Studen
|
|
|
|
|
|
|
|
|
|
}else if(ObjectUtil.equals(values[i].getText(),AccountTypeEnum.FINANCIAL_ACCOUNT.getText())){
|
|
|
|
|
query.setApplicationSecondLevelRelation("智能理财");
|
|
|
|
|
}else if(ObjectUtil.equals(values[i].getText(),AccountTypeEnum.FOREX_INVESTMENT_ACCOUNT.getText())){
|
|
|
|
|
query.setApplicationSecondLevelRelation("外汇");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (ObjectUtil.equals(values[i].getText(), AccountTypeEnum.BANK_ACCOUNT.getText())) {
|
|
|
|
@ -408,6 +411,8 @@ public class StudentAccountAssetAllocationService extends CoreBaseService<Studen
|
|
|
|
|
new BigDecimal(money) : BigDecimal.ZERO);
|
|
|
|
|
allocation.setInitialInvestmentCapital(CollectionUtil.isNotEmpty(experimentalSystems) ?
|
|
|
|
|
new BigDecimal(money) : BigDecimal.ZERO);
|
|
|
|
|
allocation.setTotalAssetsOfSubAccounts(CollectionUtil.isNotEmpty(experimentalSystems) ?
|
|
|
|
|
new BigDecimal(money) : BigDecimal.ZERO);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -699,6 +704,12 @@ public class StudentAccountAssetAllocationService extends CoreBaseService<Studen
|
|
|
|
|
return studentAccountAssetAllocationDao.getInfo(studentId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取个人投资账户
|
|
|
|
|
|
|
|
|
|
public List<StudentAccountAssetAllocation> getInfoByStudentIdAnIsInstitution(Long studentId) {
|
|
|
|
|
return studentAccountAssetAllocationDao.getInfoByStudentIdAnIsInstitution(studentId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String sendPostRequest(String url, String postData) {
|
|
|
|
|
try {
|
|
|
|
|
URL apiUrl = new URL(url);
|
|
|
|
|