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 1110e3a3
authored
Aug 02, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 解决图层查询bug
1 parent
12e77275
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/dao/MapLayerCustomizeDao.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/dao/MapLayerCustomizeDao.java
View file @
1110e3a
...
@@ -5,6 +5,6 @@ import org.springframework.data.jpa.repository.JpaRepository;
...
@@ -5,6 +5,6 @@ import org.springframework.data.jpa.repository.JpaRepository;
public
interface
MapLayerCustomizeDao
extends
JpaRepository
<
MapLayerCustomizeEntity
,
Long
>
{
public
interface
MapLayerCustomizeDao
extends
JpaRepository
<
MapLayerCustomizeEntity
,
Long
>
{
public
MapLayerCustomizeEntity
findByBranchIdAndLayerId
(
String
branchId
,
String
layerId
);
public
MapLayerCustomizeEntity
findByBranchIdAndLayerId
AndStatus
(
String
branchId
,
String
layerId
,
int
status
);
}
}
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
View file @
1110e3a
...
@@ -208,7 +208,8 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
...
@@ -208,7 +208,8 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
MapLayerEntity
layer
=
mapLayerDao
.
getByLayerId
(
layerId
);
MapLayerEntity
layer
=
mapLayerDao
.
getByLayerId
(
layerId
);
String
saasLayerId
=
null
;
String
saasLayerId
=
null
;
if
(
null
==
layer
)
{
if
(
null
==
layer
)
{
MapLayerCustomizeEntity
layerCustom
=
mapLayerCustomizeDao
.
findByBranchIdAndLayerId
(
branchId
,
layerId
);
MapLayerCustomizeEntity
layerCustom
=
mapLayerCustomizeDao
.
findByBranchIdAndLayerIdAndStatus
(
branchId
,
layerId
,
1
);
saasLayerId
=
layerCustom
.
getSaasLayerId
();
saasLayerId
=
layerCustom
.
getSaasLayerId
();
}
else
{
}
else
{
saasLayerId
=
layer
.
getSaasLayerId
();
saasLayerId
=
layer
.
getSaasLayerId
();
...
...
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