Browse Source

申诉流程初始化

master
21819 2 years ago
parent
commit
f0cad2574c
  1. 2
      mailbox-lan/src/main/java/com/biutag/lan/domain/MailAppeal.java
  2. 12
      mailbox-lan/src/main/java/com/biutag/lan/service/MailAppealService.java

2
mailbox-lan/src/main/java/com/biutag/lan/domain/MailAppeal.java

@ -44,7 +44,7 @@ public class MailAppeal {
/**
* 申诉状态0未审诉1正在申诉2申诉成功3申诉失败
*/
private String appealStatus;
private String appealState;
/**
* 申诉步骤1发起2二级机构3市局
*/

12
mailbox-lan/src/main/java/com/biutag/lan/service/MailAppealService.java

@ -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,13 +27,18 @@ public class MailAppealService {
* @return
*/
public AjaxResult<Void> launchAppeal(MailAppeal appeal) {
long count = mailAppealMapper.selectCount(new LambdaQueryWrapper<MailAppeal>().eq(MailAppeal::getMailId, appeal.getMailId()));
if (count > 0) {
return AjaxResult.failed("此邮件您已发起过申诉,请勿重复申诉");
} else {
appeal.setHandlingDept(AdminThreadLocal.getDeptId())
.setAppealStatus("1")
.setAppealState("1")
.setThreeDept(AdminThreadLocal.getDeptId());
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");

Loading…
Cancel
Save