Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
c653c100
Commit
c653c100
authored
Nov 01, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 跟进编码生成bug修复
parent
255c39ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CodeUtils.java
...n/iocoder/yudao/framework/common/util/code/CodeUtils.java
+2
-2
No files found.
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/code/CodeUtils.java
View file @
c653c100
...
@@ -229,7 +229,7 @@ public class CodeUtils {
...
@@ -229,7 +229,7 @@ public class CodeUtils {
*/
*/
public
static
String
getOddFollowupNumbers
(
String
maxOddNumbers
)
{
public
static
String
getOddFollowupNumbers
(
String
maxOddNumbers
)
{
// 格式: GJ+年份YYYY+六位数
// 格式: GJ+年份YYYY+六位数
int
numberLength
=
1
4
;
int
numberLength
=
1
2
;
//获取当前日期并将其进行格式化
//获取当前日期并将其进行格式化
String
formatYear
=
getDateTime
(
"yyyy"
);
String
formatYear
=
getDateTime
(
"yyyy"
);
...
@@ -237,7 +237,7 @@ public class CodeUtils {
...
@@ -237,7 +237,7 @@ public class CodeUtils {
int
newEndIntNum
;
int
newEndIntNum
;
//判断数据中的最大单号是否存在,是否包含当前日期
//判断数据中的最大单号是否存在,是否包含当前日期
if
(
StringUtils
.
isNotEmpty
(
maxOddNumbers
)
&&
maxOddNumbers
.
length
()
==
numberLength
&&
if
(
StringUtils
.
isNotEmpty
(
maxOddNumbers
)
&&
maxOddNumbers
.
length
()
==
numberLength
&&
maxOddNumbers
.
substring
(
2
,
8
).
equals
(
formatYear
))
{
maxOddNumbers
.
substring
(
2
,
6
).
equals
(
formatYear
))
{
//截取后四位数
//截取后四位数
String
endNum
=
maxOddNumbers
.
substring
(
maxOddNumbers
.
length
()
-
6
);
String
endNum
=
maxOddNumbers
.
substring
(
maxOddNumbers
.
length
()
-
6
);
//把截取的最后六位数解析为int
//把截取的最后六位数解析为int
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment