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
Hide 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 {
...
@@ -64,12 +64,12 @@ public class BusinessBlockController {
* @param id 服务区块ID
* @param id 服务区块ID
* @return
* @return
*/
*/
@PostMapping
(
"/business/service/block/
delet
e"
)
@PostMapping
(
"/business/service/block/
remov
e"
)
public
Result
<?>
businessServiceBlock
Delet
e
(
@RequestParam
String
id
)
{
public
Result
<?>
businessServiceBlock
Remov
e
(
@RequestParam
String
id
)
{
// 删除服务范围
// 删除服务范围
Result
<?>
res
=
null
;
Result
<?>
res
=
null
;
try
{
try
{
res
=
businessBlockService
.
businessServiceBlock
Delet
e
(
id
);
res
=
businessBlockService
.
businessServiceBlock
Remov
e
(
id
);
}
catch
(
BusinessException
e
){
}
catch
(
BusinessException
e
){
return
Result
.
failed
(
e
.
getMessage
());
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 {
...
@@ -8,7 +8,7 @@ public interface BusinessBlockService {
Result
<?>
businessServiceBlockAdd
(
String
layerId
,
String
teamId
);
Result
<?>
businessServiceBlockAdd
(
String
layerId
,
String
teamId
);
Result
<?>
businessServiceBlock
Delet
e
(
String
blockId
);
Result
<?>
businessServiceBlock
Remov
e
(
String
blockId
);
Result
<?>
saasBaseDataLayerUrl
(
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 {
...
@@ -114,7 +114,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
}
}
@Override
@Override
public
Result
<?>
businessServiceBlock
Delet
e
(
String
blockId
)
throws
BusinessException
{
public
Result
<?>
businessServiceBlock
Remov
e
(
String
blockId
)
throws
BusinessException
{
MapBlockInfo
block
=
mapBlockInfoMPDao
.
getByBlockId
(
blockId
);
MapBlockInfo
block
=
mapBlockInfoMPDao
.
getByBlockId
(
blockId
);
if
(
block
==
null
)
{
if
(
block
==
null
)
{
throw
new
BusinessException
(
"区块不存在"
);
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