case a.process_status when '0' then '已接收' when '1' then '待处理' when '2' then '已处理' when '3' then '拒绝入职' when '5' then '已确认离职' else '-' end process_status,
case a.process_status when '0' then '已接收' when '1' then '待处理' when '2' then '已处理' when '3' then '拒绝入职' when '5' then '已确认离职' else '-' end process_status,
case a.process_status when '0' then '已接收' when '1' then '待处理' when '2' then '已处理' when '3' then '拒绝入职' when '5' then '已确认离职' else '-' end process_status,
<iftest="tEmployeeInsurancePre.isRefuse != null and tEmployeeInsurancePre.isRefuse.trim() != ''">
AND a.IS_REFUSE = #{tEmployeeInsurancePre.isRefuse}
</if>
<iftest="tEmployeeInsurancePre.isLeave != null and tEmployeeInsurancePre.isLeave.trim() != ''">
AND a.IS_LEAVE = #{tEmployeeInsurancePre.isLeave}
</if>
<iftest="tEmployeeInsurancePre.id != null and tEmployeeInsurancePre.id.trim() != ''">
AND a.id = #{tEmployeeInsurancePre.id}
</if>
...
...
@@ -246,7 +249,7 @@
<includerefid="Base_Column_List"/>
FROM t_employee_insurance_pre a
<where>
1=1 and a.IS_REFUSE ='1'
1=1 and a.IS_REFUSE ='1' and a.IS_LEAVE ='1'
<includerefid="tEmployeeInsurancePre_where"/>
</where>
order by a.create_time desc
...
...
@@ -314,7 +317,7 @@
ELSE "" END as error_info
FROM t_employee_insurance_pre a
<where>
1=1 and a.IS_REFUSE ='1'
1=1 and a.IS_REFUSE ='1' and a.IS_LEAVE ='1'
<includerefid="tEmployeeInsurancePre_where"/>
</where>
order by a.create_time desc
...
...
@@ -327,7 +330,7 @@
SELECT
<includerefid="Base_Column_List"/>
FROM t_employee_insurance_pre a
where a.process_status = '0' and a.IS_REFUSE = '1' and DATE_FORMAT(a.expected_collection_time,"%Y-%m-%d") = CURDATE()
where a.process_status = '0' and a.IS_REFUSE ='1' and a.IS_LEAVE ='1' and DATE_FORMAT(a.expected_collection_time,"%Y-%m-%d") = CURDATE()
group by a.customer_user_loginname
</select>
...
...
@@ -336,6 +339,6 @@
id
FROM t_employee_insurance_pre a
<!-- 可发起状态有 0 1 2 5 改为 0 1 2 (待确认、待派单、派单失败) -->
where a.process_status in ('0','1','2') and a.IS_REFUSE = '1' and DATE_FORMAT(a.expected_collection_time,"%Y-%m-%d") <![CDATA[ <= ]]> CURDATE()
where a.process_status in ('0','1','2') and a.IS_REFUSE ='1' and a.IS_LEAVE ='1' and DATE_FORMAT(a.expected_collection_time,"%Y-%m-%d") <![CDATA[ <= ]]> CURDATE()