作者 yangfu

审批修改

... ... @@ -123,7 +123,7 @@ func UpdatetAuditFlowProcessNoApprove(o orm.Ormer, chanceId int64, level int, re
//获取机会审核流信息
func GetAuditFlowProcessList(chanceId int64) (v []*AuditFlowProcess, err error) {
o := orm.NewOrm()
sql := "select * from audit_flow_process where chance_id=? and enable_status=1 order by approve_time ASC,review_status desc"
sql := "select * from audit_flow_process where chance_id=? and enable_status=1 order by update_at ,level "
if _, err = o.Raw(sql, chanceId).QueryRows(&v); err == nil {
return v, nil
}
... ...
... ... @@ -325,6 +325,7 @@ func ChanceApprove(header *protocol.RequestHeader, request *protocol.ChanceAppro
mapProcess["ApproveTime"] = time.Now()
mapProcess["IsActive"] = int8(0)
mapChance["ApproveTime"] = time.Now()
mapChance["UpdateAt"] = time.Now()
if request.ReviewStatus == protocol.ReviewStatusPass {
mapProcess["BasicScore"] = request.ApproveData.Score.BasicScore
mapProcess["ExtraScore"] = request.ApproveData.Score.ExtraScore
... ...