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