Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
a5ebc48b
提交
a5ebc48b
authored
5月 19, 2021
作者:
junjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(backend):分组 场景 sql fix
上级
1fb3f2ee
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
10 行增加
和
8 行删除
+10
-8
ExtChartGroupMapper.xml
.../java/io/dataease/base/mapper/ext/ExtChartGroupMapper.xml
+1
-1
ExtDataSetGroupMapper.xml
...ava/io/dataease/base/mapper/ext/ExtDataSetGroupMapper.xml
+1
-1
ChartGroupService.java
...ain/java/io/dataease/service/chart/ChartGroupService.java
+3
-2
DataSetGroupService.java
...java/io/dataease/service/dataset/DataSetGroupService.java
+5
-4
没有找到文件。
backend/src/main/java/io/dataease/base/mapper/ext/ExtChartGroupMapper.xml
浏览文件 @
a5ebc48b
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
and chart_group.id = #{id,jdbcType=VARCHAR}
and chart_group.id = #{id,jdbcType=VARCHAR}
</if>
</if>
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
and chart_group.`name`
=
CONCAT('%', #{name},'%')
and chart_group.`name`
like
CONCAT('%', #{name},'%')
</if>
</if>
<if
test=
"pid != null"
>
<if
test=
"pid != null"
>
and chart_group.pid = #{pid,jdbcType=VARCHAR}
and chart_group.pid = #{pid,jdbcType=VARCHAR}
...
...
backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSetGroupMapper.xml
浏览文件 @
a5ebc48b
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
and dataset_group.id = #{id,jdbcType=VARCHAR}
and dataset_group.id = #{id,jdbcType=VARCHAR}
</if>
</if>
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
and dataset_group.`name`
=
CONCAT('%', #{name},'%')
and dataset_group.`name`
like
CONCAT('%', #{name},'%')
</if>
</if>
<if
test=
"pid != null"
>
<if
test=
"pid != null"
>
and dataset_group.pid = #{pid,jdbcType=VARCHAR}
and dataset_group.pid = #{pid,jdbcType=VARCHAR}
...
...
backend/src/main/java/io/dataease/service/chart/ChartGroupService.java
浏览文件 @
a5ebc48b
...
@@ -46,8 +46,9 @@ public class ChartGroupService {
...
@@ -46,8 +46,9 @@ public class ChartGroupService {
}
}
public
void
delete
(
String
id
)
{
public
void
delete
(
String
id
)
{
ChartGroup
cg
=
chartGroupMapper
.
selectByPrimaryKey
(
id
);
ChartGroupRequest
ChartGroup
=
new
ChartGroupRequest
();
ChartGroupRequest
ChartGroup
=
new
ChartGroupRequest
();
ChartGroup
.
setId
(
id
);
BeanUtils
.
copyBean
(
ChartGroup
,
cg
);
List
<
ChartGroupDTO
>
tree
=
tree
(
ChartGroup
);
List
<
ChartGroupDTO
>
tree
=
tree
(
ChartGroup
);
List
<
String
>
ids
=
new
ArrayList
<>();
List
<
String
>
ids
=
new
ArrayList
<>();
getAllId
(
tree
,
ids
);
getAllId
(
tree
,
ids
);
...
@@ -70,7 +71,7 @@ public class ChartGroupService {
...
@@ -70,7 +71,7 @@ public class ChartGroupService {
public
List
<
ChartGroupDTO
>
tree
(
ChartGroupRequest
chartGroup
)
{
public
List
<
ChartGroupDTO
>
tree
(
ChartGroupRequest
chartGroup
)
{
chartGroup
.
setUserId
(
String
.
valueOf
(
AuthUtils
.
getUser
().
getUserId
()));
chartGroup
.
setUserId
(
String
.
valueOf
(
AuthUtils
.
getUser
().
getUserId
()));
if
(
chartGroup
.
getLevel
()
==
null
)
{
if
(
chartGroup
.
getLevel
()
==
null
)
{
chartGroup
.
setLevel
(
0
);
chartGroup
.
setLevel
(
0
);
}
}
List
<
ChartGroupDTO
>
treeInfo
=
extChartGroupMapper
.
search
(
chartGroup
);
List
<
ChartGroupDTO
>
treeInfo
=
extChartGroupMapper
.
search
(
chartGroup
);
...
...
backend/src/main/java/io/dataease/service/dataset/DataSetGroupService.java
浏览文件 @
a5ebc48b
...
@@ -51,9 +51,10 @@ public class DataSetGroupService {
...
@@ -51,9 +51,10 @@ public class DataSetGroupService {
return
dataSetGroupDTO
;
return
dataSetGroupDTO
;
}
}
public
void
delete
(
String
id
)
throws
Exception
{
public
void
delete
(
String
id
)
throws
Exception
{
DatasetGroup
dg
=
datasetGroupMapper
.
selectByPrimaryKey
(
id
);
DataSetGroupRequest
datasetGroup
=
new
DataSetGroupRequest
();
DataSetGroupRequest
datasetGroup
=
new
DataSetGroupRequest
();
datasetGroup
.
setId
(
id
);
BeanUtils
.
copyBean
(
datasetGroup
,
dg
);
List
<
DataSetGroupDTO
>
tree
=
tree
(
datasetGroup
);
List
<
DataSetGroupDTO
>
tree
=
tree
(
datasetGroup
);
List
<
String
>
ids
=
new
ArrayList
<>();
List
<
String
>
ids
=
new
ArrayList
<>();
getAllId
(
tree
,
ids
);
getAllId
(
tree
,
ids
);
...
@@ -68,7 +69,7 @@ public class DataSetGroupService {
...
@@ -68,7 +69,7 @@ public class DataSetGroupService {
return
datasetGroupMapper
.
selectByPrimaryKey
(
id
);
return
datasetGroupMapper
.
selectByPrimaryKey
(
id
);
}
}
public
void
deleteTableAndField
(
List
<
String
>
sceneIds
)
throws
Exception
{
public
void
deleteTableAndField
(
List
<
String
>
sceneIds
)
throws
Exception
{
for
(
String
sceneId
:
sceneIds
)
{
for
(
String
sceneId
:
sceneIds
)
{
DataSetTableRequest
dataSetTableRequest
=
new
DataSetTableRequest
();
DataSetTableRequest
dataSetTableRequest
=
new
DataSetTableRequest
();
dataSetTableRequest
.
setSceneId
(
sceneId
);
dataSetTableRequest
.
setSceneId
(
sceneId
);
...
@@ -81,7 +82,7 @@ public class DataSetGroupService {
...
@@ -81,7 +82,7 @@ public class DataSetGroupService {
public
List
<
DataSetGroupDTO
>
tree
(
DataSetGroupRequest
datasetGroup
)
{
public
List
<
DataSetGroupDTO
>
tree
(
DataSetGroupRequest
datasetGroup
)
{
datasetGroup
.
setUserId
(
String
.
valueOf
(
AuthUtils
.
getUser
().
getUserId
()));
datasetGroup
.
setUserId
(
String
.
valueOf
(
AuthUtils
.
getUser
().
getUserId
()));
if
(
datasetGroup
.
getLevel
()
==
null
)
{
if
(
datasetGroup
.
getLevel
()
==
null
)
{
datasetGroup
.
setLevel
(
0
);
datasetGroup
.
setLevel
(
0
);
}
}
List
<
DataSetGroupDTO
>
treeInfo
=
extDataSetGroupMapper
.
search
(
datasetGroup
);
List
<
DataSetGroupDTO
>
treeInfo
=
extDataSetGroupMapper
.
search
(
datasetGroup
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论