fix: 优化bug

This commit is contained in:
tangwei 2026-07-15 15:07:07 +08:00
parent 2a7b8d3e3f
commit c3dbe858b4
2 changed files with 17 additions and 1 deletions

View File

@ -1631,6 +1631,10 @@ public class OverviewServiceImpl implements OverviewService {
case "pesstdt" -> "t.PESSTDT"; case "pesstdt" -> "t.PESSTDT";
case "swdt" -> "t.SWDT"; case "swdt" -> "t.SWDT";
case "jcdt" -> "t.JCDT"; case "jcdt" -> "t.JCDT";
case "baseStepSort" -> "t.BASESTEPSORT";
case "rvcdStepSort" -> "t.RVCDSTEPSORT";
case "rstcdStepSort" -> "t.RSTCDSTEPSORT";
case "siteStepSort" -> "t.SITESTEPSORT";
case "wddt" -> "t.WDDT"; case "wddt" -> "t.WDDT";
case "orderIndex" -> "t.ORDER_INDEX"; case "orderIndex" -> "t.ORDER_INDEX";
case "remark" -> "t.REMARK"; case "remark" -> "t.REMARK";

View File

@ -3,6 +3,7 @@ package com.yfd.platform.qgc_sys.mapcfg.controller;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yfd.platform.common.DataSourceLoadOptionsBase; import com.yfd.platform.common.DataSourceLoadOptionsBase;
import com.yfd.platform.common.DataSourceRequest; import com.yfd.platform.common.DataSourceRequest;
@ -175,12 +176,23 @@ public class MapmoduleBController {
layerModule.setChildNode(mapmoduleB.getChildNode()); layerModule.setChildNode(mapmoduleB.getChildNode());
layerModule.setMultiSelect(mapmoduleB.getMultiSelect()); layerModule.setMultiSelect(mapmoduleB.getMultiSelect());
layerModule.setCanBeChecked(mapmoduleB.getCanBeChecked()); layerModule.setCanBeChecked(mapmoduleB.getCanBeChecked());
layerModule.setChecked(mapmoduleB.getChecked()); // 判断mapmoduleB.getChecked() 如果是空则默认为1
layerModule.setChecked(mapmoduleB.getChecked() == null ? 1 : mapmoduleB.getChecked());
layerModule.setDescription(mapmoduleB.getDescription()); layerModule.setDescription(mapmoduleB.getDescription());
layerModule.setEnable(mapmoduleB.getEnable()); layerModule.setEnable(mapmoduleB.getEnable());
layerModule.setOrderIndex(mapmoduleB.getOrderIndex()); layerModule.setOrderIndex(mapmoduleB.getOrderIndex());
layerModule.setFilterContent(mapmoduleB.getFilterContent()); layerModule.setFilterContent(mapmoduleB.getFilterContent());
mapmoduleBService.saveOrUpdate(layerModule); mapmoduleBService.saveOrUpdate(layerModule);
}else if(count ==1){
// 走图层修改逻辑
LambdaUpdateWrapper<MsMapmoduleB> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(MsMapmoduleB::getModuleId, mapmoduleB.getModuleId());
updateWrapper.eq(MsMapmoduleB::getSystemId, mapmoduleB.getSystemId());
updateWrapper.eq(MsMapmoduleB::getResType, "layer");
updateWrapper.eq(MsMapmoduleB::getResId, layer.getId());
updateWrapper.eq(MsMapmoduleB::getIsDeleted, 0).set(MsMapmoduleB::getChecked, mapmoduleB.getChecked());
mapmoduleBService.update(updateWrapper);
} }
} }
} }