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 { /// /// 库存头表业务实现层 /// public partial class StockInfoService : ServiceBase>, IStockInfoService { private readonly IMapper _mapper; public IRepository Repository => BaseDal; public StockInfoService(IRepository 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); } } }