作者 yangfu

我提交的修改

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