|
|
@ -87,11 +87,6 @@ public class HighMerchantStoreAccountServiceImpl implements HighMerchantStoreAcc |
|
|
|
if (merchant == null) { |
|
|
|
if (merchant == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的商户"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的商户"); |
|
|
|
} |
|
|
|
} |
|
|
|
// 操作人
|
|
|
|
|
|
|
|
UserInfoModel sessionModel = userCenter.getSessionModel(UserInfoModel.class); |
|
|
|
|
|
|
|
if (sessionModel == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知用户"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 是否开通了账户
|
|
|
|
// 是否开通了账户
|
|
|
|
HighMerchantStoreAccount account = getStoreAccountDetail(storeId); |
|
|
|
HighMerchantStoreAccount account = getStoreAccountDetail(storeId); |
|
|
|
if (account == null) { |
|
|
|
if (account == null) { |
|
|
@ -120,8 +115,8 @@ public class HighMerchantStoreAccountServiceImpl implements HighMerchantStoreAcc |
|
|
|
record.setSourceType(MapUtils.getInteger(otherParam, "sourceType")); |
|
|
|
record.setSourceType(MapUtils.getInteger(otherParam, "sourceType")); |
|
|
|
record.setSourceId(MapUtils.getLong(otherParam, "sourceId")); |
|
|
|
record.setSourceId(MapUtils.getLong(otherParam, "sourceId")); |
|
|
|
record.setSourceContent(MapUtils.getString(otherParam, "sourceContent")); |
|
|
|
record.setSourceContent(MapUtils.getString(otherParam, "sourceContent")); |
|
|
|
record.setOpUserId(sessionModel.getSecUser().getId()); |
|
|
|
record.setOpUserId(MapUtils.getLong(otherParam, "opUserId")); |
|
|
|
record.setOpUserName(sessionModel.getSecUser().getUserName()); |
|
|
|
record.setOpUserName(MapUtils.getString(otherParam, "opUserName")); |
|
|
|
merchantStoreAccountRecordService.editRecord(record); |
|
|
|
merchantStoreAccountRecordService.editRecord(record); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -138,11 +133,6 @@ public class HighMerchantStoreAccountServiceImpl implements HighMerchantStoreAcc |
|
|
|
if (merchant == null) { |
|
|
|
if (merchant == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的商户"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的商户"); |
|
|
|
} |
|
|
|
} |
|
|
|
// 操作人
|
|
|
|
|
|
|
|
UserInfoModel sessionModel = userCenter.getSessionModel(UserInfoModel.class); |
|
|
|
|
|
|
|
if (sessionModel == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知用户"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 是否开通了账户
|
|
|
|
// 是否开通了账户
|
|
|
|
HighMerchantStoreAccount account = getStoreAccountDetail(storeId); |
|
|
|
HighMerchantStoreAccount account = getStoreAccountDetail(storeId); |
|
|
|
if (account == null) { |
|
|
|
if (account == null) { |
|
|
@ -165,6 +155,8 @@ public class HighMerchantStoreAccountServiceImpl implements HighMerchantStoreAcc |
|
|
|
record.setStoreAmountId(account.getId()); |
|
|
|
record.setStoreAmountId(account.getId()); |
|
|
|
record.setMerId(merchant.getId()); |
|
|
|
record.setMerId(merchant.getId()); |
|
|
|
record.setMerName(merchant.getMerchantName()); |
|
|
|
record.setMerName(merchant.getMerchantName()); |
|
|
|
|
|
|
|
record.setStoreId(store.getId()); |
|
|
|
|
|
|
|
record.setStoreName(store.getStoreName()); |
|
|
|
record.setAmount(amount); |
|
|
|
record.setAmount(amount); |
|
|
|
record.setBeforeAmount(beforeAmount); |
|
|
|
record.setBeforeAmount(beforeAmount); |
|
|
|
record.setAfterAmount(afterAmount); |
|
|
|
record.setAfterAmount(afterAmount); |
|
|
@ -172,8 +164,8 @@ public class HighMerchantStoreAccountServiceImpl implements HighMerchantStoreAcc |
|
|
|
record.setSourceType(MapUtils.getInteger(otherParam, "sourceType")); |
|
|
|
record.setSourceType(MapUtils.getInteger(otherParam, "sourceType")); |
|
|
|
record.setSourceId(MapUtils.getLong(otherParam, "sourceId")); |
|
|
|
record.setSourceId(MapUtils.getLong(otherParam, "sourceId")); |
|
|
|
record.setSourceContent(MapUtils.getString(otherParam, "sourceContent")); |
|
|
|
record.setSourceContent(MapUtils.getString(otherParam, "sourceContent")); |
|
|
|
record.setOpUserId(sessionModel.getSecUser().getId()); |
|
|
|
record.setOpUserId(MapUtils.getLong(otherParam, "opUserId")); |
|
|
|
record.setOpUserName(sessionModel.getSecUser().getUserName()); |
|
|
|
record.setOpUserName(MapUtils.getString(otherParam, "opUserName")); |
|
|
|
merchantStoreAccountRecordService.editRecord(record); |
|
|
|
merchantStoreAccountRecordService.editRecord(record); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|