using WIDESEA_DTO; namespace WIDESEA_StorageBasicRepository { public class LocationStatusChangeRecordRepository : RepositoryBase, ILocationStatusChangeRecordRepository { public LocationStatusChangeRecordRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage) { } /// /// 添加货位变动记录 /// /// 数据模型 /// 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; } } }