1
This commit is contained in:
parent
642a067e42
commit
640f20729e
@ -105,15 +105,12 @@ namespace asg_form.Controllers {
|
|||||||
au.reason = auditinfo.reason;
|
au.reason = auditinfo.reason;
|
||||||
au.start_person_id = auditinfo.startPersonId;
|
au.start_person_id = auditinfo.startPersonId;
|
||||||
au.start_person = auditinfo.startPerson;
|
au.start_person = auditinfo.startPerson;
|
||||||
if(auditinfo.relativeId != null)
|
au.node_index = auditinfo.nodeIndex;
|
||||||
|
au.flow_config = auditinfo.flowConfig;
|
||||||
|
if(!query.Any(n => n.relative_id == auditinfo.relativeId))
|
||||||
{
|
{
|
||||||
if(!query.Any(n => n.relative_id == auditinfo.relativeId))
|
au.relative_id = auditinfo.relativeId;
|
||||||
{
|
}
|
||||||
au.relative_id = auditinfo.relativeId;
|
|
||||||
}
|
|
||||||
au.node_index = auditinfo.nodeIndex;
|
|
||||||
au.flow_config = auditinfo.flowConfig;
|
|
||||||
}
|
|
||||||
sub.SaveChanges();
|
sub.SaveChanges();
|
||||||
return Ok(new { code = 200, message = "成功修改" });
|
return Ok(new { code = 200, message = "成功修改" });
|
||||||
}
|
}
|
||||||
@ -138,6 +135,9 @@ namespace asg_form.Controllers {
|
|||||||
reason = auditinfo.reason,
|
reason = auditinfo.reason,
|
||||||
start_person_id = auditinfo.startPersonId,
|
start_person_id = auditinfo.startPersonId,
|
||||||
start_person = auditinfo.startPerson,
|
start_person = auditinfo.startPerson,
|
||||||
|
relative_id = auditinfo.relativeId,
|
||||||
|
node_index = auditinfo.nodeIndex,
|
||||||
|
flow_config = auditinfo.flowConfig,
|
||||||
};
|
};
|
||||||
|
|
||||||
sub.T_Audit.Add(newAudit);
|
sub.T_Audit.Add(newAudit);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user