Commit e9206265 authored by fangxinjiang's avatar fangxinjiang

代码优化--测试中-fxj

parent 1829ede2
......@@ -196,9 +196,7 @@
<!--tCompleteMonitor简单分页查询-->
<select id="getAllLackArchivesExportCount" resultType="java.lang.Long">
SELECT
count(1) from (
SELECT
count(1)
count(distinct a.id)
FROM t_employee_project a
inner join t_employee_info b on a.EMP_ID = b.id
inner join t_settle_domain c on a.DEPT_NO = c.DEPART_NO
......@@ -206,8 +204,6 @@
a.delete_flag = '0' and a.IS_COMPLETE = '1'
<include refid="employeeRegistrationPre_where"/>
</where>
)
GROUP BY a.id
</select>
......
......@@ -461,10 +461,7 @@
<select id="selectExportCount" resultType="java.lang.Long">
SELECT
count(1)
from (
SELECT
count(1)
count(distinct a.id)
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
......@@ -472,14 +469,10 @@
1=1 and a.type_sub = '0'
<include refid="tDispatchInfoPre_where"/>
</where>
) group by a.id
</select>
<select id="selectFundExportCount" resultType="java.lang.Long">
SELECT
count(1)
from (
SELECT
count(1)
count(distinct a.id)
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>
......@@ -487,7 +480,6 @@
and a.DELETE_FLAG = '0'
<include refid="tDispatchInfoPre_where"/>
</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