diff --git a/appointment-import/src/main/java/smash/appointment/parse/PrcControlParser.java b/appointment-import/src/main/java/smash/appointment/parse/PrcControlParser.java index a74ed7b3c6c968130b9aab2545dabf63972a90b2..e0c6e4f5407e09e29609ac6ae55c76a9a14ecdb4 100644 --- a/appointment-import/src/main/java/smash/appointment/parse/PrcControlParser.java +++ b/appointment-import/src/main/java/smash/appointment/parse/PrcControlParser.java @@ -15,6 +15,11 @@ public class PrcControlParser extends SubjectParser { if (number.trim().isEmpty()) { return ""; } else { + if (number.length() == 1) { + number = "00" + number; + } else if (number.length() == 2) { + number = "0" + number; + } return "P-" + number; } } diff --git a/appointment-import/src/main/java/smash/appointment/parse/PrcFlyingParser.java b/appointment-import/src/main/java/smash/appointment/parse/PrcFlyingParser.java index 53821a72b5d28c4e6ce0498af4cdb387b132c372..58f34460a2850c79d23adb9d1d8ea9b9afee1e6d 100644 --- a/appointment-import/src/main/java/smash/appointment/parse/PrcFlyingParser.java +++ b/appointment-import/src/main/java/smash/appointment/parse/PrcFlyingParser.java @@ -15,6 +15,11 @@ public class PrcFlyingParser extends SubjectParser { if (number.trim().isEmpty()) { return ""; } else { + if (number.length() == 1) { + number = "00" + number; + } else if (number.length() == 2) { + number = "0" + number; + } return "P-" + number; } } diff --git a/appointment-import/src/main/java/smash/appointment/parse/PrcSubjectsParser.java b/appointment-import/src/main/java/smash/appointment/parse/PrcSubjectsParser.java index 3dd5fcad4ddc12c3486b44a09ee500e11b2a6a5a..b9dcbab82e85f58a721ec43a3355cffa288612bc 100644 --- a/appointment-import/src/main/java/smash/appointment/parse/PrcSubjectsParser.java +++ b/appointment-import/src/main/java/smash/appointment/parse/PrcSubjectsParser.java @@ -15,6 +15,11 @@ public class PrcSubjectsParser extends SubjectParser { if (number.trim().isEmpty()) { return ""; } else { + if (number.length() == 1) { + number = "00" + number; + } else if (number.length() == 2) { + number = "0" + number; + } return "P-" + number; } }