浏览代码

Merge branch 'dev4.5.2' of http://172.16.10.252:8080/qmx/jy into dev4.5.2

TANGSHIZHE 4 年之前
父节点
当前提交
275438b318
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/jfw/modules/common/src/qfw/util/jy/subvipPortrait.go

+ 1 - 1
src/jfw/modules/common/src/qfw/util/jy/subvipPortrait.go

@@ -80,7 +80,7 @@ func (this *BigVipBaseMsg) GetPortraitRecord(mysql *mysql.Mysql, year, month, pa
 			return
 		}
 	}
-	res := mysql.Query(fmt.Sprintf("select ent_id from %s where user_id =? and year(create_time)=? and month(create_time)=? order by create_time limit ?,?",
+	res := mysql.Query(fmt.Sprintf("select ent_id from %s where user_id =? and year(create_time)=? and month(create_time)=? order by create_time desc limit ?,?",
 		PortraitRecordTable), this.Uid, year, month, pageNum*pageSize, pageSize)
 	if res == nil {
 		return