洪城义警-正式版后台
Administrator
2022-06-28 aacf24db4518ee248b9ebda389312ab7dc4e564e
src/main/java/org/springblade/modules/taskqd/mapper/TaskqdMapper.xml
@@ -73,7 +73,7 @@
    <!--任务统计-->
    <select id="selectList" resultMap="taskResultMap">
        select jnum, num, serid, team
        select jnum, num, serid, team ,time,endtime
        from sys_taskqd
        where id = #{id}
    </select>
@@ -92,6 +92,15 @@
        WHERE
            serid LIKE concat("%",#{id},"%")
            AND ( rtype = "0" OR rtype = "2" )
    </select>
    <select id="allTask" resultType="java.util.HashMap">
        SELECT
        *
        FROM
        sys_taskqd
        WHERE 1 = 1
        AND ( rtype = "0" OR rtype = "2" )
    </select>
    <select id="queryReceiver" resultType="java.util.HashMap">
@@ -127,9 +136,10 @@
                qd.rtype = "2"
                and qd.tasktype=#{tasktype}
                and (!find_in_set(#{serid}, serid) OR serid IS NULL )
                and (j.id =#{jurisdiction} or
                and
                ((j.id =#{jurisdiction} or
                j.parent_id = #{jurisdiction}) or (j.id =#{workjurisdiction} or
                j.parent_id = #{workjurisdiction})
                j.parent_id = #{workjurisdiction}))
            </if>
            ) A LEFT JOIN (SELECT
            COUNT(*)
@@ -145,10 +155,10 @@
           (!find_in_set(#{serid}
            , serid)
           OR serid IS NULL )
          and (j.id =#{jurisdiction}
          and ((j.id =#{jurisdiction}
           or j.parent_id = #{jurisdiction})
           or (j.id =#{workjurisdiction}
           or j.parent_id = #{workjurisdiction})
           or j.parent_id = #{workjurisdiction}))
        GROUP BY tasktype
    </select>