Commit e9206265 authored by fangxinjiang's avatar fangxinjiang

代码优化--测试中-fxj

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