zhanghonglin
6 天以前 10775e2b00cee12fb4b405e18a507c629990051a
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
using AutoMapper;
using WIDESEAWCS_Core.Helper;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseRepository;
using WIDESEAWCS_Core.BaseServices;
using WIDESEAWCS_IWMSPart;
using WIDESEAWCS_Model.Models;
 
namespace WIDESEAWCS_WMSPart
{
    /// <summary>
    /// 库存头表业务实现层
    /// </summary>
    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 override WebResponseContent UpdateData(SaveModel saveModel)
        {
            int id = saveModel.MainData["id"].ObjToInt();
            int StockStatus = saveModel.MainData["stockStatus"].ObjToInt();
            int Remark = saveModel.MainData["remark"].ObjToInt();
            Dt_StockInfo locationInfo = BaseDal.QueryFirst(x => x.Id == id);
            locationInfo.StockStatus = StockStatus;
            locationInfo.Remark = Remark;
            return UpdateData(locationInfo);
            //return base.UpdateData(saveModel);
        }
    }
}