Commit 1829ede2 authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent 65dcee8b
......@@ -195,6 +195,8 @@
<!--tCompleteMonitor简单分页查询-->
<select id="getAllLackArchivesExportCount" resultType="java.lang.Long">
SELECT
count(1) from (
SELECT
count(1)
FROM t_employee_project a
......@@ -204,6 +206,7 @@
a.delete_flag = '0' and a.IS_COMPLETE = '1'
<include refid="employeeRegistrationPre_where"/>
</where>
)
GROUP BY a.id
</select>
......
......@@ -462,15 +462,22 @@
<select id="selectExportCount" resultType="java.lang.Long">
SELECT
count(1)
from (
SELECT
count(1)
FROM t_dispatch_info_pre a
left join view_contract b on a.EMP_IDCARD = b.EMP_IDCARD and a.DEPT_NO = b.DEPT_NO
<where>
1=1 and a.type_sub = '0'
<include refid="tDispatchInfoPre_where"/>
group by a.id
</where>
) group by a.id
</select>
<select id="selectFundExportCount" resultType="java.lang.Long">
SELECT
count(1)
from (
SELECT
count(1)
FROM t_dispatch_info_pre a
......@@ -479,8 +486,8 @@
1=1 and a.type_sub = '1'
and a.DELETE_FLAG = '0'
<include refid="tDispatchInfoPre_where"/>
group by a.id
</where>
) group by a.id
</select>
<select id="selectFundCount" resultType="java.lang.Long">
......
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