wxw
2025-05-12 c7c2f7aa20427204944ba80a2704232b2f281582
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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<SysStorageRoadway>,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);
            }
        }
 
    }
}