|
@ -100,13 +100,10 @@ |
|
|
LEFT JOIN t_compete_player tcp on tcpp.player_id = tcp.id |
|
|
LEFT JOIN t_compete_player tcp on tcpp.player_id = tcp.id |
|
|
LEFT JOIN t_compete_group tcg on tcg.id = tcp.compete_group_id |
|
|
LEFT JOIN t_compete_group tcg on tcg.id = tcp.compete_group_id |
|
|
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id |
|
|
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id |
|
|
LEFT JOIN t_compete_time tct on tct.type = tcpro.type |
|
|
|
|
|
where |
|
|
where |
|
|
<if test="competeTimeId != null"> |
|
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|
|
tct.id = #{competeTimeId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="projectId != null"> |
|
|
<if test="projectId != null"> |
|
|
and tcpro.id = #{projectId} |
|
|
tcpro.id = #{projectId} |
|
|
</if> |
|
|
</if> |
|
|
<if test="groupId != null"> |
|
|
<if test="groupId != null"> |
|
|
and tcg.id = #{groupId} |
|
|
and tcg.id = #{groupId} |
|
@ -120,11 +117,14 @@ |
|
|
<if test="idCard != null and idCard != ''"> |
|
|
<if test="idCard != null and idCard != ''"> |
|
|
and tcp.id_card = #{idCard} |
|
|
and tcp.id_card = #{idCard} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
and tcpro.type=0 |
|
|
|
|
|
and tcpro.`level` =2 |
|
|
|
|
|
and tcpro.team=0 |
|
|
and tcp.rec_status = 0 |
|
|
and tcp.rec_status = 0 |
|
|
and tcc.rec_status = 0 |
|
|
and tcc.rec_status = 0 |
|
|
and tcpp.rec_status = 0 |
|
|
and tcpp.rec_status = 0 |
|
|
and tcpro.rec_status = 0 |
|
|
and tcpro.rec_status = 0 |
|
|
and tct.rec_status = 0 |
|
|
</trim> |
|
|
</select> |
|
|
</select> |
|
|
<select id="selectGroup" resultType="com.ccsens.mt.bean.vo.TableVo$CompeteJoin" parameterType="java.util.Map"> |
|
|
<select id="selectGroup" resultType="com.ccsens.mt.bean.vo.TableVo$CompeteJoin" parameterType="java.util.Map"> |
|
|
SELECT |
|
|
SELECT |
|
@ -147,13 +147,10 @@ |
|
|
LEFT JOIN t_compete_player tcp on tcp.id = tctm.player_id |
|
|
LEFT JOIN t_compete_player tcp on tcp.id = tctm.player_id |
|
|
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id |
|
|
LEFT JOIN t_compete_company tcc on tcc.id = tcp.company_id |
|
|
LEFT JOIN t_compete_group tcg on tcg.id = tcp.compete_group_id |
|
|
LEFT JOIN t_compete_group tcg on tcg.id = tcp.compete_group_id |
|
|
LEFT JOIN t_compete_time tctt on tctt.type = tcpro.type |
|
|
|
|
|
WHERE |
|
|
WHERE |
|
|
<if test="competeTimeId != null"> |
|
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|
|
tctt.id = #{competeTimeId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="projectId != null"> |
|
|
<if test="projectId != null"> |
|
|
and tcpro.id = #{projectId} |
|
|
tcpro.id = #{projectId} |
|
|
</if> |
|
|
</if> |
|
|
<if test="groupId != null"> |
|
|
<if test="groupId != null"> |
|
|
and tcg.id = #{groupId} |
|
|
and tcg.id = #{groupId} |
|
@ -167,13 +164,16 @@ |
|
|
<if test="idCard != null and idCard != ''"> |
|
|
<if test="idCard != null and idCard != ''"> |
|
|
and tcp.id_card = #{idCard} |
|
|
and tcp.id_card = #{idCard} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
and tcpro.type=0 |
|
|
|
|
|
and tcpro.`level` =2 |
|
|
|
|
|
and tcpro.team=1 |
|
|
and tcpro.rec_status = 0 |
|
|
and tcpro.rec_status = 0 |
|
|
and tctm.rec_status = 0 |
|
|
and tctm.rec_status = 0 |
|
|
and tcp.rec_status = 0 |
|
|
and tcp.rec_status = 0 |
|
|
and tcc.rec_status = 0 |
|
|
and tcc.rec_status = 0 |
|
|
and tcg.rec_status = 0 |
|
|
and tcg.rec_status = 0 |
|
|
and tct.rec_status = 0 |
|
|
and tct.rec_status = 0 |
|
|
and tctt.rec_status = 0 |
|
|
</trim> |
|
|
</select> |
|
|
</select> |
|
|
<select id="queryProjectConfig" resultType="com.ccsens.mt.bean.vo.TableVo$CompeteProjectConfig"> |
|
|
<select id="queryProjectConfig" resultType="com.ccsens.mt.bean.vo.TableVo$CompeteProjectConfig"> |
|
|
SELECT |
|
|
SELECT |
|
|