Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-plan
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
INET-TWO
server
dcs-plan
Commits
27ee775c
Commit
27ee775c
authored
Sep 23, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加供方编号
parent
169306fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
ExtSupplierManageVO.java
...ava/com/yonde/dcs/plan/common/vo/ExtSupplierManageVO.java
+4
-0
ExtSupplierManageServiceImpl.java
.../plan/core/service/impl/ExtSupplierManageServiceImpl.java
+17
-0
No files found.
dcs-plan-common/src/main/java/com/yonde/dcs/plan/common/vo/ExtSupplierManageVO.java
View file @
27ee775c
...
...
@@ -217,6 +217,10 @@ public class ExtSupplierManageVO extends IdOnlyVO implements DxIterationVOHolder
*/
private
String
unifiedSocietyCode
;
/**
* supplierNumber
*/
private
String
supplierNumber
;
}
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtSupplierManageServiceImpl.java
View file @
27ee775c
...
...
@@ -21,6 +21,7 @@ import org.springframework.stereotype.Service;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.Year
;
import
java.util.List
;
/**
...
...
@@ -102,6 +103,22 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
DxPageImpl
recursion
=
extSupplierManageLinkService
.
findRecursion
(
searchQueryCondition
);
return
recursion
;
}
/**
* 走已过期更新供方编号
* @param extSupplierManageVO
* @return
*/
public
String
generateEncode
(
ExtSupplierManageVO
extSupplierManageVO
)
{
String
supplierNumber
=
extSupplierManageVO
.
getSupplierNumber
();
log
.
info
(
"generateEncode.beforeSupplierNumber={}"
,
supplierNumber
);
String
[]
split
=
supplierNumber
.
split
(
"-"
);
if
(
split
.
length
>
2
)
{
supplierNumber
=
split
[
0
]
+
"-"
+
split
[
1
]
+
"-"
+
Year
.
now
().
getValue
();
}
log
.
info
(
"generateEncode.supplierNumber={}"
,
supplierNumber
);
return
supplierNumber
;
}
}
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