作者 yangfu

审批修改

@@ -123,7 +123,7 @@ func UpdatetAuditFlowProcessNoApprove(o orm.Ormer, chanceId int64, level int, re @@ -123,7 +123,7 @@ 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 id,review_status" 126 + sql := "select * from audit_flow_process where chance_id=? and enable_status=1 order by approve_time ASC,review_status desc"
127 if _, err = o.Raw(sql, chanceId).QueryRows(&v); err == nil { 127 if _, err = o.Raw(sql, chanceId).QueryRows(&v); err == nil {
128 return v, nil 128 return v, nil
129 } 129 }