|
@@ -116,10 +116,11 @@ func (this *PortraitService) List(companyName string, pageSize, pageNum int64, i
|
|
|
if isExport {
|
|
|
start, limit = 0, entity.DataExportNumLimit
|
|
|
fields = `"_id","title"`
|
|
|
- } else {
|
|
|
- limit = 500
|
|
|
}
|
|
|
list := &[]*entity.GetNewMsgList{}
|
|
|
+ if start > entity.DataExportBatchSearchLimit {
|
|
|
+ return nil, 0, errors.New(entity.NO_DATA_ERROR_MSG)
|
|
|
+ }
|
|
|
//列表查询
|
|
|
listQuery := fmt.Sprintf(entity.NewMustSearch, strings.Join(mustQueryArr, ","), fmt.Sprintf(entity.ListSearchLimit, fields, "publishtime", start, limit))
|
|
|
logx.Infof("PortraitWinnerProject GetList Sql %s\n", listQuery)
|