Commit 559121e8 by wangli

mp2jpa

1 parent d94a3c48
...@@ -35,9 +35,6 @@ public class BusinessBlockServiceImpl implements BusinessBlockService { ...@@ -35,9 +35,6 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
private MapBlockInfoMPDao mapBlockInfoMPDao; private MapBlockInfoMPDao mapBlockInfoMPDao;
@Autowired @Autowired
private MapLayerMPDao mapLayerMPDao;
@Autowired
private MapLayerCustomizeMPDao mapLayerCustomizeMPDao; private MapLayerCustomizeMPDao mapLayerCustomizeMPDao;
@Autowired @Autowired
...@@ -147,7 +144,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService { ...@@ -147,7 +144,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
String layerName; String layerName;
// 获取layerName // 获取layerName
MapLayer layer1 = mapLayerMPDao.getByLayerId(layerId); MapLayerEntity layer1 = mapLayerDao.getByLayerId(layerId);
if(layer1 == null) { if(layer1 == null) {
MapLayerCustomize layer2 = mapLayerCustomizeMPDao.getByLayerId(layerId); MapLayerCustomize layer2 = mapLayerCustomizeMPDao.getByLayerId(layerId);
if (layer2 == null) { if (layer2 == null) {
...@@ -273,8 +270,8 @@ public class BusinessBlockServiceImpl implements BusinessBlockService { ...@@ -273,8 +270,8 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
List<Map<String, String>> items = new ArrayList<>(); List<Map<String, String>> items = new ArrayList<>();
// 获取通用图层 // 获取通用图层
List<MapLayer> layers = mapLayerMPDao.selectList(null); List<MapLayerEntity> layers = mapLayerDao.findAll();
for(MapLayer r: layers){ for(MapLayerEntity r: layers){
Map<String, String> m = new HashMap<>(); Map<String, String> m = new HashMap<>();
m.put("layerId", r.getLayerId()); m.put("layerId", r.getLayerId());
m.put("layerName", r.getLayer()); m.put("layerName", r.getLayer());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!