Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-link-report
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-link-report
Commits
094e0704
提交
094e0704
authored
7月 30, 2025
作者:
吕本才
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、修改查询参数category字段
上级
071a1c3f
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
19 行增加
和
12 行删除
+19
-12
JimuReportDaoImpl.java
...va/com/link/report/domain/dao/impl/JimuReportDaoImpl.java
+2
-1
JimuReportMapper.xml
src/main/resources/mapper/report/JimuReportMapper.xml
+17
-11
没有找到文件。
src/main/java/com/link/report/domain/dao/impl/JimuReportDaoImpl.java
浏览文件 @
094e0704
...
...
@@ -12,6 +12,7 @@ import com.link.report.domain.wq.JimuReportListWq;
import
com.link.report.pojo.response.JimuReportListDto
;
import
com.sfa.common.core.web.domain.PageInfo
;
import
com.sfa.common.core.web.page.TableSupport
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
...
...
@@ -55,7 +56,7 @@ public class JimuReportDaoImpl implements JimuReportDao {
public
PageInfo
<
JimuReportListDto
>
selectListAll
(
JimuReportListWq
wq
)
{
LambdaQueryWrapper
<
JimuReport
>
qw
=
new
LambdaQueryWrapper
<
JimuReport
>()
.
eq
(
ObjectUtil
.
isNotEmpty
(
wq
.
getCategory
()),
JimuReport:
:
getType
,
wq
.
getCategory
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
wq
.
getCategory
())
&&
!
StringUtils
.
equals
(
wq
.
getCategory
(),
"0"
)
,
JimuReport:
:
getType
,
wq
.
getCategory
())
.
like
(
ObjectUtil
.
isNotEmpty
(
wq
.
getName
()),
JimuReport:
:
getName
,
wq
.
getName
());
IPage
<
JimuReport
>
jimuReportPage
=
jimuReportMapper
.
selectPage
(
TableSupport
.
pageI
(),
qw
);
...
...
src/main/resources/mapper/report/JimuReportMapper.xml
浏览文件 @
094e0704
...
...
@@ -14,11 +14,15 @@
<where>
jr.del_flag =0
<if
test=
"userName != null and userName != ''"
>
and jr.create_by = #{userName}
and jr.create_by = #{userName}
</if>
<if
test=
"categoryName != null and categoryName != ''"
>
jrc.name = #{categoryName}
and jrc.name = #{categoryName}
</if>
<if
test=
"category != null and category != '0'"
>
and jr.type = #{category}
</if>
<if
test=
"name != null and name != ''"
>
and jr.name like concat('%', #{name}, '%')
</if>
...
...
@@ -38,10 +42,10 @@
<!-- 分配给当前登录人的数据 -->
jr.del_flag =0 and jra.user_id = #{userId}
<if
test=
"categoryName != null and categoryName != ''"
>
jrc.name = #{categoryName}
and
jrc.name = #{categoryName}
</if>
<if
test=
"category != null and category != ''"
>
jr.type = #{category}
<if
test=
"category != null and category != '
0
'"
>
and
jr.type = #{category}
</if>
<if
test=
"name != null and name != ''"
>
and jr.name like concat('%', #{name}, '%')
...
...
@@ -65,11 +69,14 @@
left join jimu_report_category jrc on jr.type = jrc.id
<where>
jr.del_flag =0
<if
test=
"
categoryName != null and category
Name != ''"
>
and jr.create_by = #{userName}
<if
test=
"
userName != null and user
Name != ''"
>
and jr.create_by = #{userName}
</if>
<if
test=
"categoryName != null and categoryName != ''"
>
jrc.name = #{categoryName}
and jrc.name = #{categoryName}
</if>
<if
test=
"category != null and category != '0'"
>
and jr.type = #{category}
</if>
<if
test=
"name != null and name != ''"
>
and jr.name like concat('%', #{name}, '%')
...
...
@@ -91,10 +98,9 @@
inner join jimu_report_auth jra on jr.id = jra.report_id
<where>
<!-- 分配给当前登录人的数据 -->
jr.del_flag =0
and jra.user_id = #{userId}
jr.del_flag =0 and jra.user_id = #{userId}
<if
test=
"categoryName != null and categoryName != ''"
>
jrc.name = #{categoryName}
and
jrc.name = #{categoryName}
</if>
<if
test=
"name != null and name != ''"
>
and jr.name like concat('%', #{name}, '%')
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论