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