【fix sonar】SysDictServiceImpl文件
This commit is contained in:
+6
-6
@@ -190,7 +190,7 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
|
||||
//update-end--Author:lvdandan Date:20201204 for:JT-36【online】树形列表bug修改后,还是显示原来值 暂时去掉缓存
|
||||
public List<String> queryTableDictByKeys(String table, String text, String code, String keys, boolean delNotExist) {
|
||||
if(oConvertUtils.isEmpty(keys)){
|
||||
return null;
|
||||
return Collections.emptyList();
|
||||
}
|
||||
String[] keyArray = keys.split(",");
|
||||
List<DictModel> dicts = sysDictMapper.queryTableDictByKeys(table, text, code, keyArray);
|
||||
@@ -371,7 +371,7 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
|
||||
|
||||
@Override
|
||||
public List<DictModel> queryDictTablePageList(DictQuery query, int pageSize, int pageNo) {
|
||||
Page page = new Page(pageNo,pageSize,false);
|
||||
Page<DictModel> page = new Page<>(pageNo,pageSize,false);
|
||||
Page<DictModel> pageList = baseMapper.queryDictTablePageList(page, query);
|
||||
return pageList.getRecords();
|
||||
}
|
||||
@@ -385,7 +385,7 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
|
||||
String[] params = dictCode.split(",");
|
||||
if (params.length < 3) {
|
||||
// 字典Code格式不正确
|
||||
return null;
|
||||
return Collections.emptyList();
|
||||
}
|
||||
//SQL注入校验(只限制非法串改数据库)
|
||||
final String[] sqlInjCheck = {params[0], params[1], params[2]};
|
||||
@@ -398,7 +398,7 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
|
||||
ls = this.queryTableDictItemsByCode(params[0], params[1], params[2]);
|
||||
} else {
|
||||
// 字典Code格式不正确
|
||||
return null;
|
||||
return Collections.emptyList();
|
||||
}
|
||||
} else {
|
||||
//字典表
|
||||
@@ -415,7 +415,7 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
|
||||
String condition = null;
|
||||
if (params.length != 3 && params.length != 4) {
|
||||
// 字典Code格式不正确
|
||||
return null;
|
||||
return Collections.emptyList();
|
||||
} else if (params.length == 4) {
|
||||
condition = params[3];
|
||||
}
|
||||
@@ -429,7 +429,7 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
|
||||
return ls;
|
||||
} else {
|
||||
// 字典Code格式不正确
|
||||
return null;
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user