拿人员添加为例: state中有pre_audit(待审核状态),effective(有效),disabled(无效)三种状态
id name password state
在addPerson时候 增加一条审核记录,人员状态为pre_audit(待审核状态)
记录表设计为:state 为pre_audit(待审核)、effective(审核通过)、disabled(审核不通过),type表示申请的类型(如新增人员等)
id title type state relatedEntityId(关联实体ID)
ProcessAudit()审核处理方法,审核成功将relatedEntity对应的人员状态置为effective(有效的),审核不通过则置为disabled(无效的)
大概就是这么个逻辑