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
19e0489c
Commit
19e0489c
authored
Sep 23, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存编码
parent
cc84e35e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
6 deletions
+21
-6
ExtSupplierManageController.java
...dcs/plan/core/controller/ExtSupplierManageController.java
+5
-0
ExtSupplierManageService.java
...yonde/dcs/plan/core/service/ExtSupplierManageService.java
+2
-0
ExtSupplierManageServiceImpl.java
.../plan/core/service/impl/ExtSupplierManageServiceImpl.java
+3
-6
ExtSupplierManage.java
.../java/com/yonde/dcs/plan/entity/po/ExtSupplierManage.java
+6
-0
ExtSupplierManageServiceFeign.java
...m/yonde/dcs/plan/feign/ExtSupplierManageServiceFeign.java
+5
-0
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/controller/ExtSupplierManageController.java
View file @
19e0489c
...
...
@@ -58,6 +58,11 @@ public class ExtSupplierManageController<V extends ExtSupplierManageVO, S extend
}
}
@ApiOperation
(
"供应商走已过期状态更新供方编号"
)
@PostMapping
({
"generateSupplierNumber"
})
public
ApiResult
generateSupplierNumber
(
@RequestBody
ExtSupplierManageVO
extSupplierManageVO
)
{
return
ApiResult
.
ok
(
extSupplierManageService
.
generateSupplierNumber
(
extSupplierManageVO
),
"更新供方编号成功"
);
}
}
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/ExtSupplierManageService.java
View file @
19e0489c
...
...
@@ -21,4 +21,6 @@ public interface ExtSupplierManageService<V extends ExtSupplierManageVO> extends
DxPageImpl
earlyWarning
(
SearchQueryCondition
searchQueryCondition
,
int
warningDay
);
List
<
SupplierEarlyWarningVO
>
exportEarlyWarningData
(
SearchQueryCondition
searchQueryCondition
,
int
warningDay
);
String
generateSupplierNumber
(
ExtSupplierManageVO
extSupplierManageVO
);
}
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtSupplierManageServiceImpl.java
View file @
19e0489c
...
...
@@ -104,18 +104,15 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
return
recursion
;
}
/**
* 走已过期更新供方编号
* @param extSupplierManageVO
* @return
*/
public
String
generateEncode
(
ExtSupplierManageVO
extSupplierManageVO
)
{
@Override
public
String
generateSupplierNumber
(
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
();
}
this
.
saveRecursion
((
V
)
extSupplierManageVO
);
log
.
info
(
"generateEncode.supplierNumber={}"
,
supplierNumber
);
return
supplierNumber
;
}
...
...
dcs-plan-entity/src/main/java/com/yonde/dcs/plan/entity/po/ExtSupplierManage.java
View file @
19e0489c
package
com
.
yonde
.
dcs
.
plan
.
entity
.
po
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.yonde.dex.basedata.entity.annotation.DexEmbedded
;
import
com.yonde.dex.dao.entity.base.DxIdEntityEmbeddable
;
import
com.yonde.dex.dao.entity.base.IdEntity
;
...
...
@@ -124,6 +125,11 @@ public class ExtSupplierManage extends IdOnlyEntity implements DxObjFileLinkHold
* 统一社会信用引用代码
*/
private
String
unifiedSocietyCode
;
/**
* 供方系统默认编号
*/
private
String
supplierNumber
;
}
dcs-plan-feign/src/main/java/com/yonde/dcs/plan/feign/ExtSupplierManageServiceFeign.java
View file @
19e0489c
...
...
@@ -2,6 +2,7 @@ package com.yonde.dcs.plan.feign;
import
com.yonde.dcs.plan.common.vo.ExtSupplierManageVO
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
com.yonde.dcs.plan.feign.shadow.ExtSupplierManageServiceFeignShadow
;
...
...
@@ -16,4 +17,8 @@ import com.yonde.dcs.plan.feign.shadow.ExtSupplierManageServiceFeignShadow;
@FeignClient
(
value
=
"${dcs.feign.INET-PLAN}"
,
path
=
"/ExtSupplierManage"
)
public
interface
ExtSupplierManageServiceFeign
<
V
extends
ExtSupplierManageVO
>
extends
ExtSupplierManageServiceFeignShadow
<
V
>
{
@ApiOperation
(
"供应商走已过期状态更新供方编号"
)
@PostMapping
(
value
=
"/generateSupplierNumber"
)
String
generateSupplierNumber
(
@RequestBody
ExtSupplierManageVO
extSupplierManageVO
);
}
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