Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-link-report
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-link-report
Commits
7f0df731
提交
7f0df731
authored
3月 20, 2025
作者:
吕本才
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、修改返回的reportType,2、为空时报表分组关联关系不再新增
上级
e48876b1
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
9 行增加
和
5 行删除
+9
-5
CustomerReportGroupVo.java
...a/com/link/report/pojo/request/CustomerReportGroupVo.java
+1
-1
ReportShareBiListDto.java
...a/com/link/report/pojo/response/ReportShareBiListDto.java
+1
-1
CustomerReportGroupServiceImpl.java
...k/report/service/impl/CustomerReportGroupServiceImpl.java
+6
-2
CustomerReportGroupMapper.xml
...ain/resources/mapper/report/CustomerReportGroupMapper.xml
+1
-1
没有找到文件。
src/main/java/com/link/report/pojo/request/CustomerReportGroupVo.java
浏览文件 @
7f0df731
...
...
@@ -7,7 +7,7 @@ import java.util.List;
@Data
public
class
CustomerReportGroupVo
{
private
String
i
d
;
private
String
groupI
d
;
private
String
groupName
;
private
List
<
ReportItemsDto
>
items
;
}
src/main/java/com/link/report/pojo/response/ReportShareBiListDto.java
浏览文件 @
7f0df731
...
...
@@ -17,7 +17,7 @@ public class ReportShareBiListDto {
private
String
previewUrl
;
private
String
reportName
;
// 报表类型,0自定义报表 1 积木报表
private
Integer
reportType
;
private
Integer
reportType
=
1
;
}
src/main/java/com/link/report/service/impl/CustomerReportGroupServiceImpl.java
浏览文件 @
7f0df731
package
com
.
link
.
report
.
service
.
impl
;
import
cn.hutool.core.util.IdUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.link.report.domain.dao.CustomerGroupDao
;
import
com.link.report.domain.dao.CustomerReportGroupDao
;
import
com.link.report.domain.entity.CustomerReportGroup
;
...
...
@@ -55,6 +56,7 @@ public class CustomerReportGroupServiceImpl implements CustomerReportGroupServic
itemsDto
.
setReportId
(
reportGroupQueryListDto
.
getReportId
());
itemsDto
.
setReportName
(
reportGroupQueryListDto
.
getReportName
());
itemsDto
.
setPreviewUrl
(
reportGroupQueryListDto
.
getPreviewUrl
());
itemsDto
.
setReportType
(
reportGroupQueryListDto
.
getReportType
());
itemsDtos
.
add
(
itemsDto
);
}
}
...
...
@@ -86,7 +88,7 @@ public class CustomerReportGroupServiceImpl implements CustomerReportGroupServic
CustomerReportGroup
dto
=
new
CustomerReportGroup
();
// 雪花算法生成id
dto
.
setId
(
IdUtil
.
getSnowflakeNextIdStr
());
dto
.
setGroupId
(
vo
.
getId
());
dto
.
setGroupId
(
vo
.
get
Group
Id
());
dto
.
setReportId
(
item
.
getReportId
());
dto
.
setReportType
(
item
.
getReportType
());
dto
.
setCreateBy
(
String
.
valueOf
(
userId
));
...
...
@@ -94,6 +96,8 @@ public class CustomerReportGroupServiceImpl implements CustomerReportGroupServic
items
.
add
(
dto
);
}
}
customerReportGroupDao
.
batchInsert
(
items
);
if
(
ObjectUtil
.
isNotEmpty
(
items
)){
customerReportGroupDao
.
batchInsert
(
items
);
}
}
}
src/main/resources/mapper/report/CustomerReportGroupMapper.xml
浏览文件 @
7f0df731
...
...
@@ -47,7 +47,7 @@
cr.preview_url as previewUrl
FROM
customer_group cg
join customer_report_group crg on crg.group_id = cg.id
join customer_report_group crg on crg.group_id = cg.id
and crg.report_type = 0
join customer_report cr on crg.report_id = cr.id and crg.report_type = cr.report_type
<where>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论