正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -136,9 +136,10 @@ where chance_id =? and enable_status=1 order by approve_time,level desc` | @@ -136,9 +136,10 @@ where chance_id =? and enable_status=1 order by approve_time,level desc` | ||
136 | return nil, err | 136 | return nil, err |
137 | } | 137 | } |
138 | 138 | ||
139 | +//获取机会审核人节点信息(eg:可判断用户是否是机会的审核人) | ||
139 | func GetAuditFlowProcessListByAuditUser(chanceId int64, auditUserId int64) (v []*AuditFlowProcess, err error) { | 140 | func GetAuditFlowProcessListByAuditUser(chanceId int64, auditUserId int64) (v []*AuditFlowProcess, err error) { |
140 | o := orm.NewOrm() | 141 | o := orm.NewOrm() |
141 | - sql := "select id,review_status from audit_flow_process where chance_id=? and enable_status=1 and uid=?" | 142 | + sql := "select id,review_status from audit_flow_process where chance_id=? and uid=?" //and enable_status=1 |
142 | if _, err = o.Raw(sql, chanceId, auditUserId).QueryRows(&v); err == nil { | 143 | if _, err = o.Raw(sql, chanceId, auditUserId).QueryRows(&v); err == nil { |
143 | return v, nil | 144 | return v, nil |
144 | } | 145 | } |
-
请 注册 或 登录 后发表评论