Commit 926fea5a authored by fangxinjiang's avatar fangxinjiang

待办数量更新-fxj

parent cef00052
......@@ -201,10 +201,9 @@
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
<where>
a.delete_flag = '0' and a.IS_COMPLETE = '1'
a.delete_flag = '0' and a.IS_COMPLETE = '1' and a.project_status = 0
<include refid="employeeRegistrationPre_where"/>
</where>
GROUP BY a.id
</select>
......
......@@ -461,38 +461,36 @@
<select id="selectExportCount" resultType="java.lang.Long">
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>
1=1 and a.type_sub = '0'
<include refid="tDispatchInfoPre_where"/>
group by a.id
</where>
</select>
<select id="selectFundExportCount" resultType="java.lang.Long">
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>
1=1 and a.type_sub = '1'
and a.DELETE_FLAG = '0'
<include refid="tDispatchInfoPre_where"/>
group by a.id
</where>
</select>
<select id="selectFundCount" resultType="java.lang.Long">
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>
1=1 and a.type_sub = '1'
and a.DELETE_FLAG = '0'
<include refid="tDispatchInfoPre_other_where"/>
group by a.id
</where>
</select>
......
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