|
|
@ -588,10 +588,10 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
var info = await tenantDb.Queryable<SeaExport>().Where(x => x.Id == long.Parse(req.Id)).FirstAsync();
|
|
|
|
var info = await tenantDb.Queryable<SeaExport>().Where(x => x.Id == long.Parse(req.Id)).FirstAsync();
|
|
|
|
if (info.IsNull())
|
|
|
|
if (info.IsNull())
|
|
|
|
return await Task.FromResult(DataResult.Failed("不存在的海运出口信息!", MultiLanguageConst.SeaExportExist));
|
|
|
|
return await Task.FromResult(DataResult.Failed("不存在的海运出口信息!", MultiLanguageConst.SeaExportExist));
|
|
|
|
if (info.IsRefund == false)
|
|
|
|
//if (info.IsRefund == false)
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
return await Task.FromResult(DataResult.Failed("订单状态必须为退舱标识!"));
|
|
|
|
// return await Task.FromResult(DataResult.Failed("订单状态必须为退舱标识!"));
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
var task = await tenantDb.Queryable<BusinessTask>().Where(x => x.BusinessId == long.Parse(req.Id) && x.TaskType == TaskBaseTypeEnum.RETURN_CABIN_POOL).FirstAsync();
|
|
|
|
var task = await tenantDb.Queryable<BusinessTask>().Where(x => x.BusinessId == long.Parse(req.Id) && x.TaskType == TaskBaseTypeEnum.RETURN_CABIN_POOL).FirstAsync();
|
|
|
|
|
|
|
|
|
|
|
|
if (task.IsNotNull() && task.TaskStatus == TaskStatusEnum.Complete)
|
|
|
|
if (task.IsNotNull() && task.TaskStatus == TaskStatusEnum.Complete)
|
|
|
@ -639,10 +639,10 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
var info = await tenantDb.Queryable<SeaExport>().Where(x => x.Id == long.Parse(req.Id)).FirstAsync();
|
|
|
|
var info = await tenantDb.Queryable<SeaExport>().Where(x => x.Id == long.Parse(req.Id)).FirstAsync();
|
|
|
|
if (info.IsNull())
|
|
|
|
if (info.IsNull())
|
|
|
|
return await Task.FromResult(DataResult.Failed("不存在的海运出口信息!", MultiLanguageConst.SeaExportExist));
|
|
|
|
return await Task.FromResult(DataResult.Failed("不存在的海运出口信息!", MultiLanguageConst.SeaExportExist));
|
|
|
|
if (info.IsRefund == false)
|
|
|
|
//if (info.IsRefund == false)
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
return await Task.FromResult(DataResult.Failed("订单状态必须为退舱标识!"));
|
|
|
|
// return await Task.FromResult(DataResult.Failed("订单状态必须为退舱标识!"));
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
var task = await tenantDb.Queryable<BusinessTask>().Where(x => x.BusinessId == long.Parse(req.Id) && x.TaskType == TaskBaseTypeEnum.RETURN_CABIN).FirstAsync();
|
|
|
|
var task = await tenantDb.Queryable<BusinessTask>().Where(x => x.BusinessId == long.Parse(req.Id) && x.TaskType == TaskBaseTypeEnum.RETURN_CABIN).FirstAsync();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|