增加根据id获取设备接口
This commit is contained in:
@@ -30,7 +30,6 @@ namespace Tnb.EquipMgr
|
||||
public EquipmentService(ISqlSugarRepository<EqpEquipment> repository)
|
||||
{
|
||||
_repository = repository;
|
||||
OverideFuncs.GetListAsync = GetList;
|
||||
}
|
||||
/// <summary>
|
||||
/// 在线开发-获取设备列表
|
||||
@@ -63,5 +62,12 @@ namespace Tnb.EquipMgr
|
||||
.ToPagedListAsync(input.currentPage, input.pageSize);
|
||||
return pagedList;
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<EqpEquipment> GetEntityById(Dictionary<string,string> dic)
|
||||
{
|
||||
string id = dic["id"];
|
||||
return await _repository.GetSingleAsync(x => x.id == id);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user