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 7d1e1903
authored
Oct 30, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 区块删除接口更新
1 parent
c5885899
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
View file @
7d1e190
...
...
@@ -266,7 +266,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
@Transactional
@Override
public
Result
<?>
businessServiceBlockRemove
(
String
blockId
)
throws
BusinessException
{
MapBlockInfoEntity
block
=
mapBlockInfoDao
.
findByAreaIds
(
blockId
);
MapBlockInfoEntity
block
=
mapBlockInfoDao
.
getById
(
Integer
.
parseInt
(
blockId
)
);
if
(
block
==
null
)
{
throw
new
BusinessException
(
"区块不存在"
);
}
...
...
@@ -274,12 +274,12 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
entityManager
.
merge
(
block
);
// 同步删除saas区块
String
result
=
saasRemoteService
.
deleteArea
(
ak
,
blockId
);
log
.
info
(
"params:{} result:{}"
,
blockId
,
result
);
Result
<
Boolean
>
saasResult
=
TypeUtils
.
convertResult
(
result
);
if
(!
ResultEnum
.
SUCCESS
.
getCode
().
equals
(
saasResult
.
getCode
()))
{
return
Result
.
failure
(
"删除失败,请联系管理员"
);
}
//
String result = saasRemoteService.deleteArea(ak, blockId);
//
log.info("params:{} result:{}", blockId, result);
//
Result<Boolean> saasResult = TypeUtils.convertResult(result);
//
if (!ResultEnum.SUCCESS.getCode().equals(saasResult.getCode())) {
//
return Result.failure("删除失败,请联系管理员");
//
}
return
Result
.
success
(
null
);
}
...
...
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