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