|
|
@ -908,13 +908,15 @@ namespace DS.WMS.Core.Fee.Method
|
|
|
|
|
|
|
|
|
|
|
|
if (taskType == TaskBaseTypeEnum.BILL_RECV_AUDIT)
|
|
|
|
if (taskType == TaskBaseTypeEnum.BILL_RECV_AUDIT)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (entity.BillAuditStatus != BillAuditStatus.Pending && entity.BillAuditStatus != BillAuditStatus.RecvRejected)
|
|
|
|
if (entity.BillAuditStatus == BillAuditStatus.PaySubmitted || entity.BillAuditStatus == BillAuditStatus.PayRejected)
|
|
|
|
|
|
|
|
taskType = TaskBaseTypeEnum.BILL_PAY_AUDIT;
|
|
|
|
|
|
|
|
else if (entity.BillAuditStatus != BillAuditStatus.Pending && entity.BillAuditStatus != BillAuditStatus.RecvRejected)
|
|
|
|
return DataResult.Failed(string.Format(
|
|
|
|
return DataResult.Failed(string.Format(
|
|
|
|
MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.BillFeeStatusError)), entity.BillAuditStatus.GetDescription()));
|
|
|
|
MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.BillFeeStatusError)), entity.BillAuditStatus.GetDescription()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (taskType == TaskBaseTypeEnum.BILL_PAY_AUDIT)
|
|
|
|
else if (taskType == TaskBaseTypeEnum.BILL_PAY_AUDIT)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (entity.BillAuditStatus != BillAuditStatus.PaySubmitted || entity.BillAuditStatus != BillAuditStatus.PayRejected)
|
|
|
|
if (entity.BillAuditStatus != BillAuditStatus.PaySubmitted && entity.BillAuditStatus != BillAuditStatus.PayRejected)
|
|
|
|
return DataResult.Failed(string.Format(
|
|
|
|
return DataResult.Failed(string.Format(
|
|
|
|
MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.BillFeeStatusError)), entity.BillAuditStatus.GetDescription()));
|
|
|
|
MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.BillFeeStatusError)), entity.BillAuditStatus.GetDescription()));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -985,11 +987,6 @@ namespace DS.WMS.Core.Fee.Method
|
|
|
|
x.ARFeeStatus,
|
|
|
|
x.ARFeeStatus,
|
|
|
|
x.APFeeStatus
|
|
|
|
x.APFeeStatus
|
|
|
|
}).ExecuteCommandAsync();
|
|
|
|
}).ExecuteCommandAsync();
|
|
|
|
|
|
|
|
|
|
|
|
//修改关联费用状态为提交审核
|
|
|
|
|
|
|
|
await TenantDb.Updateable<FeeRecord>().Where(x => x.BusinessId == bid && x.BusinessType == type &&
|
|
|
|
|
|
|
|
(x.FeeStatus == FeeStatus.Entering || x.FeeStatus == FeeStatus.Withdraw || x.FeeStatus == FeeStatus.RejectSubmission))
|
|
|
|
|
|
|
|
.SetColumns(x => x.FeeStatus == FeeStatus.AuditSubmitted).ExecuteCommandAsync();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (taskType == TaskBaseTypeEnum.BILL_PAY_AUDIT)
|
|
|
|
else if (taskType == TaskBaseTypeEnum.BILL_PAY_AUDIT)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1000,6 +997,11 @@ namespace DS.WMS.Core.Fee.Method
|
|
|
|
}).ExecuteCommandAsync();
|
|
|
|
}).ExecuteCommandAsync();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//修改关联费用状态为提交审核
|
|
|
|
|
|
|
|
await TenantDb.Updateable<FeeRecord>().Where(x => x.BusinessId == bid && x.BusinessType == type &&
|
|
|
|
|
|
|
|
(x.FeeStatus == FeeStatus.Entering || x.FeeStatus == FeeStatus.Withdraw || x.FeeStatus == FeeStatus.RejectSubmission))
|
|
|
|
|
|
|
|
.SetColumns(x => x.FeeStatus == FeeStatus.AuditSubmitted).ExecuteCommandAsync();
|
|
|
|
|
|
|
|
|
|
|
|
if (useTransaction)
|
|
|
|
if (useTransaction)
|
|
|
|
await TenantDb.Ado.CommitTranAsync();
|
|
|
|
await TenantDb.Ado.CommitTranAsync();
|
|
|
|
return DataResult.Success;
|
|
|
|
return DataResult.Success;
|
|
|
@ -1039,7 +1041,9 @@ namespace DS.WMS.Core.Fee.Method
|
|
|
|
|
|
|
|
|
|
|
|
if (taskType == TaskBaseTypeEnum.BILL_RECV_AUDIT)
|
|
|
|
if (taskType == TaskBaseTypeEnum.BILL_RECV_AUDIT)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (entity.BillAuditStatus != BillAuditStatus.RecvSubmitted)
|
|
|
|
if (entity.BillAuditStatus == BillAuditStatus.PaySubmitted)
|
|
|
|
|
|
|
|
taskType = TaskBaseTypeEnum.BILL_PAY_AUDIT;
|
|
|
|
|
|
|
|
else if (entity.BillAuditStatus != BillAuditStatus.RecvSubmitted)
|
|
|
|
return DataResult.Failed(string.Format(
|
|
|
|
return DataResult.Failed(string.Format(
|
|
|
|
MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.BusinessStatusError)), entity.BillAuditStatus.GetDescription()));
|
|
|
|
MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.BusinessStatusError)), entity.BillAuditStatus.GetDescription()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|