Commit 1110e3a3 by chamberone

fix: 解决图层查询bug

1 parent 12e77275
......@@ -5,6 +5,6 @@ import org.springframework.data.jpa.repository.JpaRepository;
public interface MapLayerCustomizeDao extends JpaRepository<MapLayerCustomizeEntity, Long> {
public MapLayerCustomizeEntity findByBranchIdAndLayerId(String branchId, String layerId);
public MapLayerCustomizeEntity findByBranchIdAndLayerIdAndStatus(String branchId, String layerId, int status);
}
......@@ -208,7 +208,8 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
MapLayerEntity layer = mapLayerDao.getByLayerId(layerId);
String saasLayerId = null;
if (null == layer) {
MapLayerCustomizeEntity layerCustom = mapLayerCustomizeDao.findByBranchIdAndLayerId(branchId, layerId);
MapLayerCustomizeEntity layerCustom = mapLayerCustomizeDao.findByBranchIdAndLayerIdAndStatus(branchId,
layerId, 1);
saasLayerId = layerCustom.getSaasLayerId();
} else {
saasLayerId = layer.getSaasLayerId();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!