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
a46a2470
Commit
a46a2470
authored
Dec 20, 2022
by
3533457856@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加焊工接口修改
parent
e1107400
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
OrgServiceImpl.java
...amos/boot/module/ugp/biz/service/impl/OrgServiceImpl.java
+7
-6
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/OrgServiceImpl.java
View file @
a46a2470
...
...
@@ -227,14 +227,15 @@ public class OrgServiceImpl {
}
public
String
getCode
(){
int
c
;
int
c
=
0001
;
LambdaQueryWrapper
<
OrgUsr
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
orderByDesc
(
OrgUsr:
:
getCode
).
eq
(
OrgUsr:
:
getOrgExpandAttr1
,
OrgEnum
.
焊工
.
getKey
());
String
code
=
orgUsrServiceImpl
.
list
(
wrapper
).
iterator
().
next
().
getCode
();
if
(
ValidationUtil
.
isEmpty
(
code
)){
c
=
0001
;
}
else
{
c
=
Integer
.
parseInt
(
code
.
substring
(
code
.
indexOf
(
"-"
)+
1
,
code
.
length
()))+
1
;
List
<
OrgUsr
>
orgUsr
=
orgUsrServiceImpl
.
list
(
wrapper
);
if
(!
ValidationUtil
.
isEmpty
(
orgUsr
))
{
String
code
=
orgUsr
.
iterator
().
next
().
getCode
();
if
(!
ValidationUtil
.
isEmpty
(
code
))
{
c
=
Integer
.
parseInt
(
code
.
substring
(
code
.
indexOf
(
"-"
)
+
1
,
code
.
length
()))
+
1
;
}
}
String
welderCode
=
OrgEnum
.
焊工
.
getKey
()
+
"-"
+
c
;
...
...
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