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);
|
}
|
}
|
}
|