|
@@ -852,7 +852,7 @@ func GetDataExportSearchResult(elasticAddress string, scd *SieveCondition, dataT
|
|
|
res = doSearchByBatch(qstr, dataType, checkCount, fmt.Sprintf("%s-%s", "GetDataExportSearchResult", scd.Id))
|
|
|
}
|
|
|
//校验数量
|
|
|
- if checkCount != len(res) && checkCount != -1 {
|
|
|
+ if checkCount > len(res) && checkCount != -1 {
|
|
|
return nil, fmt.Errorf("GetDataExportSearchResult-%s-数据总量校验异常,期望:%d,实际:%d", scd.Id, checkCount, len(res))
|
|
|
}
|
|
|
if selectType != scd.SelectType {
|