From 4af59cccb16e848b6ceb21681dedf9efdbe5ccda Mon Sep 17 00:00:00 2001 From: zz Date: Tue, 7 Dec 2021 23:52:43 +0800 Subject: [PATCH] fix jpa primitive type issue --- .../main/java/com/xhpc/common/domain/XhpcTerminal.java | 8 +++++--- .../xhpc-power-pile/src/main/resources/logback.xml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/domain/XhpcTerminal.java b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/domain/XhpcTerminal.java index a53bdde1..375eaf79 100644 --- a/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/domain/XhpcTerminal.java +++ b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/domain/XhpcTerminal.java @@ -67,9 +67,11 @@ public class XhpcTerminal extends BaseEntity { @Column(name = "operator_id_evcs", nullable = true) private String operatorIdEvcs; - /** 充电设备类型 */ + /** + * 充电设备类型 + */ @Column(name = "connector_type", nullable = true) - private int connectorType; + private Integer connectorType; /** * 电桩统计数量 @@ -82,7 +84,7 @@ public class XhpcTerminal extends BaseEntity { return connectorType; } - public void setConnectorType(int connectorType) { + public void setConnectorType(Integer connectorType) { this.connectorType = connectorType; } diff --git a/xhpc-modules/xhpc-power-pile/src/main/resources/logback.xml b/xhpc-modules/xhpc-power-pile/src/main/resources/logback.xml index e8528088..745e4aba 100644 --- a/xhpc-modules/xhpc-power-pile/src/main/resources/logback.xml +++ b/xhpc-modules/xhpc-power-pile/src/main/resources/logback.xml @@ -59,7 +59,7 @@ - +