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
06c0e8e6
Commit
06c0e8e6
authored
Oct 09, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供应商停用接口
parent
cc3a5d29
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
ExtSupplierManageController.java
...dcs/plan/core/controller/ExtSupplierManageController.java
+6
-0
ExtSupplierManageService.java
...yonde/dcs/plan/core/service/ExtSupplierManageService.java
+11
-0
ExtSupplierManageServiceImpl.java
.../plan/core/service/impl/ExtSupplierManageServiceImpl.java
+12
-0
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/controller/ExtSupplierManageController.java
View file @
06c0e8e6
...
...
@@ -64,6 +64,12 @@ public class ExtSupplierManageController<V extends ExtSupplierManageVO, S extend
extSupplierManageService
.
generateSupplierNumber
(
extSupplierManageVO
);
return
ApiResult
.
ok
(
ApiResult
.
SUCCESS
,
"更新供方编号成功"
);
}
@ApiOperation
(
"供应商停用"
)
@PostMapping
(
value
=
"/contextDisable"
)
public
ApiResult
contextDisable
(
@RequestParam
(
"id"
)
Long
id
)
{
return
ApiResult
.
ok
(
extSupplierManageService
.
contextDisable
(
id
),
"操作完成"
);
}
}
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/ExtSupplierManageService.java
View file @
06c0e8e6
...
...
@@ -17,6 +17,7 @@ import java.util.List;
public
interface
ExtSupplierManageService
<
V
extends
ExtSupplierManageVO
>
extends
ExtSupplierManageServiceShadow
<
V
>
{
/**
* 流程启动
*
* @param id
* @return
*/
...
...
@@ -26,6 +27,7 @@ public interface ExtSupplierManageService<V extends ExtSupplierManageVO> extends
/**
* 导出
*
* @param searchQueryCondition
* @param warningDay
* @return
...
...
@@ -34,6 +36,7 @@ public interface ExtSupplierManageService<V extends ExtSupplierManageVO> extends
/**
* 修改供应商编码
*
* @param extSupplierManageVO
*/
void
generateSupplierNumber
(
ExtSupplierManageVO
extSupplierManageVO
);
...
...
@@ -42,4 +45,12 @@ public interface ExtSupplierManageService<V extends ExtSupplierManageVO> extends
* 定时任务修改状态
*/
void
changeSupplierStatus
();
/**
* 停用
*
* @param id
* @return
*/
ExtSupplierManageVO
contextDisable
(
Long
id
);
}
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtSupplierManageServiceImpl.java
View file @
06c0e8e6
...
...
@@ -153,6 +153,18 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
this
.
changeStatus
(
id
,
"Expired"
,
true
);
}
}
@Override
public
ExtSupplierManageVO
contextDisable
(
Long
id
)
{
ExtSupplierManageVO
extSupplierManageVO
=
this
.
get
(
id
);
if
(
extSupplierManageVO
==
null
)
{
throw
new
DxBusinessException
(
"500"
,
"获取不到对象"
);
}
if
(!
extSupplierManageVO
.
getState
().
equals
(
Constants
.
RELEASE
))
{
throw
new
DxBusinessException
(
"500"
,
"该对象不是编制状态"
);
}
return
this
.
changeStatus
(
extSupplierManageVO
.
getId
(),
Constants
.
CONTEXT_DISABLE
,
true
);
}
}
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