1
0

feat(web): 避免h2的数据库关键字

This commit is contained in:
2024-12-02 16:27:01 +08:00
parent 34e2f340c0
commit e7918f9039
2 changed files with 6 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ import org.springframework.data.jpa.domain.support.AuditingEntityListener;
@NoArgsConstructor
public class CheckOrder extends SimpleEntity {
@Column(nullable = false)
private String key;
private String keyword;
@Column(nullable = false)
private String description;
@Column(nullable = false)
@@ -73,14 +73,14 @@ public class CheckOrder extends SimpleEntity {
private Boolean over = false;
public CheckOrder(
String key,
String keyword,
String description,
Type type,
String parameters,
String targetClass,
User targetUser
) {
this.key = key;
this.keyword = keyword;
this.description = description;
this.type = type;
this.parameters = parameters;
@@ -90,14 +90,14 @@ public class CheckOrder extends SimpleEntity {
}
public CheckOrder(
String key,
String keyword,
String description,
Type type,
String parameters,
String targetClass,
User.Role targetRole
) {
this.key = key;
this.keyword = keyword;
this.description = description;
this.type = type;
this.parameters = parameters;

View File

@@ -69,7 +69,7 @@ public class ConfirmationService extends SimpleServiceSupport<Confirmation> impl
@Override
public void onChecked(CheckOrder order, CheckOrder.Operation operation, ImmutableMap<String, Object> parameters) {
if (StrUtil.equals(order.getKey(), "confirmation_check")) {
if (StrUtil.equals(order.getKeyword(), "confirmation_check")) {
Long id = (Long) parameters.get("confirmationId");
switch (operation) {
case APPLY: