Browse Source

fix(批量导入):限制导入产品及上架数量为2000条。

yuj 7 years ago
parent
commit
0e043621c3

+ 2 - 2
src/main/java/com/uas/platform/b2c/prod/commodity/service/impl/ReleaseProductByBatchServiceImpl.java

@@ -249,8 +249,8 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
 				throw new IllegalOperatorException("表格模板不正确!请重新下载最新模板");
 		}
 		int rowNum = SheetUtil.getSheetLastNum(sheet, isPcb ? UploadConstant.MAX_TOTAL_COLUMN_PCB : UploadConstant.MAX_TOTAL_COLUMN);
-		if (rowNum > 10002) {
-			throw new IllegalOperatorException("您上传的信息超过10002条,请拆分成10002以下再上传");
+		if (rowNum > 2002) {
+			throw new IllegalOperatorException("您上传的信息超过2000条,请拆分成2000以下再上传");
 		}
 		if (rowNum < 2) {
 			throw new IllegalOperatorException("请填写上传信息");