Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
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
micro_app
gk
Commits
ce03a64b
Commit
ce03a64b
authored
Feb 02, 2026
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
事助手后台搜不到分配给组委会的赛事
parent
862d7ac4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
CmptMapper.xml
.../com/dlbridge/jadp/plugins/cmpt/dao/mapper/CmptMapper.xml
+6
-3
No files found.
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/CmptMapper.xml
View file @
ce03a64b
...
...
@@ -149,6 +149,8 @@
select count(1)
from gk_cmpt a left join common.neucmpt b on a.cmpt_id=b.gtCmptId
left join raceenroll.competition c on b.gcmptid=c.cmptid
LEFT JOIN common.neuuser nu ON nu.neuUserId = b.committeeNeuUserId
LEFT JOIN raceenroll.registerinfo cbf ON cbf.userId = nu.gUserId
where a.del_flag=0
<include
refid=
"cmpt-where-sql"
/>
...
...
@@ -177,6 +179,8 @@
c.location as location
from gk_cmpt a left join common.neucmpt b on a.cmpt_id=b.gtCmptId
left join raceenroll.competition c on b.gcmptid=c.cmptid
LEFT JOIN common.neuuser nu ON nu.neuUserId = b.committeeNeuUserId
LEFT JOIN raceenroll.registerinfo cbf ON cbf.userId = nu.gUserId
where a.del_flag=0
<include
refid=
"cmpt-where-sql"
/>
order by c.startTime desc
...
...
@@ -185,7 +189,7 @@
<sql
id=
"cmpt-where-sql"
>
<if
test=
"@org.apache.commons.lang3.StringUtils@isNotBlank(param.keyword)"
>
and
a.cmpt_name like concat('%',#{param.keyword},'%'
)
and
(a.cmpt_name like concat('%',#{param.keyword},'%') or a.cmpt_id=#{param.keyword} or c.cmptId=#{param.keyword}
)
</if>
<if
test=
"param.type == 1"
>
and now() >= c.openTime and c.deadLine >= now()
...
...
@@ -194,8 +198,7 @@
and now() >= c.startTime and c.endTime >= now()
</if>
<if
test=
"param.userId > 0"
>
and c.createUserId=#{param.userId}
and a.cmpt_status = 2
AND (c.createUserId=#{param.userId} OR cbf.userId = #{param.userId})
</if>
<if
test=
"param.userId lt 0"
>
AND c.createUserId NOT IN (SELECT user_id from gksite.gk_app_info WHERE user_id>0)
...
...
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