|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
|