Commit c1679bff authored by 廖旭伟's avatar 廖旭伟

申请事项分组查询接口增加条件

parent 40fa64c6
......@@ -11,12 +11,18 @@
deptName,
count(id) AS `count`
FROM
mortals_sys_matter_apply
mortals_sys_matter_apply a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
GROUP BY
deptId
ORDER BY
deptId
) as a
) as t
</select>
......@@ -31,12 +37,18 @@
deptName,
count(id) AS `count`
FROM
mortals_sys_matter_apply
mortals_sys_matter_apply a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
GROUP BY
deptId
ORDER BY
deptId
) as a
) as t
</select>
......@@ -49,12 +61,18 @@
themeName,
count(id) AS `count`
FROM
mortals_sys_matter_apply
mortals_sys_matter_apply a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
GROUP BY
themeCode
ORDER BY
themeCode
) as a
) as t
</select>
......@@ -69,11 +87,17 @@
themeName,
count(id) AS `count`
FROM
mortals_sys_matter_apply
mortals_sys_matter_apply a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
GROUP BY
themeCode
ORDER BY
themeCode
) as a
) as t
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment