using PadApplication.DB;
using PadApplication.Entites.DbModels;
using PadApplication.Entites.Dto;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
using SqlSugar;
namespace PadApplication.Services;
///
/// 工单状态管理类,负责工单状态相关的数据操作
/// 继承自Repository基类,包含基础的CRUD操作
///
public class MesCutterLedgerManager : Repository
{
private readonly MesQaItemsDetect02Manager
mesQaItemsDetect02Manager = new();
///
/// 刀具查询(支持编号或名称模糊查询)
///
/// 查询关键字
/// 刀具列表
public List QueryTools(string searchKey)
{
return Db.Queryable()
.WhereIF(!string.IsNullOrEmpty(searchKey),
t => t.CutterId.Contains(searchKey) || t.CutterName.Contains(searchKey))
.ToList();
}
}