|
@@ -123,7 +123,10 @@ func UpdatetAuditFlowProcessNoApprove(o orm.Ormer, chanceId int64, level int, re |
|
@@ -123,7 +123,10 @@ func UpdatetAuditFlowProcessNoApprove(o orm.Ormer, chanceId int64, level int, re |
123
|
//获取机会审核流信息
|
123
|
//获取机会审核流信息
|
124
|
func GetAuditFlowProcessList(chanceId int64) (v []*AuditFlowProcess, err error) {
|
124
|
func GetAuditFlowProcessList(chanceId int64) (v []*AuditFlowProcess, err error) {
|
125
|
o := orm.NewOrm()
|
125
|
o := orm.NewOrm()
|
126
|
- sql := "select * from audit_flow_process where chance_id=? and enable_status=1 order by create_at,level,update_at asc "
|
126
|
+ sql := `select id ,chance_id,uid,level,is_active,IFNULL(approve_time,NOW()) approve_time,basic_score,extra_score,value_score,discovery_score,
|
|
|
127
|
+review_status,audit_flow_type,flow_type,action_type,update_at,create_at,enable_status,approve_data,user_name,role_name,role_id,approve_message,
|
|
|
128
|
+template_id from audit_flow_process
|
|
|
129
|
+where chance_id =? and enable_status=1 order by approve_time,level desc`
|
127
|
if _, err = o.Raw(sql, chanceId).QueryRows(&v); err == nil {
|
130
|
if _, err = o.Raw(sql, chanceId).QueryRows(&v); err == nil {
|
128
|
return v, nil
|
131
|
return v, nil
|
129
|
}
|
132
|
}
|