| | |
| | | entity = new EnterpriseWallet(); |
| | | entity.EnterpriseId = request.EnterpriseId!.Value; |
| | | entity.Access = EnumEnterpriseWalletAccess.Alipay; |
| | | entity.Account = request.Account; |
| | | entity.MerchantId = request.MerchantId; |
| | | entity.PersonalProductCode = "FUND_SAFT_SIGN_WITHHOLDING_P"; |
| | | entity.SignScene = "INDUSTRY|SATF_ACC"; |
| | | entity.ThirdPartyType = "PARTNER"; |
| | |
| | | else |
| | | { |
| | | if (entity.SignStatus == EnumEnterpriseWalletSignStatus.Normal) throw Oops.Oh(EnumErrorCodeType.s510, "已签约"); |
| | | entity.Account = request.Account; |
| | | entity.MerchantId = request.MerchantId; |
| | | entity.SignStatus = EnumEnterpriseWalletSignStatus.Apply; |
| | | await rep.UpdateAsync(entity); |
| | | } |
| | |
| | | AccountBookId = entity.AccountBookId, |
| | | SceneCode = "SATF_FUND_BOOK", |
| | | MerchantUserId = entity.Code, |
| | | ExtInfo = new |
| | | { |
| | | agreement_no = entity.AgreementNo |
| | | }.ToJson() |
| | | }); |
| | | if (response.IsError) throw Oops.Oh(EnumErrorCodeType.s510, response.SubMsg ?? response.Msg); |
| | | entity.Balance = response.AvailableAmount.ToDecimal() ?? 0; |