|
|
@@ -70,7 +70,7 @@ public class ProductUsersServiceImpl implements ProductUsersService {
|
|
|
/**
|
|
|
* 一次上传允许的最大数量 (前三行为标题 从0开始)
|
|
|
*/
|
|
|
- private final static Integer MAX_ROWNUM = 20002;
|
|
|
+ private final static Integer MAX_ROWNUM = 5002;
|
|
|
|
|
|
@Override
|
|
|
public SPage<ProductUsers> findProductInfoByPageInfo(PageInfo pageInfo) {
|
|
|
@@ -182,7 +182,7 @@ public class ProductUsersServiceImpl implements ProductUsersService {
|
|
|
Sheet sheet = workbook.getSheetAt(0);
|
|
|
int rowNum = sheet.getLastRowNum();
|
|
|
if (rowNum > MAX_ROWNUM) {
|
|
|
- throw new IllegalOperatorException("单次上传不超过20000条");
|
|
|
+ throw new IllegalOperatorException("单次上传不超过5000条");
|
|
|
}
|
|
|
Row headerRow = sheet.getRow(0);
|
|
|
int total = 0;
|