Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
项目统一框架
amos-boot-biz
Commits
4a6dcf58
Commit
4a6dcf58
authored
Dec 14, 2023
by
LiuLin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tcm):申请单编码生成代码开发
parent
2b8dc876
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
ICreateCodeService.java
.../amos/boot/module/tcm/api/service/ICreateCodeService.java
+6
-3
CreateCodeServiceImpl.java
...ot/module/tcm/biz/service/impl/CreateCodeServiceImpl.java
+5
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/service/ICreateCodeService.java
View file @
4a6dcf58
...
@@ -5,10 +5,13 @@ import java.util.List;
...
@@ -5,10 +5,13 @@ import java.util.List;
public
interface
ICreateCodeService
{
public
interface
ICreateCodeService
{
/**
/**
* 生成申请单编号
* 生成申请单编号
(13位,GZ20231214000)
* @param type 枚举类型
* @param type 枚举类型
* @param
num
生成个数
* @param
batchSize
生成个数
* @return List
* @return List
*/
*/
List
<
String
>
createApplicationFormCode
(
String
type
,
int
num
);
List
<
String
>
createApplicationFormCode
(
String
type
,
int
batchSize
);
String
createDeviceRegistrationCode
();
}
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/CreateCodeServiceImpl.java
View file @
4a6dcf58
...
@@ -35,6 +35,11 @@ public class CreateCodeServiceImpl implements ICreateCodeService {
...
@@ -35,6 +35,11 @@ public class CreateCodeServiceImpl implements ICreateCodeService {
return
this
.
generateBatchSequence
(
type
,
batchSize
);
return
this
.
generateBatchSequence
(
type
,
batchSize
);
}
}
@Override
public
String
createDeviceRegistrationCode
()
{
return
null
;
}
public
boolean
isValueInEnum
(
String
value
)
{
public
boolean
isValueInEnum
(
String
value
)
{
return
EnumSet
.
allOf
(
ApplicationFormTypeEnum
.
class
)
return
EnumSet
.
allOf
(
ApplicationFormTypeEnum
.
class
)
.
stream
()
.
stream
()
...
...
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