|
@ -87,7 +87,7 @@ namespace BBWYB.Server.Business |
|
|
var shopIdStr = request.ShopId.ToString(); |
|
|
var shopIdStr = request.ShopId.ToString(); |
|
|
var mdsShop = fsqlManager.MDSfsql.Select<Shops>().Where(s => s.ShopId == shopIdStr).ToOne(); |
|
|
var mdsShop = fsqlManager.MDSfsql.Select<Shops>().Where(s => s.ShopId == shopIdStr).ToOne(); |
|
|
var plist = fsqlManager.MDSfsql.Select<Purchaseaccount>() |
|
|
var plist = fsqlManager.MDSfsql.Select<Purchaseaccount>() |
|
|
.Where(pa => pa.ShopId == mdsShop.Id) |
|
|
.Where(pa => pa.ShopId == mdsShop.Id && pa.Deleted == 0) |
|
|
.WhereIf(!string.IsNullOrEmpty(purchasePlatofrmId), pa => pa.PurchasePlatformId == purchasePlatofrmId) |
|
|
.WhereIf(!string.IsNullOrEmpty(purchasePlatofrmId), pa => pa.PurchasePlatformId == purchasePlatofrmId) |
|
|
.WhereIf(!string.IsNullOrEmpty(request.AccountName), pa => pa.AccountName == request.AccountName) |
|
|
.WhereIf(!string.IsNullOrEmpty(request.AccountName), pa => pa.AccountName == request.AccountName) |
|
|
.ToList(); |
|
|
.ToList(); |
|
@ -96,6 +96,12 @@ namespace BBWYB.Server.Business |
|
|
return plist; |
|
|
return plist; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void DeletePurchaseAccount(long purchaseAccountId) |
|
|
|
|
|
{ |
|
|
|
|
|
var pk = purchaseAccountId.ToString(); |
|
|
|
|
|
fsqlManager.MDSfsql.Update<Purchaseaccount>(pk).Set(pa => pa.Deleted, 1).ExecuteAffrows(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public IList<OP_QueryExpressCompanyResponse> GetExpressCompanyList(PlatformRequest request) |
|
|
public IList<OP_QueryExpressCompanyResponse> GetExpressCompanyList(PlatformRequest request) |
|
|
{ |
|
|
{ |
|
|
return opPlatformClientFactory.GetClient((SDKAdapter.AdapterEnums.PlatformType)request.Platform) |
|
|
return opPlatformClientFactory.GetClient((SDKAdapter.AdapterEnums.PlatformType)request.Platform) |
|
|