fix: 优化bug
This commit is contained in:
parent
2a7b8d3e3f
commit
c3dbe858b4
@ -1631,6 +1631,10 @@ public class OverviewServiceImpl implements OverviewService {
|
||||
case "pesstdt" -> "t.PESSTDT";
|
||||
case "swdt" -> "t.SWDT";
|
||||
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 "orderIndex" -> "t.ORDER_INDEX";
|
||||
case "remark" -> "t.REMARK";
|
||||
|
||||
@ -3,6 +3,7 @@ package com.yfd.platform.qgc_sys.mapcfg.controller;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
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.yfd.platform.common.DataSourceLoadOptionsBase;
|
||||
import com.yfd.platform.common.DataSourceRequest;
|
||||
@ -175,12 +176,23 @@ public class MapmoduleBController {
|
||||
layerModule.setChildNode(mapmoduleB.getChildNode());
|
||||
layerModule.setMultiSelect(mapmoduleB.getMultiSelect());
|
||||
layerModule.setCanBeChecked(mapmoduleB.getCanBeChecked());
|
||||
layerModule.setChecked(mapmoduleB.getChecked());
|
||||
// 判断mapmoduleB.getChecked() 如果是空则默认为1
|
||||
layerModule.setChecked(mapmoduleB.getChecked() == null ? 1 : mapmoduleB.getChecked());
|
||||
layerModule.setDescription(mapmoduleB.getDescription());
|
||||
layerModule.setEnable(mapmoduleB.getEnable());
|
||||
layerModule.setOrderIndex(mapmoduleB.getOrderIndex());
|
||||
layerModule.setFilterContent(mapmoduleB.getFilterContent());
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user