Commit 559121e8 by wangli

mp2jpa

1 parent d94a3c48
......@@ -35,9 +35,6 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
private MapBlockInfoMPDao mapBlockInfoMPDao;
@Autowired
private MapLayerMPDao mapLayerMPDao;
@Autowired
private MapLayerCustomizeMPDao mapLayerCustomizeMPDao;
@Autowired
......@@ -147,7 +144,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
String layerName;
// 获取layerName
MapLayer layer1 = mapLayerMPDao.getByLayerId(layerId);
MapLayerEntity layer1 = mapLayerDao.getByLayerId(layerId);
if(layer1 == null) {
MapLayerCustomize layer2 = mapLayerCustomizeMPDao.getByLayerId(layerId);
if (layer2 == null) {
......@@ -273,8 +270,8 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
List<Map<String, String>> items = new ArrayList<>();
// 获取通用图层
List<MapLayer> layers = mapLayerMPDao.selectList(null);
for(MapLayer r: layers){
List<MapLayerEntity> layers = mapLayerDao.findAll();
for(MapLayerEntity r: layers){
Map<String, String> m = new HashMap<>();
m.put("layerId", r.getLayerId());
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!