|
|
@ -49,9 +49,7 @@ namespace DS.WMS.Core.TaskInteraction.Method
|
|
|
|
BusinessId = x.BusinessId,
|
|
|
|
BusinessId = x.BusinessId,
|
|
|
|
BusinessType = x.BusinessType,
|
|
|
|
BusinessType = x.BusinessType,
|
|
|
|
BillAuditStatus = x.BillAuditStatus,
|
|
|
|
BillAuditStatus = x.BillAuditStatus,
|
|
|
|
BillFeeStatusTime = x.BillFeeStatusTime,
|
|
|
|
BillFeeStatusTime = x.BillFeeStatusTime
|
|
|
|
ARFeeStatus = x.ARFeeStatus,
|
|
|
|
|
|
|
|
APFeeStatus = x.APFeeStatus
|
|
|
|
|
|
|
|
}).FirstAsync();
|
|
|
|
}).FirstAsync();
|
|
|
|
if (biz == null)
|
|
|
|
if (biz == null)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -63,34 +61,21 @@ namespace DS.WMS.Core.TaskInteraction.Method
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (auditType == TaskBaseTypeEnum.BILL_RECV_AUDIT)
|
|
|
|
if (auditType == TaskBaseTypeEnum.BILL_RECV_AUDIT)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
FeeStatus status = FeeStatus.RejectSubmission;
|
|
|
|
|
|
|
|
if (callback.FlowStatus == FlowStatusEnum.Approve)
|
|
|
|
if (callback.FlowStatus == FlowStatusEnum.Approve)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
biz.BillAuditStatus = BillAuditStatus.RecvPassed;
|
|
|
|
biz.BillAuditStatus = BillAuditStatus.RecvPassed;
|
|
|
|
biz.ARFeeStatus = BillFeeStatus.AuditPassed;
|
|
|
|
|
|
|
|
status = FeeStatus.AuditPassed;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (callback.FlowStatus == FlowStatusEnum.Reject)
|
|
|
|
else if (callback.FlowStatus == FlowStatusEnum.Reject)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
biz.BillAuditStatus = BillAuditStatus.RecvRejected;
|
|
|
|
biz.BillAuditStatus = BillAuditStatus.RecvRejected;
|
|
|
|
biz.ARFeeStatus = BillFeeStatus.RejectSubmission;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
biz.BillFeeStatusTime = dtNow;
|
|
|
|
biz.BillFeeStatusTime = dtNow;
|
|
|
|
await TenantDb.Updateable(biz).UpdateColumns(x => new
|
|
|
|
await TenantDb.Updateable(biz).UpdateColumns(x => new
|
|
|
|
{
|
|
|
|
{
|
|
|
|
x.BillAuditStatus,
|
|
|
|
x.BillAuditStatus,
|
|
|
|
x.BillFeeStatusTime,
|
|
|
|
x.BillFeeStatusTime
|
|
|
|
x.ARFeeStatus
|
|
|
|
|
|
|
|
}).ExecuteCommandAsync();
|
|
|
|
}).ExecuteCommandAsync();
|
|
|
|
|
|
|
|
|
|
|
|
await TenantDb.Updateable<FeeRecord>()
|
|
|
|
|
|
|
|
.SetColumns(x => x.FeeStatus == status)
|
|
|
|
|
|
|
|
.SetColumns(x => x.AuditBy == userId)
|
|
|
|
|
|
|
|
.SetColumns(x => x.AuditOperator == User.UserName)
|
|
|
|
|
|
|
|
.SetColumns(x => x.AuditDate == dtNow)
|
|
|
|
|
|
|
|
.Where(x => x.BusinessId == biz.BusinessId && x.BusinessType == biz.BusinessType && x.FeeType == FeeType.Receivable && x.FeeStatus == FeeStatus.AuditSubmitted)
|
|
|
|
|
|
|
|
.ExecuteCommandAsync();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (auditType == TaskBaseTypeEnum.BILL_PAY_AUDIT)
|
|
|
|
else if (auditType == TaskBaseTypeEnum.BILL_PAY_AUDIT)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -98,13 +83,14 @@ namespace DS.WMS.Core.TaskInteraction.Method
|
|
|
|
if (callback.FlowStatus == FlowStatusEnum.Approve)
|
|
|
|
if (callback.FlowStatus == FlowStatusEnum.Approve)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
biz.BillAuditStatus = BillAuditStatus.PayPassed;
|
|
|
|
biz.BillAuditStatus = BillAuditStatus.PayPassed;
|
|
|
|
biz.APFeeStatus = BillFeeStatus.AuditPassed;
|
|
|
|
biz.ARFeeStatus = biz.APFeeStatus = BillFeeStatus.AuditPassed;
|
|
|
|
status = FeeStatus.AuditPassed;
|
|
|
|
status = FeeStatus.AuditPassed;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (callback.FlowStatus == FlowStatusEnum.Reject)
|
|
|
|
else if (callback.FlowStatus == FlowStatusEnum.Reject)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
biz.BillAuditStatus = BillAuditStatus.PayRejected;
|
|
|
|
biz.BillAuditStatus = BillAuditStatus.PayRejected;
|
|
|
|
biz.APFeeStatus = BillFeeStatus.RejectSubmission;
|
|
|
|
biz.ARFeeStatus = biz.APFeeStatus = BillFeeStatus.RejectSubmission;
|
|
|
|
|
|
|
|
status = FeeStatus.RejectSubmission;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
biz.BillFeeStatusTime = dtNow;
|
|
|
|
biz.BillFeeStatusTime = dtNow;
|
|
|
@ -112,6 +98,7 @@ namespace DS.WMS.Core.TaskInteraction.Method
|
|
|
|
{
|
|
|
|
{
|
|
|
|
x.BillAuditStatus,
|
|
|
|
x.BillAuditStatus,
|
|
|
|
x.BillFeeStatusTime,
|
|
|
|
x.BillFeeStatusTime,
|
|
|
|
|
|
|
|
x.ARFeeStatus,
|
|
|
|
x.APFeeStatus
|
|
|
|
x.APFeeStatus
|
|
|
|
}).ExecuteCommandAsync();
|
|
|
|
}).ExecuteCommandAsync();
|
|
|
|
|
|
|
|
|
|
|
@ -120,7 +107,7 @@ namespace DS.WMS.Core.TaskInteraction.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 == biz.BusinessType && x.FeeType == FeeType.Payable && x.FeeStatus == FeeStatus.AuditSubmitted)
|
|
|
|
.Where(x => x.BusinessId == biz.BusinessId && x.BusinessType == biz.BusinessType && x.FeeStatus == FeeStatus.AuditSubmitted)
|
|
|
|
.ExecuteCommandAsync();
|
|
|
|
.ExecuteCommandAsync();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|