feat(web): 避免h2的数据库关键字
This commit is contained in:
@@ -45,7 +45,7 @@ import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
|||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
public class CheckOrder extends SimpleEntity {
|
public class CheckOrder extends SimpleEntity {
|
||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
private String key;
|
private String keyword;
|
||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
private String description;
|
private String description;
|
||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
@@ -73,14 +73,14 @@ public class CheckOrder extends SimpleEntity {
|
|||||||
private Boolean over = false;
|
private Boolean over = false;
|
||||||
|
|
||||||
public CheckOrder(
|
public CheckOrder(
|
||||||
String key,
|
String keyword,
|
||||||
String description,
|
String description,
|
||||||
Type type,
|
Type type,
|
||||||
String parameters,
|
String parameters,
|
||||||
String targetClass,
|
String targetClass,
|
||||||
User targetUser
|
User targetUser
|
||||||
) {
|
) {
|
||||||
this.key = key;
|
this.keyword = keyword;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.parameters = parameters;
|
this.parameters = parameters;
|
||||||
@@ -90,14 +90,14 @@ public class CheckOrder extends SimpleEntity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public CheckOrder(
|
public CheckOrder(
|
||||||
String key,
|
String keyword,
|
||||||
String description,
|
String description,
|
||||||
Type type,
|
Type type,
|
||||||
String parameters,
|
String parameters,
|
||||||
String targetClass,
|
String targetClass,
|
||||||
User.Role targetRole
|
User.Role targetRole
|
||||||
) {
|
) {
|
||||||
this.key = key;
|
this.keyword = keyword;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.parameters = parameters;
|
this.parameters = parameters;
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ public class ConfirmationService extends SimpleServiceSupport<Confirmation> impl
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onChecked(CheckOrder order, CheckOrder.Operation operation, ImmutableMap<String, Object> parameters) {
|
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");
|
Long id = (Long) parameters.get("confirmationId");
|
||||||
switch (operation) {
|
switch (operation) {
|
||||||
case APPLY:
|
case APPLY:
|
||||||
|
|||||||
Reference in New Issue
Block a user