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
d0e1ceaf
Commit
d0e1ceaf
authored
Sep 23, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新供应商编码
parent
19e0489c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
ExtSupplierManageController.java
...dcs/plan/core/controller/ExtSupplierManageController.java
+2
-1
ExtSupplierManageService.java
...yonde/dcs/plan/core/service/ExtSupplierManageService.java
+1
-1
ExtSupplierManageServiceImpl.java
.../plan/core/service/impl/ExtSupplierManageServiceImpl.java
+1
-2
ExtSupplierManageServiceFeign.java
...m/yonde/dcs/plan/feign/ExtSupplierManageServiceFeign.java
+1
-1
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/controller/ExtSupplierManageController.java
View file @
d0e1ceaf
...
@@ -61,7 +61,8 @@ public class ExtSupplierManageController<V extends ExtSupplierManageVO, S extend
...
@@ -61,7 +61,8 @@ public class ExtSupplierManageController<V extends ExtSupplierManageVO, S extend
@ApiOperation
(
"供应商走已过期状态更新供方编号"
)
@ApiOperation
(
"供应商走已过期状态更新供方编号"
)
@PostMapping
({
"generateSupplierNumber"
})
@PostMapping
({
"generateSupplierNumber"
})
public
ApiResult
generateSupplierNumber
(
@RequestBody
ExtSupplierManageVO
extSupplierManageVO
)
{
public
ApiResult
generateSupplierNumber
(
@RequestBody
ExtSupplierManageVO
extSupplierManageVO
)
{
return
ApiResult
.
ok
(
extSupplierManageService
.
generateSupplierNumber
(
extSupplierManageVO
),
"更新供方编号成功"
);
extSupplierManageService
.
generateSupplierNumber
(
extSupplierManageVO
);
return
ApiResult
.
ok
(
ApiResult
.
SUCCESS
,
"更新供方编号成功"
);
}
}
}
}
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/ExtSupplierManageService.java
View file @
d0e1ceaf
...
@@ -22,5 +22,5 @@ public interface ExtSupplierManageService<V extends ExtSupplierManageVO> extends
...
@@ -22,5 +22,5 @@ public interface ExtSupplierManageService<V extends ExtSupplierManageVO> extends
List
<
SupplierEarlyWarningVO
>
exportEarlyWarningData
(
SearchQueryCondition
searchQueryCondition
,
int
warningDay
);
List
<
SupplierEarlyWarningVO
>
exportEarlyWarningData
(
SearchQueryCondition
searchQueryCondition
,
int
warningDay
);
String
generateSupplierNumber
(
ExtSupplierManageVO
extSupplierManageVO
);
void
generateSupplierNumber
(
ExtSupplierManageVO
extSupplierManageVO
);
}
}
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtSupplierManageServiceImpl.java
View file @
d0e1ceaf
...
@@ -105,7 +105,7 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
...
@@ -105,7 +105,7 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
}
}
@Override
@Override
public
String
generateSupplierNumber
(
ExtSupplierManageVO
extSupplierManageVO
)
{
public
void
generateSupplierNumber
(
ExtSupplierManageVO
extSupplierManageVO
)
{
String
supplierNumber
=
extSupplierManageVO
.
getSupplierNumber
();
String
supplierNumber
=
extSupplierManageVO
.
getSupplierNumber
();
log
.
info
(
"generateEncode.beforeSupplierNumber={}"
,
supplierNumber
);
log
.
info
(
"generateEncode.beforeSupplierNumber={}"
,
supplierNumber
);
String
[]
split
=
supplierNumber
.
split
(
"-"
);
String
[]
split
=
supplierNumber
.
split
(
"-"
);
...
@@ -114,7 +114,6 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
...
@@ -114,7 +114,6 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
}
}
this
.
saveRecursion
((
V
)
extSupplierManageVO
);
this
.
saveRecursion
((
V
)
extSupplierManageVO
);
log
.
info
(
"generateEncode.supplierNumber={}"
,
supplierNumber
);
log
.
info
(
"generateEncode.supplierNumber={}"
,
supplierNumber
);
return
supplierNumber
;
}
}
}
}
...
...
dcs-plan-feign/src/main/java/com/yonde/dcs/plan/feign/ExtSupplierManageServiceFeign.java
View file @
d0e1ceaf
...
@@ -20,5 +20,5 @@ public interface ExtSupplierManageServiceFeign<V extends ExtSupplierManageVO> ex
...
@@ -20,5 +20,5 @@ public interface ExtSupplierManageServiceFeign<V extends ExtSupplierManageVO> ex
@ApiOperation
(
"供应商走已过期状态更新供方编号"
)
@ApiOperation
(
"供应商走已过期状态更新供方编号"
)
@PostMapping
(
value
=
"/generateSupplierNumber"
)
@PostMapping
(
value
=
"/generateSupplierNumber"
)
String
generateSupplierNumber
(
@RequestBody
ExtSupplierManageVO
extSupplierManageVO
);
void
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