소스 검색

1.0.5 update

xiaofei 11 달 전
부모
커밋
6c25610473
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      paper-library-common/src/main/java/com/qmth/paper/library/common/service/impl/BasicBatchNumberServiceImpl.java

+ 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);