|
|
@ -137,6 +137,11 @@ public class HighCompanyAccountServiceImpl implements HighCompanyAccountService |
|
|
|
if (sessionModel.getBsCompany() == null || !(sessionModel.getBsCompany().getId().equals(organization.getCompanyId()))) { |
|
|
|
if (sessionModel.getBsCompany() == null || !(sessionModel.getBsCompany().getId().equals(organization.getCompanyId()))) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "权限不足"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "权限不足"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 查询公司信息
|
|
|
|
|
|
|
|
BsCompany company = companyService.getCompanyById(organization.getCompanyId()); |
|
|
|
|
|
|
|
if (company == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知公司信息"); |
|
|
|
|
|
|
|
} |
|
|
|
// 是否开通了账户
|
|
|
|
// 是否开通了账户
|
|
|
|
HighCompanyAccount companyAccount = getAccountByOrgId(organization.getId()); |
|
|
|
HighCompanyAccount companyAccount = getAccountByOrgId(organization.getId()); |
|
|
|
if (companyAccount == null) { |
|
|
|
if (companyAccount == null) { |
|
|
@ -158,7 +163,9 @@ public class HighCompanyAccountServiceImpl implements HighCompanyAccountService |
|
|
|
record.setAfterAmount(companyAccount.getAmounts()); |
|
|
|
record.setAfterAmount(companyAccount.getAmounts()); |
|
|
|
record.setCompanyAmountId(companyAccount.getId()); |
|
|
|
record.setCompanyAmountId(companyAccount.getId()); |
|
|
|
record.setCompanyId(organization.getCompanyId()); |
|
|
|
record.setCompanyId(organization.getCompanyId()); |
|
|
|
|
|
|
|
record.setCompanyName(organization.getName()); |
|
|
|
record.setOrgId(organization.getId()); |
|
|
|
record.setOrgId(organization.getId()); |
|
|
|
|
|
|
|
record.setOrgName(organization.getName()); |
|
|
|
record.setAmount(amount); |
|
|
|
record.setAmount(amount); |
|
|
|
record.setBeforeAmount(beforeAmount); |
|
|
|
record.setBeforeAmount(beforeAmount); |
|
|
|
record.setAfterAmount(afterAmount); |
|
|
|
record.setAfterAmount(afterAmount); |
|
|
|