using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; using SqlSugar; using WMS.Entity.Context; using WMS.Entity.SysEntity; using WMS.IDAL.ISysInterface; namespace WMS.DAL.SysInfrastructure { public class StorageRoadwayRepository:BaseRepository,IStorageRoadwayRepository { public static readonly SqlSugarScope Db = DataContext.Db; public StorageRoadwayRepository() : base(Db) { } public int EditStorageRoadwayStatus(SysStorageRoadway model) { try { var num = Db.Updateable(model).UpdateColumns(m => new { m.Status, m.UpdateTime, m.UpdateUser }).ExecuteCommand(); return num; } catch (Exception e) { throw new Exception(e.Message); } } } }