|
|
@ -744,6 +744,7 @@ namespace DS.WMS.Core.Fee.Method
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Id = x.Id,
|
|
|
|
Id = x.Id,
|
|
|
|
BusinessId = x.BusinessId,
|
|
|
|
BusinessId = x.BusinessId,
|
|
|
|
|
|
|
|
BusinessType = x.BusinessType,
|
|
|
|
BillAuditStatus = x.BillAuditStatus
|
|
|
|
BillAuditStatus = x.BillAuditStatus
|
|
|
|
}).FirstAsync();
|
|
|
|
}).FirstAsync();
|
|
|
|
if (biz == null)
|
|
|
|
if (biz == null)
|
|
|
@ -751,8 +752,14 @@ namespace DS.WMS.Core.Fee.Method
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
fee = await TenantDb.Queryable<FeeRecord>().Where(x => x.Id == callback.BusinessId && x.BusinessType == callback.BusinessType).Select(
|
|
|
|
fee = await TenantDb.Queryable<FeeRecord>().Where(x => x.Id == callback.BusinessId).Select(
|
|
|
|
x => new FeeRecord { Id = x.Id, FeeStatus = x.FeeStatus }).FirstAsync();
|
|
|
|
x => new FeeRecord
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Id = x.Id,
|
|
|
|
|
|
|
|
FeeStatus = x.FeeStatus,
|
|
|
|
|
|
|
|
BusinessId = x.BusinessId,
|
|
|
|
|
|
|
|
BusinessType = x.BusinessType
|
|
|
|
|
|
|
|
}).FirstAsync();
|
|
|
|
if (fee == null)
|
|
|
|
if (fee == null)
|
|
|
|
return DataResult.Failed(MultiLanguageConst.Operation_Failed);
|
|
|
|
return DataResult.Failed(MultiLanguageConst.Operation_Failed);
|
|
|
|
|
|
|
|
|
|
|
@ -881,7 +888,7 @@ namespace DS.WMS.Core.Fee.Method
|
|
|
|
.SetColumns(x => x.AuditBy == UserId)
|
|
|
|
.SetColumns(x => x.AuditBy == UserId)
|
|
|
|
.SetColumns(x => x.AuditOperator == User.UserName)
|
|
|
|
.SetColumns(x => x.AuditOperator == User.UserName)
|
|
|
|
.SetColumns(x => x.AuditDate == dtNow)
|
|
|
|
.SetColumns(x => x.AuditDate == dtNow)
|
|
|
|
.Where(x => x.BusinessId == biz.BusinessId && x.BusinessType == callback.BusinessType &&
|
|
|
|
.Where(x => x.BusinessId == biz.BusinessId && x.BusinessType == biz.BusinessType &&
|
|
|
|
(x.FeeStatus == FeeStatus.Entering || x.FeeStatus == FeeStatus.RejectSubmission)).ExecuteCommandAsync();
|
|
|
|
(x.FeeStatus == FeeStatus.Entering || x.FeeStatus == FeeStatus.RejectSubmission)).ExecuteCommandAsync();
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -910,9 +917,10 @@ namespace DS.WMS.Core.Fee.Method
|
|
|
|
}
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
{
|
|
|
|
await feeService.WriteBackStatusAsync(callback.BusinessId, callback.BusinessType.Value);
|
|
|
|
await feeService.WriteBackStatusAsync(
|
|
|
|
|
|
|
|
auditType == TaskBaseTypeEnum.FEE_BUSINESS_AUDIT ? biz.BusinessId : fee.BusinessId,
|
|
|
|
|
|
|
|
auditType == TaskBaseTypeEnum.FEE_BUSINESS_AUDIT ? biz.BusinessType : fee.BusinessType);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|