Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
72e731d9
Commit
72e731d9
authored
Nov 20, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-chw' into dev-chw
parents
7837591c
08f7c785
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
ActivityMapper.xml
...ivity-server/src/main/resources/mapper/ActivityMapper.xml
+23
-2
No files found.
xx-activity/xx-activity-server/src/main/resources/mapper/ActivityMapper.xml
View file @
72e731d9
...
@@ -32,7 +32,28 @@
...
@@ -32,7 +32,28 @@
</resultMap>
</resultMap>
<select
id=
"getAllByPage"
resultType=
"com.xxfc.platform.activity.vo.ActivityVo"
parameterType=
"com.xxfc.platform.activity.dto.ActivityDTO"
>
<select
id=
"getAllByPage"
resultType=
"com.xxfc.platform.activity.vo.ActivityVo"
parameterType=
"com.xxfc.platform.activity.dto.ActivityDTO"
>
select a.*,t.name as typeName from `activity` a
select
a.*,
t.name as typeName,
(
CASE
WHEN a.end_time >=#{time} THEN
a.end_time -#{time}
ELSE
0
END
) AS orderSort ,
( CASE
WHEN a.start_time
<
= #{time} and a.end_time > #{time} THEN
2
WHEN a.start_time > #{time} THEN
1
ELSE
3
END
) AS activityStatus
from `activity` a
LEFT JOIN activity_type t on a.type=t.type
LEFT JOIN activity_type t on a.type=t.type
<where>
<where>
a.is_del = 0
a.is_del = 0
...
@@ -59,6 +80,6 @@
...
@@ -59,6 +80,6 @@
]]>
]]>
</if>
</if>
</where>
</where>
order by a.`crt_time` desc
ORDER BY activityStatus,sign(orderSort)DESC,ABS(orderSort)
</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