|
|
@ -4,6 +4,7 @@ using BBWYB.Server.Model; |
|
|
|
using BBWYB.Server.Model.Db.Mds; |
|
|
|
using BBWYB.Server.Model.Db.MDS; |
|
|
|
using BBWYB.Server.Model.Dto; |
|
|
|
using Org.BouncyCastle.Ocsp; |
|
|
|
using SDKAdapter.OperationPlatform.Client; |
|
|
|
using SDKAdapter.OperationPlatform.Models; |
|
|
|
using Yitter.IdGenerator; |
|
|
@ -50,6 +51,10 @@ namespace BBWYB.Server.Business |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(shopSettingRequest.PurchaseAccountId) || shopSettingRequest.PurchaseAccountId == "0") |
|
|
|
{ |
|
|
|
var isRepeat = fsqlManager.MDSfsql.Select<Purchaseaccount>().Where(pa => pa.AppKey == shopSettingRequest.AppKey && |
|
|
|
pa.AppToken == shopSettingRequest.AppToken).Any(); |
|
|
|
if (isRepeat) |
|
|
|
throw new BusinessException($"采购账号重复"); |
|
|
|
shopSettingRequest.PurchaseAccountId = idGenerator.NewLong().ToString(); |
|
|
|
|
|
|
|
var mdspa = new Purchaseaccount() |
|
|
|