|
|
|
@ -692,6 +692,11 @@ public class StudentAccountAssetAllocationService extends CoreBaseService<Studen
|
|
|
|
|
"[CreatorUserId]) VALUES (" + applicationId + ", " + initialCapital + ", " + initialCapital + ", " + initialCapital + ", " + initialCapital + ", 0, 0, 0, 0, 0, " +
|
|
|
|
|
"0, 0, 0, 0, " + oldUserId + ", " +
|
|
|
|
|
"'0', NULL, NULL, NULL, NULL, '" + formattedDate + "', " + oldUserId + ")";
|
|
|
|
|
String sql1 = "INSERT INTO [dbo].[P2PAccount]([UserId], [Balance], [IsDeleted], [DeleterUserId], " +
|
|
|
|
|
"[DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], " +
|
|
|
|
|
"[CreatorUserId], [TotalInvestmentIncome]) VALUES ("+oldUserId+", "+initialCapital+", '0', NULL, NULL, " +
|
|
|
|
|
"'"+formattedDate+"', NULL, '"+formattedDate+"', "+oldUserId+", 0)";
|
|
|
|
|
runJdbc(sql1);
|
|
|
|
|
} else if (applicationId == 5L) {
|
|
|
|
|
sql = "INSERT INTO [dbo].[ExaTheRaiseAssetAllocation]([ApplicationId], [InitialCapital], [InitialInvestmentCapital], " +
|
|
|
|
|
"[The_Total_AssetsOf], [AvailableFunds], [InvestmentFunds], " +
|
|
|
|
@ -701,6 +706,11 @@ public class StudentAccountAssetAllocationService extends CoreBaseService<Studen
|
|
|
|
|
"[CreatorUserId]) VALUES (" + applicationId + ", " + initialCapital + ", " + initialCapital + ", " + initialCapital + ", " + initialCapital + ", 0, 0, 0, 0, 0, 0, " +
|
|
|
|
|
"" + oldUserId + ", '0', " +
|
|
|
|
|
"NULL, NULL, NULL, NULL, '" + formattedDate + "', " + oldUserId + ")";
|
|
|
|
|
String sql1 = "INSERT INTO [dbo].[CFAccount]([UserId], [TotalInvestmentIncome], [Balance], " +
|
|
|
|
|
"[IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], " +
|
|
|
|
|
"[CreationTime], [CreatorUserId]) VALUES ( "+oldUserId+", .00, "+initialCapital+", '0', NULL, NULL, '"+formattedDate+"', " +
|
|
|
|
|
"NULL, '"+formattedDate+"', NULL)";
|
|
|
|
|
runJdbc(sql1);
|
|
|
|
|
} else if (applicationId == 16L || applicationId == -16L) {
|
|
|
|
|
Integer secType;
|
|
|
|
|
secType = applicationId == 16L ? 1 : 4;
|
|
|
|
|