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 StorageAreaRepository: BaseRepository,IStorageAreaRepository { public static readonly SqlSugarScope Db = DataContext.Db; public StorageAreaRepository() : base(Db) { } /// /// 修改库区域状态信息 /// /// 实体类 /// 是否成功 public int EditStorageAreaStatus(SysStorageArea 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); } } } }