|
|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.biutag.lan.service; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.biutag.core.AjaxResult; |
|
|
|
|
import com.biutag.entity.system.Dept; |
|
|
|
|
import com.biutag.lan.config.AdminThreadLocal; |
|
|
|
|
@ -26,12 +27,17 @@ public class MailAppealService {
|
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
public AjaxResult<Void> launchAppeal(MailAppeal appeal) { |
|
|
|
|
appeal.setHandlingDept(AdminThreadLocal.getDeptId()) |
|
|
|
|
.setAppealStatus("1") |
|
|
|
|
.setThreeDept(AdminThreadLocal.getDeptId()); |
|
|
|
|
long count = mailAppealMapper.selectCount(new LambdaQueryWrapper<MailAppeal>().eq(MailAppeal::getMailId, appeal.getMailId())); |
|
|
|
|
if (count > 0) { |
|
|
|
|
return AjaxResult.failed("此邮件您已发起过申诉,请勿重复申诉"); |
|
|
|
|
} else { |
|
|
|
|
appeal.setHandlingDept(AdminThreadLocal.getDeptId()) |
|
|
|
|
.setAppealState("1") |
|
|
|
|
.setThreeDept(AdminThreadLocal.getDeptId()); |
|
|
|
|
|
|
|
|
|
mailAppealMapper.insert(appeal); |
|
|
|
|
return AjaxResult.success(); |
|
|
|
|
mailAppealMapper.insert(appeal); |
|
|
|
|
return AjaxResult.success(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
@ -65,7 +71,7 @@ public class MailAppealService {
|
|
|
|
|
} |
|
|
|
|
appeal.setHandlingDept(deptId) |
|
|
|
|
.setOverruleReason(overruleReason) |
|
|
|
|
.setAppealStatus("3"); |
|
|
|
|
.setAppealState("3"); |
|
|
|
|
|
|
|
|
|
mailAppealMapper.updateById(appeal); |
|
|
|
|
return AjaxResult.success(); |
|
|
|
|
@ -84,7 +90,7 @@ public class MailAppealService {
|
|
|
|
|
appeal.setHandlingDept(deptId); |
|
|
|
|
switch (dept.getLevel()) { |
|
|
|
|
case 1: |
|
|
|
|
appeal.setStep("3").setAppealStatus("2"); |
|
|
|
|
appeal.setStep("3").setAppealState("2"); |
|
|
|
|
break; |
|
|
|
|
case 2: |
|
|
|
|
appeal.setSecondDept(deptId).setStep("2"); |
|
|
|
|
|