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 b231066d
authored
Oct 31, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复重复创建图层bug
1 parent
0492d475
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessLayerServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessLayerServiceImpl.java
View file @
b231066
...
...
@@ -163,13 +163,15 @@ public class BusinessLayerServiceImpl implements BusinessLayerService {
@Transactional
@Override
public
Result
<?>
businessCustomLayerAdd
(
String
branchId
,
String
layerName
,
String
layerDesc
,
List
<
String
>
skillCodes
)
{
if
(
orgBranchDao
.
getByBranchId
(
branchId
)
==
null
)
{
throw
new
BusinessException
(
"分部参数错误,请联系管理员/研发"
);
}
String
layerId
=
UUID
.
randomUUID
().
toString
().
replace
(
"-"
,
""
);
// 同步创建saas图层,返回layerId
String
result
=
saasRemoteService
.
addLayer
(
ak
,
layerName
,
1
,
1
);
String
saasLayerName
=
branchId
+
"_"
+
layerId
;
String
result
=
saasRemoteService
.
addLayer
(
ak
,
saasLayerName
,
1
,
1
);
log
.
info
(
"addLayer params:{} result:{}"
,
layerName
,
result
);
Result
<
LinkedTreeMap
<
String
,
Object
>>
saasResult
=
TypeUtils
.
convertResult
(
result
);
if
(!
ResultEnum
.
SUCCESS
.
getCode
().
equals
(
saasResult
.
getCode
()))
{
...
...
@@ -177,8 +179,6 @@ public class BusinessLayerServiceImpl implements BusinessLayerService {
}
String
saasLayerId
=
(
String
)
saasResult
.
getResult
().
get
(
"id"
);
// 存入pea
String
layerId
=
UUID
.
randomUUID
().
toString
().
replace
(
"-"
,
""
);
// 入库保存
MapLayerCustomizeEntity
m
=
new
MapLayerCustomizeEntity
();
m
.
setLayerId
(
layerId
);
...
...
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