Parcourir la source

账户查询修改和订单商品工艺设备过滤20241209

kitchenmanage
gwbvipvip il y a 2 semaines
Parent
révision
8d6b13085f
5 fichiers modifiés avec 12 ajouts et 10 suppressions
  1. +3
    -2
      BPA.SAAS.Manage.Application/DataBase/GoodsAttributeServices.cs
  2. +1
    -1
      BPA.SAAS.Manage.Application/DataBase/Interface/IGoodsAttributeService.cs
  3. +6
    -4
      BPA.SAAS.Manage.Application/DataBase/Services/GoodsAttributeService.cs
  4. +1
    -0
      BPA.SAAS.Manage.Application/Org/Services/CompanyService.cs
  5. +1
    -3
      BPA.SAAS.Manage.Web.Entry/BPA.SAAS.Manage.Web.Entry.csproj

+ 3
- 2
BPA.SAAS.Manage.Application/DataBase/GoodsAttributeServices.cs Voir le fichier

@@ -113,11 +113,12 @@ namespace BPA.SAAS.Manage.Application.DataBase
/// </summary>
/// <param name="goodId"></param>
/// <param name="attrId"></param>
/// <param name="autoKey"></param>
/// <returns></returns>
[HttpGet("/api/goodsattribute/getHaveTechnology")]
public async Task<bool> GetHaveTechnology(string goodId, string attrId)
public async Task<bool> GetHaveTechnology(string goodId, string attrId, int autoKey)
{
return await _goodsAttributeServices.GetHaveTechnology(goodId, attrId);
return await _goodsAttributeServices.GetHaveTechnology(goodId, attrId, autoKey);
}
}
}

+ 1
- 1
BPA.SAAS.Manage.Application/DataBase/Interface/IGoodsAttributeService.cs Voir le fichier

@@ -65,6 +65,6 @@ namespace BPA.SAAS.Manage.Application.DataBase.Interface
/// <param name="id"></param>
/// <returns></returns>
Task<List<GoodsAttributeView>> GetGoodsAttributeViewList(string id);
Task<bool> GetHaveTechnology(string goodId, string attrId);
Task<bool> GetHaveTechnology(string goodId, string attrId, int autoKey);
}
}

+ 6
- 4
BPA.SAAS.Manage.Application/DataBase/Services/GoodsAttributeService.cs Voir le fichier

@@ -4,8 +4,7 @@ using BPA.SAAS.Manage.Comm.Const;
using BPA.SAAS.Manage.Core.DataBase;
using BPA.SAAS.Manage.Application.DataBase.Dtos.GoodsAttribute;
using StackExchange.Profiling.Internal;


using BPA.SAAS.Manage.Core.Device;

namespace BPA.Franchisee.Application.FranchiseeCenter.GoodsServices
{
@@ -389,9 +388,12 @@ namespace BPA.Franchisee.Application.FranchiseeCenter.GoodsServices
return res;
}

public async Task<bool> GetHaveTechnology (string goodId, string attrId)
public async Task<bool> GetHaveTechnology(string goodId, string attrId, int autoKey)
{
var data = await _db.Queryable<BPA_GoodsTechnologyAction>().Where(t => t.GoodsId == goodId).ToListAsync();
var device = await _db.Queryable<BPA_DeviceInfo>().FirstAsync(t => t.AutoKey == autoKey);
if (device == null)
return false;
var data = await _db.Queryable<BPA_GoodsTechnologyAction>().Where(t => t.GoodsId == goodId && t.DeviceId == device.Id).ToListAsync();
return data.Any(t => AreGuidsEqual(t.GoodsAttributeId, attrId));
}



+ 1
- 0
BPA.SAAS.Manage.Application/Org/Services/CompanyService.cs Voir le fichier

@@ -35,6 +35,7 @@ namespace BPA.SAAS.Manage.Application.Org.Services
var userList = await _db.Queryable<BPA_Users>().ToListAsync();
var userRoleList = await _db.Queryable<BPA_UserRole>().ToListAsync();
var data = await _db.Queryable<BPA_Company>()
.Where((a) => a.IsDeleted == 0)
.WhereIF(!input.Name.IsNullOrEmpty(), (a) => a.Name.Contains(input.Name))
.WhereIF(!input.AdminName.IsNullOrEmpty(), (a) => a.AdminName.Contains(input.AdminName))
.WhereIF(!input.Email.IsNullOrEmpty(), (a) => a.Email.Contains(input.Email))


+ 1
- 3
BPA.SAAS.Manage.Web.Entry/BPA.SAAS.Manage.Web.Entry.csproj Voir le fichier

@@ -22,9 +22,7 @@
<ProjectReference Include="..\BPA.SAAS.Manage.Web.Core\BPA.SAAS.Manage.Web.Core.csproj" />
</ItemGroup>
<ProjectExtensions>
<VisualStudio>
<UserProperties properties_4launchsettings_1json__JsonSchema="" />
</VisualStudio>
<VisualStudio><UserProperties appsettings_1json__JsonSchema="" properties_4launchsettings_1json__JsonSchema="" /></VisualStudio>
</ProjectExtensions>

</Project>

Chargement…
Annuler
Enregistrer