Commit 80677c18 authored by fangxinjiang's avatar fangxinjiang

拒绝入职优化-fxj

parent d8be4d4e
...@@ -459,7 +459,7 @@ ...@@ -459,7 +459,7 @@
<!--huych:跨库建档案的合同视图,因为需要查询合同的最新状态,合同表只用到身份证和项目编码两个字段,跨库查效率较高,如果后期档案改库名需要调整这块代码--> <!--huych:跨库建档案的合同视图,因为需要查询合同的最新状态,合同表只用到身份证和项目编码两个字段,跨库查效率较高,如果后期档案改库名需要调整这块代码-->
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>
a.DELETE_FLAG = '0' and a.IS_REFUSE='1' a.DELETE_FLAG = '0'
<include refid="tDispatchInfoPre_where"/> <include refid="tDispatchInfoPre_where"/>
</where> </where>
group by a.id group by a.id
...@@ -473,7 +473,7 @@ ...@@ -473,7 +473,7 @@
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' and a.IS_REFUSE='1' 1=1 and a.type_sub = '0'
<include refid="tDispatchInfoPre_where"/> <include refid="tDispatchInfoPre_where"/>
</where> </where>
group by a.id group by a.id
...@@ -486,7 +486,7 @@ ...@@ -486,7 +486,7 @@
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 = '1' and a.IS_REFUSE='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"/>
</where> </where>
...@@ -602,7 +602,7 @@ ...@@ -602,7 +602,7 @@
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>
a.DELETE_FLAG = '0' and a.IS_REFUSE='1' a.DELETE_FLAG = '0'
<include refid="tDispatchInfoPre_other_where"/> <include refid="tDispatchInfoPre_other_where"/>
</where> </where>
GROUP BY a.id GROUP BY a.id
...@@ -617,7 +617,7 @@ ...@@ -617,7 +617,7 @@
,a.FUND_START_DATE ,a.FUND_START_DATE
FROM t_dispatch_info_pre a FROM t_dispatch_info_pre a
<where> <where>
a.DELETE_FLAG = '0' and a.IS_REFUSE='1' a.DELETE_FLAG = '0'
<include refid="tDispatchInfoPre_other_where"/> <include refid="tDispatchInfoPre_other_where"/>
</where> </where>
order by a.create_time desc order by a.create_time desc
......
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