| | |
| | | <result column="team" property="team"/> |
| | | <result column="iscation" property="iscation"/> |
| | | <result column="publisher" property="publisher"/> |
| | | <result column="fid" property="fid"/> |
| | | <result column="fname" property="fname"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | serid=#{serid} GROUP BY hdid,serid) B ON A.id=B.hdid |
| | | </if> |
| | | <if test="type==1"> |
| | | and id NOT IN ( SELECT id FROM sys_taskqd WHERE find_in_set(#{serid}, serid )) and (j.id =#{jurisdiction} or |
| | | j.parent_id = #{jurisdiction}) AND qd.jnum!=qd.num ) A LEFT JOIN (SELECT |
| | | and id NOT IN ( SELECT id FROM sys_taskqd WHERE find_in_set(#{serid}, serid )) |
| | | <if test="jurisdiction!=null and jurisdiction!=''"> |
| | | and (j.id =#{jurisdiction} or |
| | | j.parent_id = #{jurisdiction}) AND qd.jnum!=qd.num |
| | | </if> |
| | | ) A LEFT JOIN (SELECT |
| | | COUNT(*) |
| | | as num,hdid,serid FROM sys_taskfk WHERE serid=#{serid} GROUP BY hdid,serid) B ON A.id=B.hdid |
| | | </if> |