Commit d8be4d4e authored by fangxinjiang's avatar fangxinjiang

拒绝入职优化-fxj

parent bcd4e008
......@@ -420,7 +420,7 @@
if(#{type} = '1',concat('自动化手动-',a.customer_username),concat('自动化自动-',a.customer_username)) preName
FROM t_employee_contract_pre a,(select @i:=0) as itable
<where>
1=1
1=1 and a.IS_REFUSE ='1'
AND a.id in
<foreach item="idStr" index="index" collection="idList" open="(" separator="," close=")">
#{idStr}
......@@ -436,7 +436,7 @@
SELECT
<include refid="Base_Column_List"/>
FROM t_employee_contract_pre a
where a.process_status = '0' and a.expected_confirm_time is not null
where a.process_status = '0' and a.expected_confirm_time is not null and a.IS_REFUSE ='1'
and DATE_FORMAT(a.expected_confirm_time,"%Y-%m-%d") <![CDATA[ <= ]]> CURDATE()
group by a.customer_user_loginname
</select>
......
......@@ -312,7 +312,7 @@
if(a.is_address = '0','是',if(a.is_address = '1','否','')) as is_address
FROM t_employee_insurance_pre a
<where>
1=1
1=1 and a.IS_REFUSE = '1'
<include refid="tEmployeeInsurancePre_where"/>
</where>
order by a.create_time desc
......@@ -333,6 +333,6 @@
SELECT
id
FROM t_employee_insurance_pre a
where a.process_status in ('0','1','2','5') and DATE_FORMAT(a.expected_collection_time,"%Y-%m-%d") <![CDATA[ <= ]]> CURDATE()
where a.process_status in ('0','1','2','5') and a.IS_REFUSE = '1' and DATE_FORMAT(a.expected_collection_time,"%Y-%m-%d") <![CDATA[ <= ]]> CURDATE()
</select>
</mapper>
......@@ -459,7 +459,7 @@
<!--huych:跨库建档案的合同视图,因为需要查询合同的最新状态,合同表只用到身份证和项目编码两个字段,跨库查效率较高,如果后期档案改库名需要调整这块代码-->
left join view_contract b on a.EMP_IDCARD = b.EMP_IDCARD and a.DEPT_NO = b.DEPT_NO
<where>
a.DELETE_FLAG = '0'
a.DELETE_FLAG = '0' and a.IS_REFUSE='1'
<include refid="tDispatchInfoPre_where"/>
</where>
group by a.id
......@@ -473,7 +473,7 @@
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'
1=1 and a.type_sub = '0' and a.IS_REFUSE='1'
<include refid="tDispatchInfoPre_where"/>
</where>
group by a.id
......@@ -486,7 +486,7 @@
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'
1=1 and a.type_sub = '1' and a.IS_REFUSE='1'
and a.DELETE_FLAG = '0'
<include refid="tDispatchInfoPre_where"/>
</where>
......@@ -602,7 +602,7 @@
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>
a.DELETE_FLAG = '0'
a.DELETE_FLAG = '0' and a.IS_REFUSE='1'
<include refid="tDispatchInfoPre_other_where"/>
</where>
GROUP BY a.id
......@@ -617,7 +617,7 @@
,a.FUND_START_DATE
FROM t_dispatch_info_pre a
<where>
a.DELETE_FLAG = '0'
a.DELETE_FLAG = '0' and a.IS_REFUSE='1'
<include refid="tDispatchInfoPre_other_where"/>
</where>
order by a.create_time desc
......@@ -652,7 +652,7 @@
if(#{type} = '1',concat('自动化手动-',a.customer_username),concat('自动化自动-',a.customer_username)) preName
FROM t_dispatch_info_pre a,(select @i:=0) as itable
<where>
1=1
1=1 and a.IS_REFUSE='1'
AND a.id in
<foreach item="idStr" index="index" collection="idList" open="(" separator="," close=")">
#{idStr}
......@@ -689,7 +689,7 @@
) c on c.DEPART_NAME = a.PROVIDENT_HOUSEHOLD_NAME
,(select @i:=0) as itable
<where>
1=1
1=1 and a.IS_REFUSE='1'
AND a.id in
<foreach item="idStr" index="index" collection="idList" open="(" separator="," close=")">
#{idStr}
......@@ -708,7 +708,7 @@
where
a.expected_collection_time is not null and type_sub = '0'
and DATE_FORMAT(a.expected_collection_time,"%Y-%m-%d") <![CDATA[ <= ]]> CURDATE()
and a.process_status = '0'
and a.process_status = '0' and a.IS_REFUSE='1'
group by a.customer_user_login_name
</select>
......@@ -719,7 +719,7 @@
where
a.expected_collection_time is not null and type_sub = '1'
and DATE_FORMAT(a.expected_collection_time,"%Y-%m-%d") <![CDATA[ <= ]]> CURDATE()
and a.process_status = '0'
and a.process_status = '0' and a.IS_REFUSE='1'
group by a.customer_user_login_name
</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