xiaofei před 11 měsíci
rodič
revize
6c25610473

+ 2 - 2
paper-library-common/src/main/java/com/qmth/paper/library/common/service/impl/BasicBatchNumberServiceImpl.java

@@ -66,8 +66,8 @@ public class BasicBatchNumberServiceImpl extends MppServiceImpl<BasicBatchNumber
 
     }
 
-    private String[] splitBatchNo(String batchNo) {
-        String regex = "[A-Z]";
+    private static String[] splitBatchNo(String batchNo) {
+        String regex = "[A-Z]{1,2}";
         String[] strings = new String[2];
         Pattern pattern = Pattern.compile(regex);
         Matcher matcher = pattern.matcher(batchNo);