Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cf1b4d37
authored
Jul 26, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
url重命名
1 parent
f6c75fdf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/BusinessBlockController.java
project-order/src/main/java/com/dituhui/pea/order/service/BusinessBlockService.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/controller/BusinessBlockController.java
View file @
cf1b4d3
...
...
@@ -64,12 +64,12 @@ public class BusinessBlockController {
* @param id 服务区块ID
* @return
*/
@PostMapping
(
"/business/service/block/
delet
e"
)
public
Result
<?>
businessServiceBlock
Delet
e
(
@RequestParam
String
id
)
{
@PostMapping
(
"/business/service/block/
remov
e"
)
public
Result
<?>
businessServiceBlock
Remov
e
(
@RequestParam
String
id
)
{
// 删除服务范围
Result
<?>
res
=
null
;
try
{
res
=
businessBlockService
.
businessServiceBlock
Delet
e
(
id
);
res
=
businessBlockService
.
businessServiceBlock
Remov
e
(
id
);
}
catch
(
BusinessException
e
){
return
Result
.
failed
(
e
.
getMessage
());
}
...
...
project-order/src/main/java/com/dituhui/pea/order/service/BusinessBlockService.java
View file @
cf1b4d3
...
...
@@ -8,7 +8,7 @@ public interface BusinessBlockService {
Result
<?>
businessServiceBlockAdd
(
String
layerId
,
String
teamId
);
Result
<?>
businessServiceBlock
Delet
e
(
String
blockId
);
Result
<?>
businessServiceBlock
Remov
e
(
String
blockId
);
Result
<?>
saasBaseDataLayerUrl
(
String
blockId
);
}
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
View file @
cf1b4d3
...
...
@@ -114,7 +114,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
}
@Override
public
Result
<?>
businessServiceBlock
Delet
e
(
String
blockId
)
throws
BusinessException
{
public
Result
<?>
businessServiceBlock
Remov
e
(
String
blockId
)
throws
BusinessException
{
MapBlockInfo
block
=
mapBlockInfoMPDao
.
getByBlockId
(
blockId
);
if
(
block
==
null
)
{
throw
new
BusinessException
(
"区块不存在"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment