Browse Source

BUG修复

master
wxc 2 years ago
parent
commit
aa0254aa12
  1. 6
      mailbox-lan/src/main/java/com/biutag/lan/domain/MailReturn.java
  2. 3
      mailbox-lan/src/main/java/com/biutag/lan/flow/node/CountersignFlow.java
  3. 1
      mailbox-lan/src/main/java/com/biutag/lan/flow/node/FirstApprovalFlow.java
  4. 2
      mailbox-outer/src/main/java/com/biutag/outer/OuterApplication.java

6
mailbox-lan/src/main/java/com/biutag/lan/domain/MailReturn.java

@ -15,14 +15,17 @@ public class MailReturn {
@TableId(type = IdType.AUTO)
private Integer id;
/**
*
*/
private String mailId;
/**
* 退回原因
*/
private String reason;
/**
*
*/
@ -37,12 +40,15 @@ public class MailReturn {
*
*/
private Integer handlerDeptId;
/**
*
*/
private String handlerDeptName;
/**
*
*/
private LocalDateTime createTime;
}

3
mailbox-lan/src/main/java/com/biutag/lan/flow/node/CountersignFlow.java

@ -11,6 +11,7 @@ import org.springframework.stereotype.Component;
import org.springframework.util.Assert;
import java.time.LocalDateTime;
import java.util.Comparator;
import java.util.List;
import java.util.Optional;
@ -53,7 +54,7 @@ public class CountersignFlow extends Flow {
return null;
}
List<MailFlow> mailFlows = mailFlowService.list(mailId);
MailFlow mailFlow = mailFlows.stream().filter(item -> item.getFlowAfterName().equals("发起会签")).findFirst().get();
MailFlow mailFlow = mailFlows.stream().sorted(Comparator.comparing(MailFlow::getCreateTime).reversed()).filter(item -> item.getFlowAfterName().equals("发起会签")).findFirst().get();
List<FlowNode> flowNodes = flowNodeService.list();
String flowBeforeName = flowNodes.stream().filter(item -> item.getKey().equals(mailFlow.getFlowKey())).findFirst().map(FlowNode::getBeforeName).get();
// 会签完成

1
mailbox-lan/src/main/java/com/biutag/lan/flow/node/FirstApprovalFlow.java

@ -95,7 +95,6 @@ public class FirstApprovalFlow extends Flow {
public Flow mailReturn(String mailId, JSONObject data) {
LocalDateTime now = LocalDateTime.now();
String returnOperate = data.getString("returnOperate");
Assert.hasText(returnOperate, "参数错误");
String reason = data.getString("reason");
Assert.hasText(reason, "参数错误");
Mail mail = mailService.getById(mailId);

2
mailbox-outer/src/main/java/com/biutag/outer/OuterApplication.java

@ -3,7 +3,9 @@ package com.biutag.outer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
import org.springframework.scheduling.annotation.EnableScheduling;
@EnableScheduling
@SpringBootApplication(exclude = {RedisRepositoriesAutoConfiguration.class})
public class OuterApplication {

Loading…
Cancel
Save