Admin
2026-01-16 d5fe80c5cb7dc0b209d8fea9faa84c7ca5b20324
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
using AutoMapper;
using WIDESEA_Common.StockEnum;
using WIDESEA_Core;
using WIDESEA_Core.BaseRepository;
using WIDESEA_Core.BaseServices;
using WIDESEA_IStockService;
using WIDESEA_Model.Models;
 
namespace WIDESEA_StockService
{
    public partial class StockInfoService : ServiceBase<Dt_StockInfo, IRepository<Dt_StockInfo>>, IStockInfoService
    {
        private readonly IMapper _mapper;
 
        public IRepository<Dt_StockInfo> Repository => BaseDal;
 
        public StockInfoService(IRepository<Dt_StockInfo> BaseDal, IMapper mapper) : base(BaseDal)
        {
            _mapper = mapper;
        }
 
        /*public WebResponseContent AddStockInfo(string PalletCode, int PalletType, int WarehouseId)
        {
            WebResponseContent webResponse=new WebResponseContent();
            try
            {
                Dt_StockInfo dt_StockInfo = new Dt_StockInfo();
                dt_StockInfo.PalletCode = PalletCode;
                dt_StockInfo.PalletType = PalletType;
                dt_StockInfo.WarehouseId = WarehouseId;
                dt_StockInfo.StockStatus = (int)StockStatusEmun.入库中;
                dt_StockInfo.Creater = "MWS";
                dt_StockInfo.CreateDate = DateTime.Now;
                BaseDal.AddData(dt_StockInfo);
                return webResponse.OK();
            }
            catch (Exception ex)
            {
                return webResponse.Error($"库存添加错误:原因:{ex.Message}");
            }
        }*/
    }
}