fix
This commit is contained in:
parent
277ae3ea4c
commit
5d5669b503
|
@ -26,7 +26,8 @@ func (l *ListNoticeLogic) ListNotice(req *clientCore.ListNoticeReq) (*clientCore
|
|||
|
||||
var resp clientCore.ListNoticeResp
|
||||
|
||||
l.svcCtx.DbEngin.Raw("select * from t_notice order by created_time desc").Scan(¬ices)
|
||||
//TODO 防止数据量过大,限制查询记录100条
|
||||
l.svcCtx.DbEngin.Raw("select * from t_notice order by created_time desc limit 100").Scan(¬ices)
|
||||
for _, notice := range notices {
|
||||
resp.Data = append(resp.Data, notice)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue