Explorar o código

物料上传数组越界问题处理

chenw %!s(int64=6) %!d(string=hai) anos
pai
achega
97cbe9049d

+ 3 - 1
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/ProductServiceImpl.java

@@ -784,7 +784,9 @@ public class ProductServiceImpl extends CommonBaseServiceImpl<ProductMapper, Pro
             while (it.hasNext()){
                 sb.append(it.next().getPr_id() + ",");
             }
-            updateB2BStatus(sb.substring(0, sb.length() - 1), "上传中");
+            if (sb.length() > 0) {
+                updateB2BStatus(sb.substring(0, sb.length() - 1), "上传中");
+            }
         }else {
             throw new BizException(BizExceptionCode.BIZ_ENABLE_B2B);
         }