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
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Text;
using Model.ModelVm.SysVm;
using SqlSugar;
using WMS.DAL;
using WMS.Entity.Context;
using WMS.Entity.SysEntity;
using WMS.IBLL.ISysServer;
 
namespace WMS.BLL.SysServer
{
    public class RoadwayUseLogServer:DbHelper<SysRoadwayUseLog>, IRoadwayUseLogServer
    {
        private static readonly SqlSugarScope Db = DataContext.Db;
        public RoadwayUseLogServer() : base(Db)
        {
        }
 
        //添加巷道使用记录
        public bool AddRoadwayUseLog(AddRoadwayUseLogVm model, int userId)
        {
            try
            {
                var n = Add(new SysRoadwayUseLog()
                {
                    WareHouseNo = model.WareHouseNo,
                    RoadwayNo = model.RoadwayNo,
                    LocateNo = model.LocateNo,
                    Row = model.Row,
                    Column = model.Column,
                    Layer = model.Layer,
                    Depth = model.Depth,
 
                    CreateUser = userId
                });
                return n > 0;
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
        }
    }
}