using WIDESEA_DTO;
|
|
namespace WIDESEA_StorageBasicRepository
|
{
|
public class LocationStatusChangeRecordRepository : RepositoryBase<DtLocationStatusChangeRecord>, ILocationStatusChangeRecordRepository
|
{
|
public LocationStatusChangeRecordRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage)
|
{
|
}
|
|
/// <summary>
|
/// 添加货位变动记录
|
/// </summary>
|
/// <param name="changeRecordDto">数据模型</param>
|
/// <returns></returns>
|
public bool AddStatusChangeRecord(LocationChangeRecordDto changeRecordDto)
|
{
|
DtLocationStatusChangeRecord dtLocationStatusChangeRecord = new DtLocationStatusChangeRecord()
|
{
|
ChangeType = changeRecordDto.ChangeType,
|
LocationCode = changeRecordDto.LocationCode,
|
LocationId = changeRecordDto.LocationId,
|
Creater = "System",
|
TaskNum = changeRecordDto.TaskNum,
|
AfterStatus = changeRecordDto.AfterStatus,
|
BeforeStatus = changeRecordDto.BeforeStatus,
|
};
|
return AddData(dtLocationStatusChangeRecord) > 0;
|
}
|
}
|
}
|