Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
site-project
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
site-project
Commits
5f971663
Commit
5f971663
authored
Feb 11, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sort排序
parent
06ccff45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
+11
-0
cloud-site-service/src/main/resources/mapper/InformationMapper.xml
+12
-0
No files found.
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
View file @
5f971663
package
com
.
yizhi
.
site
.
application
.
service
.
impl
;
import
cn.hutool.core.collection.CollUtil
;
import
com.baomidou.mybatisplus.mapper.EntityWrapper
;
import
com.baomidou.mybatisplus.service.impl.ServiceImpl
;
import
com.yizhi.application.orm.id.IdGenerator
;
import
com.yizhi.core.application.context.ContextHolder
;
...
...
@@ -88,6 +89,16 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
eventTrack
.
setType
(
Integer
.
valueOf
(
dictionary
.
getDescription
()));
}
}
if
(
Objects
.
equals
(
type
,
"event_login"
)){
EntityWrapper
<
EventTrack
>
wrapper
=
new
EntityWrapper
<
EventTrack
>();
wrapper
.
eq
(
"business_id"
,
userId
);
wrapper
.
eq
(
"type"
,
eventTrack
.
getType
());
wrapper
.
between
(
"create_time"
,
DateUtil
.
parse
(
DateUtil
.
toDay
(
toDay
),
"yyyy-MM-dd"
),
toDay
);
EventTrack
track
=
this
.
selectOne
(
wrapper
);
if
(
track
!=
null
&&
track
.
getId
()!=
null
){
return
;
}
}
eventTrack
.
setId
(
idGenerator
.
generate
());
this
.
insert
(
eventTrack
);
}
...
...
cloud-site-service/src/main/resources/mapper/InformationMapper.xml
View file @
5f971663
...
...
@@ -58,6 +58,9 @@
<if
test=
"isTop != null"
>
and a.is_top = #{isTop}
</if>
<if
test=
"state != null"
>
and a.state = #{state}
</if>
order by a.is_top desc, a.update_time desc
</select>
...
...
@@ -80,6 +83,9 @@
<if
test=
"isTop != null"
>
and a.is_top = #{isTop}
</if>
<if
test=
"state != null"
>
and a.state = #{state}
</if>
order by a.is_top desc, a.update_time desc
</select>
...
...
@@ -102,6 +108,9 @@
<if
test=
"isTop != null"
>
and a.is_top = #{isTop}
</if>
<if
test=
"state != null"
>
and a.state = #{state}
</if>
order by a.is_top desc, a.update_time desc
</select>
...
...
@@ -124,6 +133,9 @@
<if
test=
"isTop != null"
>
and a.is_top = #{isTop}
</if>
<if
test=
"state != null"
>
and a.state = #{state}
</if>
order by a.is_top desc, a.update_time desc
</select>
...
...
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