Commit 703f8852 authored by yangshuxing's avatar yangshuxing

支持春城赛事

parent 90bf9e2c
...@@ -154,7 +154,9 @@ ...@@ -154,7 +154,9 @@
and c.createUserId=#{param.userId} and a.cmpt_status = 2 and c.createUserId=#{param.userId} and a.cmpt_status = 2
</if> </if>
<if test="param.userId lt 0"> <if test="param.userId lt 0">
and c.createUserId <![CDATA[ <> ]]> 427744 and a.cmpt_status = 2 and c.createUserId <![CDATA[ <> ]]> 427744
and c.createUserId <![CDATA[ <> ]]> 2148892
and a.cmpt_status = 2
</if> </if>
</sql> </sql>
...@@ -273,6 +275,7 @@ ...@@ -273,6 +275,7 @@
left join raceenroll.competition c on b.gcmptid=c.cmptId where cmpt_status=2 and del_flag=0 left join raceenroll.competition c on b.gcmptid=c.cmptId where cmpt_status=2 and del_flag=0
<if test="0 > userId"> <if test="0 > userId">
and c.createUserId <![CDATA[ <> ]]> 427744 and c.createUserId <![CDATA[ <> ]]> 427744
and c.createUserId <![CDATA[ <> ]]> 2148892
</if> </if>
<if test="userId > 0"> <if test="userId > 0">
and c.createUserId = #{userId} and c.createUserId = #{userId}
...@@ -284,6 +287,7 @@ ...@@ -284,6 +287,7 @@
where a.cmpt_status=2 and a.del_flag=0 and now() > c.opentime and c.deadline > now() where a.cmpt_status=2 and a.del_flag=0 and now() > c.opentime and c.deadline > now()
<if test="userId lt 0"> <if test="userId lt 0">
and c.createUserId <![CDATA[ <> ]]> 427744 and c.createUserId <![CDATA[ <> ]]> 427744
and c.createUserId <![CDATA[ <> ]]> 2148892
</if> </if>
<if test="userId > 0"> <if test="userId > 0">
and c.createUserId = #{userId} and c.createUserId = #{userId}
...@@ -296,6 +300,7 @@ ...@@ -296,6 +300,7 @@
where a.cmpt_status=2 and a.del_flag=0 and now() > c.startTime and c.endTime > now() where a.cmpt_status=2 and a.del_flag=0 and now() > c.startTime and c.endTime > now()
<if test="userId lt 0"> <if test="userId lt 0">
and c.createUserId <![CDATA[ <> ]]> 427744 and c.createUserId <![CDATA[ <> ]]> 427744
and c.createUserId <![CDATA[ <> ]]> 2148892
</if> </if>
<if test="userId > 0"> <if test="userId > 0">
and c.createUserId = #{userId} and c.createUserId = #{userId}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment