Commit f3f8f699 by wangli

mp2jpa

1 parent 559121e8
...@@ -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 MapLayerCustomizeMPDao mapLayerCustomizeMPDao;
@Autowired
private ISaaSRemoteService saasRemoteService; private ISaaSRemoteService saasRemoteService;
@Autowired @Autowired
...@@ -146,7 +143,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService { ...@@ -146,7 +143,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
// 获取layerName // 获取layerName
MapLayerEntity layer1 = mapLayerDao.getByLayerId(layerId); MapLayerEntity layer1 = mapLayerDao.getByLayerId(layerId);
if(layer1 == null) { if(layer1 == null) {
MapLayerCustomize layer2 = mapLayerCustomizeMPDao.getByLayerId(layerId); MapLayerCustomizeEntity layer2 = mapLayerCustomizeDao.getByLayerId(layerId);
if (layer2 == null) { if (layer2 == null) {
throw new BusinessException("图层标签不存在"); throw new BusinessException("图层标签不存在");
} else { } else {
...@@ -292,11 +289,8 @@ public class BusinessBlockServiceImpl implements BusinessBlockService { ...@@ -292,11 +289,8 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
return Result.success(items); return Result.success(items);
} }
LambdaQueryWrapper<MapLayerCustomize> lqwLayer = new LambdaQueryWrapper<>(); List<MapLayerCustomizeEntity> layerCustomizes = mapLayerCustomizeDao.findByBranchIdInAndStatus(new ArrayList<>(branchIds), 1);
lqwLayer.eq(MapLayerCustomize::getStatus, 1); for(MapLayerCustomizeEntity r: layerCustomizes) {
lqwLayer.in(MapLayerCustomize::getBranchId, new ArrayList<>(branchIds));
List<MapLayerCustomize> layerCustomizes = mapLayerCustomizeMPDao.selectList(lqwLayer);
for(MapLayerCustomize r: layerCustomizes) {
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!