Browse Source

信件查询当前处理对象条目添加

master
21819 2 years ago
parent
commit
27c6f17f6d
  1. 4
      mailbox-lan/src/main/java/com/biutag/lan/domain/vo/QueryMailVo.java
  2. 16
      mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java

4
mailbox-lan/src/main/java/com/biutag/lan/domain/vo/QueryMailVo.java

@ -108,6 +108,10 @@ public class QueryMailVo {
* 处理部门 * 处理部门
*/ */
private Integer handlingDept; private Integer handlingDept;
/**
* 处理部门名称
*/
private String handlingDeptName;
/** /**
* 现在登陆的部门 * 现在登陆的部门
*/ */

16
mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java

@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.biutag.core.AjaxResult; import com.biutag.core.AjaxResult;
import com.biutag.entity.system.Dept; import com.biutag.entity.system.Dept;
import com.biutag.entity.system.PoliceUser;
import com.biutag.enums.RoleEnum; import com.biutag.enums.RoleEnum;
import com.biutag.lan.config.AdminThreadLocal; import com.biutag.lan.config.AdminThreadLocal;
import com.biutag.lan.domain.*; import com.biutag.lan.domain.*;
@ -22,10 +23,7 @@ import com.biutag.lan.flow.Flow;
import com.biutag.lan.flow.FlowNameEnum; import com.biutag.lan.flow.FlowNameEnum;
import com.biutag.lan.flow.FlowNodeEnum; import com.biutag.lan.flow.FlowNodeEnum;
import com.biutag.lan.flow.node.FirstSignFlow; import com.biutag.lan.flow.node.FirstSignFlow;
import com.biutag.lan.mapper.MailCategoryMapper; import com.biutag.lan.mapper.*;
import com.biutag.lan.mapper.MailLabelMapper;
import com.biutag.lan.mapper.MailMapper;
import com.biutag.lan.mapper.WorkMapper;
import com.biutag.mapper.system.DeptMapper; import com.biutag.mapper.system.DeptMapper;
import jakarta.annotation.Resource; import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
@ -62,6 +60,9 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> {
@Resource @Resource
private DeptMapper deptMapper; private DeptMapper deptMapper;
@Resource
private PoliceUserMapper policeUserMapper;
private final IHolidayService holidayService; private final IHolidayService holidayService;
public boolean saveBatch(List<MailSource> mailSources) { public boolean saveBatch(List<MailSource> mailSources) {
@ -365,6 +366,13 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> {
} }
workVo.setMailLabels(labelNamesStr.substring(0, labelNamesStr.length() - 1)); workVo.setMailLabels(labelNamesStr.substring(0, labelNamesStr.length() - 1));
} }
try {
String handlingEmpNo = workMapper.selectList(new QueryWrapper<Work>().eq("mail_id", workVo.getId()).orderByDesc("update_time"))
.get(0).getPoliceEmpNo();
workVo.setHandlingDeptName(policeUserMapper.selectList(new QueryWrapper<PoliceUser>().eq("emp_no", handlingEmpNo)).get(0).getDeptName());
} catch (Exception e) {
workVo.setHandlingDeptName("无");
}
} }
return result; return result;
} }

Loading…
Cancel
Save