|
|
|
@ -48,11 +48,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<choose> |
|
|
|
<choose> |
|
|
|
<when test="countMails != null"> |
|
|
|
<when test="countMails != null"> |
|
|
|
m.contact_name,m.contact_phone,m.contact_id_card,m.contact_sex,m.content,m.source,m.mail_time,m.id,m.mail_state, |
|
|
|
m.contact_name,m.contact_phone,m.contact_id_card,m.contact_sex,m.content,m.source,m.mail_time,m.id,m.mail_state, |
|
|
|
m.mail_category ,m.mail_level,m.three_dept_id,m.three_dept_name, m.second_dept_name, m.flow_key,m.flow_before_name,m.mail_labels,m.flow_name,m.current_operator, |
|
|
|
m.mail_category ,m.mail_first_category ,m.mail_level,m.three_dept_id,m.three_dept_name, m.second_dept_name, m.flow_key,m.flow_before_name, |
|
|
|
|
|
|
|
m.mail_labels,m.flow_name,m.current_operator, |
|
|
|
m.flow_limited_last_handler_time,m.second_dept_id,m.mail_first_category,m.mail_second_category,m.mail_three_category, |
|
|
|
m.flow_limited_last_handler_time,m.second_dept_id,m.mail_first_category,m.mail_second_category,m.mail_three_category, |
|
|
|
f.limited_time,m.flow_limited_last_handler_time,m.extension_flag, |
|
|
|
f.limited_time,m.flow_limited_last_handler_time,m.extension_flag, |
|
|
|
m.extension_days, |
|
|
|
m.extension_days, max_w.create_time AS create_time |
|
|
|
max_w.create_time AS create_time |
|
|
|
|
|
|
|
from mail m |
|
|
|
from mail m |
|
|
|
</when> |
|
|
|
</when> |
|
|
|
<otherwise> |
|
|
|
<otherwise> |
|
|
|
@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
COALESCE(a.contact_id_card, ms.contact_id_card) AS contact_id_card,COALESCE(a.contact_sex, ms.contact_sex) AS contact_sex, |
|
|
|
COALESCE(a.contact_id_card, ms.contact_id_card) AS contact_id_card,COALESCE(a.contact_sex, ms.contact_sex) AS contact_sex, |
|
|
|
COALESCE(a.content, ms.content) AS content,COALESCE(a.source, ms.source) AS source, |
|
|
|
COALESCE(a.content, ms.content) AS content,COALESCE(a.source, ms.source) AS source, |
|
|
|
COALESCE(a.mail_time, ms.mail_time) AS mail_time,COALESCE(a.id, ms.id) AS id, |
|
|
|
COALESCE(a.mail_time, ms.mail_time) AS mail_time,COALESCE(a.id, ms.id) AS id, |
|
|
|
a.mail_state,a.mail_category,a.mail_level,a.three_dept_id,a.three_dept_name, a.second_dept_name, a.flow_key,a.flow_before_name, |
|
|
|
a.mail_state,a.mail_category, a.mail_level,a.three_dept_id,a.three_dept_name, a.second_dept_name, a.flow_key,a.flow_before_name, |
|
|
|
a.mail_labels,a.flow_name,a.current_operator,a.flow_limited_last_handler_time,a.second_dept_id,a.mail_first_category, |
|
|
|
a.mail_labels,a.flow_name,a.current_operator,a.flow_limited_last_handler_time,a.second_dept_id,a.mail_first_category, |
|
|
|
a.mail_second_category,a.mail_three_category,a.flow_limited_last_handler_time,a.extension_flag, |
|
|
|
a.mail_second_category,a.mail_three_category,a.flow_limited_last_handler_time,a.extension_flag, |
|
|
|
a.extension_days, |
|
|
|
a.extension_days, |
|
|
|
@ -74,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
a.verify_is_true, |
|
|
|
a.verify_is_true, |
|
|
|
a.verify_need_accountability, |
|
|
|
a.verify_need_accountability, |
|
|
|
a.simple_flow_flag, |
|
|
|
a.simple_flow_flag, |
|
|
|
|
|
|
|
a.interview_is_leader, |
|
|
|
ms.state |
|
|
|
ms.state |
|
|
|
FROM |
|
|
|
FROM |
|
|
|
mail_source ms |
|
|
|
mail_source ms |
|
|
|
|