using System.DirectoryServices.Protocols; using WmsMobileServe.Annotation; using WmsMobileServe.DataBase.Base.Po; namespace WmsMobileServe.DataBase.Base.Dao; /// /// 入库任务表操作类 /// [Component] public class TOnGoodsShelfDao(DataBaseClient client) { /// /// 插入数据 /// /// /// public int Insert(params TOnGoodsShelf[] onGoodsShelfs) { try { return client.Instance().Insertable(onGoodsShelfs).ExecuteCommand(); } catch (Exception ex) { _ = ex; return 0; } } /// /// 根据载具号查询任务 /// /// /// public List? SelectWithVehicleNo(string vehicleNo) { try { return client.Instance().Queryable() .Where(w => w.Ctl == vehicleNo).ToList(); } catch (Exception ex) { _ = ex; return default; } } }