TASK:模块化;
This commit is contained in:
@@ -2302,7 +2302,12 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
}
|
}
|
||||||
|
|
||||||
Account subAccount = CopyUtil.copyObject(addSubAccountDTO, Account.class);
|
Account subAccount = CopyUtil.copyObject(addSubAccountDTO, Account.class);
|
||||||
|
if (account.getSystemUser() == 5) {
|
||||||
subAccount.setSystemUser(6);
|
subAccount.setSystemUser(6);
|
||||||
|
}
|
||||||
|
if (account.getSystemUser() == 7) {
|
||||||
|
subAccount.setSystemUser(8);
|
||||||
|
}
|
||||||
subAccount.setValidStartTime(account.getValidStartTime());
|
subAccount.setValidStartTime(account.getValidStartTime());
|
||||||
subAccount.setValidEndTime(account.getValidEndTime());
|
subAccount.setValidEndTime(account.getValidEndTime());
|
||||||
subAccount.setLanguage(Language.ENGLISH.name());
|
subAccount.setLanguage(Language.ENGLISH.name());
|
||||||
@@ -2961,6 +2966,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
account.setIsTrial(0);
|
account.setIsTrial(0);
|
||||||
account.setIsBeginner(1);
|
account.setIsBeginner(1);
|
||||||
account.setCredits(BigDecimal.valueOf(0));
|
account.setCredits(BigDecimal.valueOf(0));
|
||||||
|
account.setLanguage(Language.ENGLISH.name());
|
||||||
if (parent.getSystemUser() == 5) {
|
if (parent.getSystemUser() == 5) {
|
||||||
account.setSystemUser(6);
|
account.setSystemUser(6);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user