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>
<iftest="param.type == 1">
<iftest="param.type == 1">
and now() >= c.openTime and c.deadLine >= now()
and now() >= c.openTime and c.deadLine >= now()
...
@@ -265,7 +262,7 @@
...
@@ -265,7 +262,7 @@
and now() >= c.startTime and c.endTime >= now()
and now() >= c.startTime and c.endTime >= now()
</if>
</if>
<iftest="param.userId > 0">
<iftest="param.userId > 0">
and c.createUserId=#{param.userId} OR (nu.gUserId = #{param.userId} AND nu.gUserId != c.createUserId AND sa.org_id = (SELECT org_id FROM geerunner.sys_admin WHERE registerId=#{param.userId} ))
AND (c.createUserId=#{param.userId} OR cbf.userId = #{param.userId})
</if>
</if>
<iftest="param.userId lt 0">
<iftest="param.userId lt 0">
AND c.createUserId NOT IN (SELECT user_id from gksite.gk_app_info WHERE user_id>0)
AND c.createUserId NOT IN (SELECT user_id from gksite.gk_app_info WHERE user_id>0)