pending account terminate feature develop
This commit is contained in:
+11
@@ -332,6 +332,9 @@ public class CurrentAccount extends AbstractAuditableCustom {
|
||||
@Column(name = "is_linking_enable", nullable = false)
|
||||
private boolean shareLinkingEnabled = false;
|
||||
|
||||
@Column(name = "terminate_true", nullable = false, columnDefinition = "boolean default false")
|
||||
private boolean terminateTrue = false;
|
||||
|
||||
|
||||
// Relationships
|
||||
@OneToMany(mappedBy = "currentAccount", cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.LAZY)
|
||||
@@ -442,4 +445,12 @@ public class CurrentAccount extends AbstractAuditableCustom {
|
||||
|
||||
public boolean isShareLinkingEnabled() { return shareLinkingEnabled; }
|
||||
public void setShareLinkingEnabled(boolean shareLinkingEnabled) { this.shareLinkingEnabled = shareLinkingEnabled; }
|
||||
|
||||
public boolean isTerminateTrue() { return terminateTrue; }
|
||||
public void setTerminateTrue(boolean terminateTrue) { this.terminateTrue = terminateTrue; }
|
||||
|
||||
public void terminate() {
|
||||
this.terminateTrue = true;
|
||||
this.statusEnum = 900;
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -40,4 +40,6 @@ public interface CurrentAccountWritePlatformService {
|
||||
CommandProcessingResult modifyApplication(Long accountId, JsonCommand command);
|
||||
|
||||
CommandProcessingResult deleteApplication(Long accountId);
|
||||
|
||||
CommandProcessingResult terminateAccount(Long accountId, JsonCommand command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user