Commit 56c4c846 authored by hongguangwu's avatar hongguangwu

MVP1.7.17-批量发起,限制状态

parent 0a5f7a78
......@@ -66,6 +66,10 @@ public class EmployeeRegistrationLeaveSearchVo extends EmployeeRegistrationLeave
@TableField(exist = false)
private String[] processStatusArray;
@Schema(description = "是否批量发起派单,若为1,则过滤6大事项的状态,其他传空")
@TableField(exist = false)
private String isDispatch;
/**
* @Author fxj
* 查询数据起
......
......@@ -470,6 +470,17 @@ when '4' then '待减员' when '5' then '待办理' when '6' then '减员中' wh
#{statusStr}
</foreach>
</if>
<if test='employeeRegistrationLeave.isDispatch != null and employeeRegistrationLeave.isDispatch.trim() != ""
and employeeRegistrationLeave.isDispatch.trim() == "1" '>
and (
(a.do_status_social is not null and a.do_status_social in ('2','3','6','9','10')) or
(a.do_status_fund is not null and a.do_status_fund in ('2','3','9','10')) or
(a.do_status_insurance is not null and a.do_status_insurance in ('2','3','9')) or
(a.do_status_contract is not null and a.do_status_contract in ('2','3','10')) or
(a.do_status_project is not null and a.do_status_project in ('2','9')) or
(a.do_status_emp is not null and a.do_status_emp in ('2','9'))
)
</if>
</if>
</where>
ORDER BY b.create_time desc,b.id asc
......
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