作者 yangfu

我提交的修改

@@ -107,9 +107,10 @@ func GetChanceMyChance(uid, cid int64, reviewStatus []int8, lastId int64, pageSi @@ -107,9 +107,10 @@ func GetChanceMyChance(uid, cid int64, reviewStatus []int8, lastId int64, pageSi
107 from ( 107 from (
108 select id,user_id,create_at,update_at,approve_time chance_approve_time,source_content,approve_data,review_status from chance 108 select id,user_id,create_at,update_at,approve_time chance_approve_time,source_content,approve_data,review_status from chance
109 where user_id=? and company_id=? and review_status in (?) and (?=0 or id<?) 109 where user_id=? and company_id=? and review_status in (?) and (?=0 or id<?)
110 -order by create_at desc 110 +) a left JOIN chance_data b on a.id =b.chance_id
  111 +order by update_at desc
111 limit ? 112 limit ?
112 -) a left JOIN chance_data b on a.id =b.chance_id` 113 +`
113 //update_at 114 //update_at
114 sqlCount := fmt.Sprintf(`select count(0) from ( 115 sqlCount := fmt.Sprintf(`select count(0) from (
115 select id,user_id,create_at,source_content from chance 116 select id,user_id,create_at,source_content from chance
@@ -662,6 +662,7 @@ func ChanceUpdate(header *protocol.RequestHeader, request *protocol.ChanceUpdate @@ -662,6 +662,7 @@ func ChanceUpdate(header *protocol.RequestHeader, request *protocol.ChanceUpdate
662 updateMap["AuditTemplateConfig"] = common.AssertJson(auditConfig) 662 updateMap["AuditTemplateConfig"] = common.AssertJson(auditConfig)
663 updateMap["Content"] = request.Content 663 updateMap["Content"] = request.Content
664 updateMap["SourceContent"] = common.AssertJson(request.FormList) 664 updateMap["SourceContent"] = common.AssertJson(request.FormList)
  665 + updateMap["UpdateAt"] = time.Now()
665 666
666 if err = utils.UpdateTableByMapWithOrmer(orm, &models.Chance{Id: chance.Id}, updateMap); err != nil { 667 if err = utils.UpdateTableByMapWithOrmer(orm, &models.Chance{Id: chance.Id}, updateMap); err != nil {
667 log.Error(err) 668 log.Error(err)