mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
fix: add amount UI to contract lines and reason code to SN activation
This commit is contained in:
+3
@@ -243,6 +243,9 @@ public class LicenseSnService {
|
||||
}
|
||||
String oldJson = toJson(Map.of("status", from.name()));
|
||||
row.setStatus(to.name());
|
||||
if (to == LicenseSnStatus.ACTIVATED && request.getReasonCode() != null) {
|
||||
row.setActivationRemark(request.getReasonCode());
|
||||
}
|
||||
row.setUpdatedAt(OffsetDateTime.now(ZoneOffset.UTC));
|
||||
licenseSnMapper.updateById(row);
|
||||
auditService.record(
|
||||
|
||||
+10
@@ -7,6 +7,8 @@ public class LicenseSnStatusPatchRequest {
|
||||
@NotBlank
|
||||
private String status;
|
||||
|
||||
private String reasonCode;
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
@@ -14,4 +16,12 @@ public class LicenseSnStatusPatchRequest {
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getReasonCode() {
|
||||
return reasonCode;
|
||||
}
|
||||
|
||||
public void setReasonCode(String reasonCode) {
|
||||
this.reasonCode = reasonCode;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user