审批待办未消失的,再次批的时候直接消掉待办
This commit is contained in:
parent
3b9bad3ee6
commit
9979beb271
@ -95,13 +95,27 @@
|
|||||||
var dbApprove = this.GetEntity<T_PF_APPROVE>(entity.ID.ToString(), false, "Nav_ApproveDetails");
|
var dbApprove = this.GetEntity<T_PF_APPROVE>(entity.ID.ToString(), false, "Nav_ApproveDetails");
|
||||||
if (dbApprove == null)
|
if (dbApprove == null)
|
||||||
this.ThrowError("020027");
|
this.ThrowError("020027");
|
||||||
if (dbApprove.APPROVE_STATUS != (int)ApproveStatus.Doing)
|
|
||||||
this.ThrowError("020028");
|
|
||||||
var node = dbApprove.Nav_ApproveDetails.FirstOrDefault(i => i.ID == entity.CurrentNode.ID);
|
var node = dbApprove.Nav_ApproveDetails.FirstOrDefault(i => i.ID == entity.CurrentNode.ID);
|
||||||
if (!node.IS_CURRENT)
|
if (!node.IS_CURRENT)
|
||||||
this.ThrowError("020030");
|
this.ThrowError("020030");
|
||||||
|
T_FM_NOTIFICATION_TASK task = null;
|
||||||
|
if (dbApprove.APPROVE_STATUS != (int)ApproveStatus.Doing)
|
||||||
|
{
|
||||||
|
//this.ThrowError("020028");
|
||||||
|
//原来是报错,现在直接把待办消掉
|
||||||
|
task = this.GetEntity<T_FM_NOTIFICATION_TASK>(i => i.SOURCE_DATA_ID == entity.ID && i.USER_ID == node.APPROVE_USER_ID
|
||||||
|
&& i.NOTICE_STATUS == FMNoticeStatusEnum.未处理.GetInt(), false);
|
||||||
|
if (task != null)
|
||||||
|
{
|
||||||
|
task.NOTICE_STATUS = FMNoticeStatusEnum.正常已办.GetInt();
|
||||||
|
task.TASK_DT = DateTime.Now;
|
||||||
|
this.UpdateEntityNoCommit(task);
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
//查询消息表
|
//查询消息表
|
||||||
var task = this.GetEntity<T_FM_NOTIFICATION_TASK>(i => i.SOURCE_DATA_ID == entity.ID && i.USER_ID == node.APPROVE_USER_ID
|
task = this.GetEntity<T_FM_NOTIFICATION_TASK>(i => i.SOURCE_DATA_ID == entity.ID && i.USER_ID == node.APPROVE_USER_ID
|
||||||
&& i.NOTICE_STATUS == FMNoticeStatusEnum.未处理.GetInt(), false);
|
&& i.NOTICE_STATUS == FMNoticeStatusEnum.未处理.GetInt(), false);
|
||||||
if (task != null)
|
if (task != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user