using WIDESEA_Core.BaseRepository;
|
using WIDESEA_Core.BaseServices;
|
using WIDESEA_IRecordService;
|
using WIDESEA_Model.Models;
|
|
namespace WIDESEA_RecordService
|
{
|
public partial class LocationStatusChangeRecordService : ServiceBase<Dt_LocationStatusChangeRecord, IRepository<Dt_LocationStatusChangeRecord>>, ILocationStatusChangeRecordService
|
{
|
public LocationStatusChangeRecordService(IRepository<Dt_LocationStatusChangeRecord> BaseDal) : base(BaseDal)
|
{
|
}
|
|
public IRepository<Dt_LocationStatusChangeRecord> Repository => BaseDal;
|
|
public void AddLocationStatusChangeRecord(Dt_LocationInfo locationInfo, int lastStatus, int changeType, string? orderNo, int? taskNum)
|
{
|
Dt_LocationStatusChangeRecord locationStatusChangeRecord = new Dt_LocationStatusChangeRecord()
|
{
|
AfterStatus = locationInfo.LocationStatus,
|
BeforeStatus = lastStatus,
|
ChangeType = changeType,
|
LocationCode = locationInfo.LocationCode,
|
LocationId = locationInfo.Id,
|
TaskNum = taskNum,
|
Creater = "WMS",
|
OrderNo = orderNo ?? ""
|
};
|
|
BaseDal.AddData(locationStatusChangeRecord);
|
}
|
}
|
}
|