fix: 优化逻辑
This commit is contained in:
parent
939a98acfa
commit
c8eb64379c
@ -1617,6 +1617,7 @@ public class OverviewServiceImpl implements OverviewService {
|
||||
case "topHynm" -> "t.TOP_HYNM";
|
||||
case "lgtd" -> "t.LGTD";
|
||||
case "lttd" -> "t.LTTD";
|
||||
case "url" -> "t.URL";
|
||||
case "stlc" -> "t.STLC";
|
||||
case "usfl" -> "t.USFL";
|
||||
case "dtin" -> "t.DTIN";
|
||||
|
||||
@ -29,7 +29,7 @@ public class MsUsercolumnBServiceImpl
|
||||
throw new IllegalArgumentException("模块(cfgId)不能为空");
|
||||
}
|
||||
|
||||
String currentUser = SecurityUtils.getCurrentUsername();
|
||||
String currentUser = SecurityUtils.getUserId();
|
||||
List<MsUsercolumnB> list = userColumn.getList();
|
||||
|
||||
if (list != null && !list.isEmpty()) {
|
||||
@ -53,7 +53,7 @@ public class MsUsercolumnBServiceImpl
|
||||
|
||||
@Override
|
||||
public List<MsUsercolumnB> getUserColumnData(MsUsercolumnB userColumn) {
|
||||
String currentUser = SecurityUtils.getCurrentUsername();
|
||||
String currentUser = SecurityUtils.getUserId();
|
||||
return usercolumnBMapper.getUserColumnList(currentUser, userColumn.getCfgId());
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,12 +43,12 @@ public class SysDictionaryController {
|
||||
***********************************/
|
||||
@GetMapping("/dictList")
|
||||
@Operation(summary = "获取数据字典列表")
|
||||
public ResponseResult getDictList(String dictType) {
|
||||
public ResponseResult getDictList(String dictType,String dictName) {
|
||||
if (StrUtil.isBlank(dictType)) {
|
||||
return ResponseResult.error("参数为空");
|
||||
}
|
||||
List<SysDictionary> sysDictionaries =
|
||||
sysDictionaryService.getDictList(dictType);
|
||||
sysDictionaryService.getDictList(dictType,dictName);
|
||||
return ResponseResult.successData(sysDictionaries);
|
||||
}
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ public interface ISysDictionaryService extends IService<SysDictionary> {
|
||||
* 参数说明 dictType 字典类型
|
||||
* 返回值说明: com.yfd.platform.config.ResponseResult 返回分页查询结果
|
||||
***********************************/
|
||||
List<SysDictionary> getDictList(String dictType);
|
||||
List<SysDictionary> getDictList(String dictType,String dictName);
|
||||
|
||||
/**********************************
|
||||
* 用途说明: 新增字典
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package com.yfd.platform.system.service.impl;
|
||||
|
||||
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;
|
||||
@ -39,10 +40,10 @@ public class SysDictionaryServiceImpl extends ServiceImpl<SysDictionaryMapper
|
||||
* 返回值说明: 返回字典列表集合
|
||||
***********************************/
|
||||
@Override
|
||||
public List<SysDictionary> getDictList(String dictType) {
|
||||
public List<SysDictionary> getDictList(String dictType,String dictName) {
|
||||
LambdaQueryWrapper<SysDictionary> queryWrapper =
|
||||
new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(SysDictionary::getDictType, dictType).orderByAsc(SysDictionary::getOrderNo);
|
||||
queryWrapper.eq(SysDictionary::getDictType, dictType).eq(StrUtil.isNotBlank(dictName),SysDictionary::getDictName, dictName).orderByAsc(SysDictionary::getOrderNo);
|
||||
return sysDictionaryMapper.selectList(queryWrapper);
|
||||
}
|
||||
|
||||
|
||||
@ -35,7 +35,8 @@
|
||||
mcb.COLUMN_EN,
|
||||
mcb.COLUMN_CFG AS COLUMN_NAME,
|
||||
CASE WHEN mub.COLUMN_EN IS NULL THEN 1 ELSE 0 END AS DEFAULT_CONFIG,
|
||||
CASE WHEN mub.ENABLE IS NULL THEN mcb.ENABLE ELSE mub.ENABLE END AS ENABLE,
|
||||
-- CASE WHEN mub.ENABLE IS NULL THEN mcb.ENABLE ELSE mub.ENABLE END AS ENABLE,
|
||||
CASE WHEN mcb.ENABLE IS NULL THEN mub.ENABLE ELSE mcb.ENABLE END AS ENABLE,
|
||||
CASE WHEN mub.ORDER_INDEX IS NULL THEN mcb.ORDER_INDEX ELSE mub.ORDER_INDEX END AS ORDER_INDEX,
|
||||
mub.RECORD_USER,
|
||||
CASE WHEN mub.CHECKED IS NULL THEN mcb.DEFAULT_CHECKED ELSE mub.CHECKED END AS CHECKED,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user