Browse Source

修复待办已办因w.create_time造成的信件重复问题

master
21819 2 years ago
parent
commit
5fbdb67827
  1. 17
      mailbox-lan/src/main/resources/mapper/WorkMapper.xml

17
mailbox-lan/src/main/resources/mapper/WorkMapper.xml

@ -5,16 +5,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.biutag.lan.mapper.WorkMapper">
<select id="selectPageBy" resultType="com.biutag.lan.domain.vo.WorkVo">
select w.id,
w.contact_name,
w.contact_phone,
w.contact_id_card,
w.content,
w.source,
w.mail_time,
w.mail_id,
w.work_type,
w.flow_name,
select w.*,
m.mail_state,
m.mail_category,
m.mail_level,
@ -28,10 +19,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
m.current_operator,
f.limited_time,
m.flow_limited_last_handler_time,
w.create_time,
m.extension_flag,
m.extension_days
from work w
from
(SELECT id, contact_name, contact_phone, contact_id_card, content, source, mail_time, mail_id, work_type, flow_name,
create_time, work_state, sign_role_id, sign_dept_id, police_emp_no, update_time
FROM work GROUP BY id HAVING create_time = MAX(create_time)) as w
left join mail m on w.mail_id = m.id
left join flow_node f on m.flow_key = f.key
${ew.getCustomSqlSegment}

Loading…
Cancel
Save