REQ-3581: 该签署位已签署, 无法再次签署
This commit is contained in:
parent
911cb2d078
commit
07f7756be6
@ -73,7 +73,7 @@ public class Approver implements OrgPerson {
|
||||
return internal;
|
||||
}
|
||||
|
||||
public boolean isSignPersonPresent() {
|
||||
public boolean isSignPersonPreset() {
|
||||
return signPerson != null;
|
||||
}
|
||||
|
||||
|
||||
@ -18,7 +18,6 @@ import lombok.Setter;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
@ -166,7 +165,7 @@ public class EssContract extends BaseEntity<EssContract> {
|
||||
public boolean isApproversPreset() {
|
||||
if (approvers == null)
|
||||
return false;
|
||||
return approvers.stream().allMatch(Approver::isSignPersonPresent);
|
||||
return approvers.stream().allMatch(Approver::isSignPersonPreset);
|
||||
}
|
||||
|
||||
public boolean shouldDownloadContract() {
|
||||
|
||||
@ -212,12 +212,12 @@ public class EssClient implements InitializingBean {
|
||||
String customerData) throws TencentCloudSDKException {
|
||||
OrgProfiles orgProfiles = OrgProfiles.wrap(essSupport
|
||||
.getOrgProfiles(contract.getApprovers().stream()
|
||||
.filter(Approver::isSignPersonPresent)
|
||||
.filter(Approver::isSignPersonPreset)
|
||||
.map(Approver::getOuId)
|
||||
.collect(toList())));
|
||||
PersonProfiles personProfiles = PersonProfiles.wrap(essSupport
|
||||
.getPersonProfiles(contract.getApprovers().stream()
|
||||
.filter(Approver::isSignPersonPresent)
|
||||
.filter(Approver::isSignPersonPreset)
|
||||
.map(Approver::getPersonId)
|
||||
.collect(toList())));
|
||||
ArrayList<FlowApproverInfo> approvers = new ArrayList<>();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user