Commit 1829ede2 authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

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