Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-link-report
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-link-report
Commits
d83cbb70
提交
d83cbb70
authored
4月 01, 2025
作者:
吕本才
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、修改查询自定义分组报表顺序错误bug
上级
bf643dd6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
24 行增加
和
9 行删除
+24
-9
CustomerGroupDaoImpl.java
...com/link/report/domain/dao/impl/CustomerGroupDaoImpl.java
+4
-1
CustomerReportGroupQueryListDto.java
...report/pojo/response/CustomerReportGroupQueryListDto.java
+1
-0
CustomerReportGroupResDto.java
.../link/report/pojo/response/CustomerReportGroupResDto.java
+1
-0
ReportItemsDto.java
...in/java/com/link/report/pojo/response/ReportItemsDto.java
+1
-0
CustomerReportGroupServiceImpl.java
...k/report/service/impl/CustomerReportGroupServiceImpl.java
+1
-1
CustomerReportGroupMapper.xml
...ain/resources/mapper/report/CustomerReportGroupMapper.xml
+16
-7
没有找到文件。
src/main/java/com/link/report/domain/dao/impl/CustomerGroupDaoImpl.java
浏览文件 @
d83cbb70
...
...
@@ -31,7 +31,10 @@ public class CustomerGroupDaoImpl implements CustomerGroupDao {
Wrapper
<
CustomerGroup
>
wraper
=
new
LambdaQueryWrapper
<
CustomerGroup
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
wq
.
getCreateUserId
()),
CustomerGroup:
:
getCreateUserId
,
wq
.
getCreateUserId
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
wq
.
getCategoryName
()),
CustomerGroup:
:
getCategoryName
,
wq
.
getCategoryName
())
.
in
(
ObjectUtil
.
isNotEmpty
(
wq
.
getGroupIds
()),
CustomerGroup:
:
getId
,
wq
.
getGroupIds
());
.
in
(
ObjectUtil
.
isNotEmpty
(
wq
.
getGroupIds
()),
CustomerGroup:
:
getId
,
wq
.
getGroupIds
())
.
orderBy
(
true
,
true
,
CustomerGroup:
:
getCreateTime
)
.
orderBy
(
true
,
true
,
CustomerGroup:
:
getId
)
;
List
<
CustomerGroup
>
customerGroups
=
groupMapper
.
selectList
(
wraper
);
List
<
CustomerGroupDto
>
result
=
new
ArrayList
<>();
for
(
CustomerGroup
customerGroup
:
customerGroups
)
{
...
...
src/main/java/com/link/report/pojo/response/CustomerReportGroupQueryListDto.java
浏览文件 @
d83cbb70
...
...
@@ -6,6 +6,7 @@ import lombok.Data;
public
class
CustomerReportGroupQueryListDto
{
private
String
groupId
;
private
String
groupName
;
private
String
categoryName
;
private
String
reportId
;
private
String
reportName
;
private
Integer
reportType
;
...
...
src/main/java/com/link/report/pojo/response/CustomerReportGroupResDto.java
浏览文件 @
d83cbb70
...
...
@@ -13,5 +13,6 @@ import java.util.List;
public
class
CustomerReportGroupResDto
{
private
String
groupId
;
private
String
groupName
;
private
String
categoryName
;
private
List
<
ReportItemsDto
>
items
;
}
src/main/java/com/link/report/pojo/response/ReportItemsDto.java
浏览文件 @
d83cbb70
...
...
@@ -14,4 +14,5 @@ public class ReportItemsDto {
private
String
reportName
;
// 报表类型,0自定义报表 1 积木报表
private
Integer
reportType
;
}
src/main/java/com/link/report/service/impl/CustomerReportGroupServiceImpl.java
浏览文件 @
d83cbb70
...
...
@@ -98,7 +98,7 @@ public class CustomerReportGroupServiceImpl implements CustomerReportGroupServic
items
.
add
(
dto
);
}
}
if
(
ObjectUtil
.
isNotEmpty
(
items
))
{
if
(
ObjectUtil
.
isNotEmpty
(
items
))
{
customerReportGroupDao
.
batchInsert
(
items
);
}
}
...
...
src/main/resources/mapper/report/CustomerReportGroupMapper.xml
浏览文件 @
d83cbb70
...
...
@@ -11,10 +11,10 @@
group_id,
create_by,
create_user_id,
create_time,
update_by,
update_user_id,
update_time,
del_flag,
tenant_id,
update_count
...
...
@@ -27,10 +27,10 @@
#{item.groupId},
#{item.createBy},
#{item.createUserId},
#{item.createTime},
#{item.updateBy},
#{item.updateUserId},
#{item.updateTime},
#{item.delFlag},
#{item.tenantId},
#{item.updateCount}
...
...
@@ -41,14 +41,18 @@
<select
id=
"queryReportGroupList"
resultType=
"com.link.report.pojo.response.CustomerReportGroupQueryListDto"
>
<!-- 自定义报表关联 -->
select
distinct groupId ,groupName,reportId,reportName,previewUrl,reportType
from (
select
groupId ,groupName,reportId,reportName,previewUrl,reportType,categoryName,createTime,crgId
from (
SELECT
cg.id as groupId,
cg.name as groupName,
crg.report_type as reportType,
crg.report_id as reportId,
cr.name as reportName,
cr.preview_url as previewUrl
cr.preview_url as previewUrl,
cg.category_name as categoryName,
crg.create_time as createTime,
crg.id as crgId
FROM
customer_group cg
join customer_report_group crg on crg.group_id = cg.id and crg.report_type = 0
...
...
@@ -68,7 +72,10 @@
crg.report_type as reportType,
jr.id as reportId,
jr.name as reportName,
jrs.preview_url as previewUrl
jrs.preview_url as previewUrl,
cg.category_name as categoryName,
crg.create_time as createTime,
crg.id as crgId
FROM
customer_group cg
...
...
@@ -82,5 +89,7 @@
</if>
</where>
) tmp
order by crgId, createTime
</select>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论