fix: 修复上架物品问题

This commit is contained in:
橙子
2024-10-28 20:56:33 +08:00
parent 3bc044e148
commit 363be13d12

View File

@@ -38,7 +38,9 @@ public class MarketManager : DomainService
/// <returns></returns>
public async Task ShelvedGoodsAsync(Guid userId, Guid collectiblesId, int number, decimal money)
{
var collectiblesList = await _collectiblesUserStoreRepository._DbQueryable.Where(x => x.IsAtMarketing == false)
var collectiblesList = await _collectiblesUserStoreRepository._DbQueryable
.Where(x=>x.UserId==userId)
.Where(x => x.IsAtMarketing == false)
.Where(x => x.CollectiblesId == collectiblesId).ToListAsync();
if (collectiblesList.Count < number)
{