Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-api
Commits
1e48147e
Commit
1e48147e
authored
Feb 13, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改点击量时间搜索
parent
61b02027
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
MemTraffic.java
...va/org/rcisoft/business/memTraffic/entity/MemTraffic.java
+6
-0
MemTrafficMapper.xml
...es/mapper/business/memTraffic/mapper/MemTrafficMapper.xml
+15
-3
No files found.
src/main/java/org/rcisoft/business/memTraffic/entity/MemTraffic.java
View file @
1e48147e
...
@@ -65,5 +65,11 @@ public class MemTraffic extends CyIdNotDataEntity<MemTraffic> {
...
@@ -65,5 +65,11 @@ public class MemTraffic extends CyIdNotDataEntity<MemTraffic> {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
endTime
;
private
String
endTime
;
/**
* 用户名称
*/
@TableField
(
exist
=
false
)
private
String
nickName
;
}
}
src/main/resources/mapper/business/memTraffic/mapper/MemTrafficMapper.xml
View file @
1e48147e
...
@@ -23,14 +23,26 @@
...
@@ -23,14 +23,26 @@
</select>
</select>
<select
id=
"queryMemTrafficsPaged"
resultMap=
"BaseResultMap"
>
<select
id=
"queryMemTrafficsPaged"
resultMap=
"BaseResultMap"
>
select * from mem_traffic
select * ,
su.nick_name as nickName
from mem_traffic mt
left join sys_user su on mt.user_id = su.business_id
where 1=1
where 1=1
<if
test=
"entity.nickName !=null and entity.nickName != '' "
>
and su.nick_name like concat('%',#{entity.nickName},'%')
</if>
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
and mt.create_date
>
= #{entity.beginTime}
</if>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
and mt.create_date
<
date_add(#{entity.endTime}, INTERVAL 1 DAY)
</if>
<if
test=
"entity.userId !=null and entity.userId != '' "
>
<if
test=
"entity.userId !=null and entity.userId != '' "
>
and user_id = #{entity.userId}
and
mt.
user_id = #{entity.userId}
</if>
</if>
<if
test=
"entity.memTraffic !=null and entity.memTraffic != '' "
>
<if
test=
"entity.memTraffic !=null and entity.memTraffic != '' "
>
and mem_traffic = #{entity.memTraffic}
and mem_traffic = #{entity.memTraffic}
</if>
</if>
ORDER BY business_id DESC
ORDER BY
mt.
business_id DESC
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment