|
|
|
|
@ -248,6 +248,10 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> {
|
|
|
|
|
.eq(StrUtil.isNotBlank(todoQuery.getMailState()), "m.mail_state", todoQuery.getMailState()) |
|
|
|
|
.like(StrUtil.isNotBlank(todoQuery.getThreeDeptName()), "m.three_dept_name", todoQuery.getThreeDeptName()) |
|
|
|
|
.eq(StrUtil.isNotBlank(todoQuery.getFlowKey()), "m.flow_key", todoQuery.getFlowKey()) |
|
|
|
|
.like(StrUtil.isNotBlank(todoQuery.getContactName()), "w.contact_name", todoQuery.getContactName()) |
|
|
|
|
.like(StrUtil.isNotBlank(todoQuery.getContactIdCard()), "w.contact_id_card", todoQuery.getContactIdCard()) |
|
|
|
|
.like(StrUtil.isNotBlank(todoQuery.getContactPhone()), "w.contact_phone", todoQuery.getContactPhone()) |
|
|
|
|
.eq(StrUtil.isNotBlank(todoQuery.getFlowName()), "w.flow_name", todoQuery.getFlowName()) |
|
|
|
|
.and(query -> { |
|
|
|
|
query.isNull("m.flow_key").or().ne("m.flow_key", FlowNodeEnum.COMPLETION.getKey()); |
|
|
|
|
}); |
|
|
|
|
|