|
|
@ -108,30 +108,30 @@ |
|
|
|
LEFT JOIN t_compete_group tcg on tcg.id = tcp.compete_group_id |
|
|
|
WHERE |
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|
|
|
<if test="projectId != null"> |
|
|
|
tcpro.id = #{projectId} |
|
|
|
</if> |
|
|
|
<if test="groupId != null"> |
|
|
|
and tcg.id = #{groupId} |
|
|
|
</if> |
|
|
|
<if test="companyId != null"> |
|
|
|
and tcc.id = #{companyId} |
|
|
|
</if> |
|
|
|
<if test="name != null and name != ''"> |
|
|
|
and tcp.name like concat('%',#{name, jdbcType=VARCHAR},'%') |
|
|
|
</if> |
|
|
|
<if test="idCard != null and idCard != ''"> |
|
|
|
and tcp.id_card = #{idCard} |
|
|
|
</if> |
|
|
|
and tcpro.type=0 |
|
|
|
and tcpro.`level` =2 |
|
|
|
and tcpro.team=1 |
|
|
|
and tcpro.rec_status = 0 |
|
|
|
and tctm.rec_status = 0 |
|
|
|
and tcp.rec_status = 0 |
|
|
|
and tcc.rec_status = 0 |
|
|
|
and tcg.rec_status = 0 |
|
|
|
and tct.rec_status = 0 |
|
|
|
<if test="projectId != null"> |
|
|
|
tcpro.id = #{projectId} |
|
|
|
</if> |
|
|
|
<if test="groupId != null"> |
|
|
|
and tcg.id = #{groupId} |
|
|
|
</if> |
|
|
|
<if test="companyId != null"> |
|
|
|
and tcc.id = #{companyId} |
|
|
|
</if> |
|
|
|
<if test="name != null and name != ''"> |
|
|
|
and tcp.name like concat('%',#{name, jdbcType=VARCHAR},'%') |
|
|
|
</if> |
|
|
|
<if test="idCard != null and idCard != ''"> |
|
|
|
and tcp.id_card = #{idCard} |
|
|
|
</if> |
|
|
|
and tcpro.type=0 |
|
|
|
and tcpro.`level` =2 |
|
|
|
and tcpro.team=1 |
|
|
|
and tcpro.rec_status = 0 |
|
|
|
and tctm.rec_status = 0 |
|
|
|
and tcp.rec_status = 0 |
|
|
|
and tcc.rec_status = 0 |
|
|
|
and tcg.rec_status = 0 |
|
|
|
and tct.rec_status = 0 |
|
|
|
</trim> |
|
|
|
UNION |
|
|
|
SELECT |
|
|
|