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 d1d684ee
authored
Jul 27, 2023
by
王力
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_layer0727' into 'develop'
修改 See merge request !290
2 parents
259641ea
c2c9a063
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 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 @
d1d684e
...
...
@@ -112,10 +112,22 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
@Override
public
Result
<?>
businessServiceBlockAdd
(
String
layerId
,
String
teamId
)
throws
BusinessException
{
MapLayerCustomize
layer
=
mapLayerCustomizeMPDao
.
getByLayerId
(
layerId
);
if
(
layer
==
null
)
{
throw
new
BusinessException
(
"图层标签不存在"
);
String
layerName
;
// 获取layerName
MapLayer
layer1
=
mapLayerMPDao
.
getByLayerId
(
layerId
);
if
(
layer1
==
null
)
{
MapLayerCustomize
layer2
=
mapLayerCustomizeMPDao
.
getByLayerId
(
layerId
);
if
(
layer2
==
null
)
{
throw
new
BusinessException
(
"图层标签不存在"
);
}
else
{
layerName
=
layer2
.
getLayer
();
}
}
else
{
layerName
=
layer1
.
getLayer
();
}
OrgTeam
team
=
orgTeamMPDao
.
getByTeamId
(
teamId
);
if
(
team
==
null
)
{
throw
new
BusinessException
(
"关联小队不存在"
);
...
...
@@ -128,7 +140,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
block
.
setGroupId
(
team
.
getGroupId
());
block
.
setTeamId
(
teamId
);
block
.
setLayer
(
layerId
);
block
.
setLayer
(
layer
.
getLayer
()
);
block
.
setLayer
(
layer
Name
);
block
.
setStatus
(
1
);
mapBlockInfoMPDao
.
insert
(
block
);
...
...
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