|
|
|
|
@ -12,6 +12,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
|
import com.biutag.constants.AppConstants; |
|
|
|
|
import com.biutag.entity.setting.DictData; |
|
|
|
|
import com.biutag.entity.system.Dept; |
|
|
|
|
import com.biutag.entity.system.PoliceDepart; |
|
|
|
|
import com.biutag.enums.DetermineType; |
|
|
|
|
import com.biutag.enums.MailState; |
|
|
|
|
import com.biutag.enums.RoleEnum; |
|
|
|
|
@ -30,6 +31,8 @@ import com.biutag.lan.mapper.MailMapper;
|
|
|
|
|
import com.biutag.lan.mapper.WorkMapper; |
|
|
|
|
import com.biutag.lan.domain.validate.commons.MailIdValidate; |
|
|
|
|
import com.biutag.mapper.MailNlpMapper; |
|
|
|
|
import com.biutag.mapper.system.DeptMapper; |
|
|
|
|
import com.biutag.mapper.system.PoliceDepartMapper; |
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
@ -63,6 +66,8 @@ public class MailService extends ServiceImpl<MailMapper, Mail> {
|
|
|
|
|
|
|
|
|
|
private final IDeptService deptService; |
|
|
|
|
|
|
|
|
|
private final DeptMapper deptMapper; |
|
|
|
|
|
|
|
|
|
private final MailReturnService mailReturnService; |
|
|
|
|
|
|
|
|
|
private final MailExtensionApprovalService mailExtensionApprovalService; |
|
|
|
|
@ -100,6 +105,12 @@ public class MailService extends ServiceImpl<MailMapper, Mail> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Mail mail = getByMailSource(mailSource); |
|
|
|
|
if (Objects.nonNull(mail.getSecondDeptId())) { |
|
|
|
|
mail.setSecondDeptName(deptMapper.selectById(mail.getSecondDeptId()).getName()); |
|
|
|
|
} |
|
|
|
|
if (Objects.nonNull(mail.getThreeDeptId())) { |
|
|
|
|
mail.setThreeDeptName(deptMapper.selectById(mail.getThreeDeptId()).getName()); |
|
|
|
|
} |
|
|
|
|
Flow flow = getFlow(mailSource.getSignFlag(), mail.getFlowKey()); |
|
|
|
|
|
|
|
|
|
List<MailFlow> flows = mailFlowService.list(mailId) |
|
|
|
|
|