Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-evbusiness-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a5c00490
authored
Nov 16, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]api注释提交
1 parent
09a1339c
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
52 additions
and
6 deletions
platform-evbusiness-api/pom.xml
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/entity/ChargingOrder.java
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/entity/ChargingOrderDetail.java
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/entity/ChargingOrderMonitorinfo.java
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/model/ocpp16/order/ClosePileBO.java
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/model/ocpp16/order/OrderCreateBO.java
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/model/ocpp16/order/OrderSearch.java
platform-evbusiness/pom.xml
platform-evbusiness-api/pom.xml
View file @
a5c0049
...
@@ -34,6 +34,10 @@
...
@@ -34,6 +34,10 @@
<artifactId>
spring-cloud-starter-loadbalancer
</artifactId>
<artifactId>
spring-cloud-starter-loadbalancer
</artifactId>
<version>
3.1.0
</version>
<version>
3.1.0
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.glsx
</groupId>
<artifactId>
rest-admin-swagger3
</artifactId>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/entity/ChargingOrder.java
View file @
a5c0049
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
entity
;
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
entity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
javax.persistence.*
;
import
javax.persistence.*
;
...
@@ -12,87 +13,102 @@ public class ChargingOrder {
...
@@ -12,87 +13,102 @@ public class ChargingOrder {
private
Integer
id
;
private
Integer
id
;
@Column
(
name
=
"order_code"
)
@Column
(
name
=
"order_code"
)
@Schema
(
description
=
"订单号"
)
private
String
orderCode
;
private
String
orderCode
;
/**
/**
* 充电状态 1.进行中 2.待支付 3.已支付
* 充电状态 1.进行中 2.待支付 3.已支付
*/
*/
@Column
(
name
=
"order_status"
)
@Column
(
name
=
"order_status"
)
@Schema
(
description
=
"充电状态 1.进行中 2.待支付 3.已支付"
)
private
Byte
orderStatus
;
private
Byte
orderStatus
;
/**
/**
* 订单来源
* 订单来源
*/
*/
@Column
(
name
=
"order_source"
)
@Column
(
name
=
"order_source"
)
@Schema
(
description
=
"订单来源 1.小程序"
)
private
Byte
orderSource
;
private
Byte
orderSource
;
/**
/**
* 枪id
* 枪id
*/
*/
@Column
(
name
=
"spear_id"
)
@Column
(
name
=
"spear_id"
)
@Schema
(
description
=
"枪号"
)
private
Integer
spearId
;
private
Integer
spearId
;
/**
/**
*
枪
id
*
account
id
*/
*/
@Column
(
name
=
"account_Id"
)
@Column
(
name
=
"account_Id"
)
@Schema
(
description
=
"accountid"
)
private
Integer
accountId
;
private
Integer
accountId
;
/**
/**
* 车位号
* 车位号
*/
*/
@Column
(
name
=
"park_space_num"
)
@Column
(
name
=
"park_space_num"
)
@Schema
(
description
=
"车位号"
)
private
String
parkSpaceNum
;
private
String
parkSpaceNum
;
/**
/**
* 执行类型 1.立即充电
* 执行类型 1.立即充电
*/
*/
@Column
(
name
=
"execute_type"
)
@Column
(
name
=
"execute_type"
)
@Schema
(
description
=
"执行类型 1.立即充电"
)
private
Byte
executeType
;
private
Byte
executeType
;
/**
/**
* 订单金额
* 订单金额
*/
*/
@Column
(
name
=
"order_amount"
)
@Column
(
name
=
"order_amount"
)
@Schema
(
description
=
"订单金额"
)
private
Double
orderAmount
;
private
Double
orderAmount
;
/**
/**
* 车牌号
* 车牌号
*/
*/
@Column
(
name
=
"car_number"
)
@Column
(
name
=
"car_number"
)
@Schema
(
description
=
"车牌号"
)
private
String
carNumber
;
private
String
carNumber
;
/**
/**
* 充电结束时间
* 充电结束时间
*/
*/
@Column
(
name
=
"charg_endtime"
)
@Column
(
name
=
"charg_endtime"
)
@Schema
(
description
=
"充电结束时间"
)
private
Date
chargEndtime
;
private
Date
chargEndtime
;
/**
/**
* 充电开始时间
* 充电开始时间
*/
*/
@Column
(
name
=
"charg_starttime"
)
@Column
(
name
=
"charg_starttime"
)
@Schema
(
description
=
"充电开始时间"
)
private
Date
chargStarttime
;
private
Date
chargStarttime
;
/**
/**
* 结束终止类型 1.充满终止
* 结束终止类型 1.充满终止
*/
*/
@Column
(
name
=
"end_type"
)
@Column
(
name
=
"end_type"
)
@Schema
(
description
=
"结束终止类型 1.充满终止"
)
private
Byte
endType
;
private
Byte
endType
;
/**
/**
* 充电度数
* 充电度数
*/
*/
@Column
(
name
=
"total_degrees"
)
@Column
(
name
=
"total_degrees"
)
@Schema
(
description
=
"充电度数"
)
private
Float
totalDegrees
;
private
Float
totalDegrees
;
@Column
(
name
=
"created_time"
)
@Column
(
name
=
"created_time"
)
@Schema
(
description
=
"创建时间"
)
private
Date
createdTime
;
private
Date
createdTime
;
/**
/**
* 充电状态 1.待结算 2.已结算
* 充电状态 1.待结算 2.已结算
*/
*/
@Column
(
name
=
"settlement_flag"
)
@Column
(
name
=
"settlement_flag"
)
@Schema
(
description
=
"充电状态 1.待结算 2.已结算"
)
private
Byte
settlementFlag
;
private
Byte
settlementFlag
;
public
Byte
getSettlementFlag
()
{
public
Byte
getSettlementFlag
()
{
...
...
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/entity/ChargingOrderDetail.java
View file @
a5c0049
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
entity
;
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
entity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
java.util.Date
;
import
java.util.Date
;
import
javax.persistence.*
;
import
javax.persistence.*
;
...
@@ -13,42 +14,49 @@ public class ChargingOrderDetail {
...
@@ -13,42 +14,49 @@ public class ChargingOrderDetail {
* 充电时段
* 充电时段
*/
*/
@Column
(
name
=
"period_of_time"
)
@Column
(
name
=
"period_of_time"
)
@Schema
(
description
=
"充电时段"
)
private
String
periodOfTime
;
private
String
periodOfTime
;
/**
/**
* 度数
* 度数
*/
*/
@Column
(
name
=
"total_degrees"
)
@Column
(
name
=
"total_degrees"
)
@Schema
(
description
=
"度数"
)
private
Double
totalDegrees
;
private
Double
totalDegrees
;
/**
/**
* 电费
* 电费
*/
*/
@Column
(
name
=
"electric_charge"
)
@Column
(
name
=
"electric_charge"
)
@Schema
(
description
=
"电费"
)
private
Double
electricCharge
;
private
Double
electricCharge
;
/**
/**
* 服务费
* 服务费
*/
*/
@Column
(
name
=
"service_charge"
)
@Column
(
name
=
"service_charge"
)
@Schema
(
description
=
"服务费"
)
private
Double
serviceCharge
;
private
Double
serviceCharge
;
/**
/**
* 平均电费
* 平均电费
*/
*/
@Column
(
name
=
"average_ele_charge"
)
@Column
(
name
=
"average_ele_charge"
)
@Schema
(
description
=
"平均电费"
)
private
Double
averageEleCharge
;
private
Double
averageEleCharge
;
/**
/**
* 平均服务费
* 平均服务费
*/
*/
@Column
(
name
=
"average_service_charge"
)
@Column
(
name
=
"average_service_charge"
)
@Schema
(
description
=
"平均服务费"
)
private
Double
averageServiceCharge
;
private
Double
averageServiceCharge
;
/**
/**
* 订单号
* 订单号
*/
*/
@Column
(
name
=
"order_code"
)
@Column
(
name
=
"order_code"
)
@Schema
(
description
=
"订单号"
)
private
String
orderCode
;
private
String
orderCode
;
@Column
(
name
=
"created_time"
)
@Column
(
name
=
"created_time"
)
...
...
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/entity/ChargingOrderMonitorinfo.java
View file @
a5c0049
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
entity
;
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
entity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
import
javax.persistence.*
;
import
javax.persistence.*
;
...
@@ -10,30 +11,36 @@ public class ChargingOrderMonitorinfo {
...
@@ -10,30 +11,36 @@ public class ChargingOrderMonitorinfo {
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
private
Integer
id
;
@Schema
(
description
=
"电压"
)
private
BigDecimal
voltage
;
private
BigDecimal
voltage
;
@Schema
(
description
=
"电流"
)
private
BigDecimal
current
;
private
BigDecimal
current
;
/**
/**
* 累计时间,单位分钟
* 累计时间,单位分钟
*/
*/
@Schema
(
description
=
"累计时间,单位分钟"
)
@Column
(
name
=
"acc_time"
)
@Column
(
name
=
"acc_time"
)
private
Integer
accTime
;
private
Integer
accTime
;
/**
/**
* 度数
* 度数
*/
*/
@Schema
(
description
=
"度数"
)
private
BigDecimal
degrees
;
private
BigDecimal
degrees
;
/**
/**
* 已冲金额
* 已冲金额
*/
*/
@Schema
(
description
=
"已冲金额"
)
@Column
(
name
=
"charged_amount"
)
@Column
(
name
=
"charged_amount"
)
private
BigDecimal
chargedAmount
;
private
BigDecimal
chargedAmount
;
/**
/**
* 订单号
* 订单号
*/
*/
@Schema
(
description
=
"订单号"
)
@Column
(
name
=
"order_code"
)
@Column
(
name
=
"order_code"
)
private
String
orderCode
;
private
String
orderCode
;
...
...
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/model/ocpp16/order/ClosePileBO.java
View file @
a5c0049
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
model
.
ocpp16
.
order
;
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
model
.
ocpp16
.
order
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
java.util.Date
;
import
java.util.Date
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -9,9 +10,12 @@ import lombok.Data;
...
@@ -9,9 +10,12 @@ import lombok.Data;
@Data
@Data
public
class
ClosePileBO
{
public
class
ClosePileBO
{
@Schema
(
description
=
"充电桩"
)
private
String
pileId
;
private
String
pileId
;
@Schema
(
description
=
"枪号"
)
private
Integer
gunNumber
;
private
Integer
gunNumber
;
@Schema
(
description
=
"订单编号"
)
private
String
orderCode
;
private
String
orderCode
;
}
}
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/model/ocpp16/order/OrderCreateBO.java
View file @
a5c0049
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
model
.
ocpp16
.
order
;
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
model
.
ocpp16
.
order
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
java.util.Date
;
import
java.util.Date
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
...
@@ -11,21 +12,30 @@ import lombok.Data;
...
@@ -11,21 +12,30 @@ import lombok.Data;
@Data
@Data
public
class
OrderCreateBO
{
public
class
OrderCreateBO
{
@Schema
(
description
=
"充电桩"
)
private
String
pileId
;
private
String
pileId
;
@Schema
(
description
=
"枪号"
)
private
Integer
gunNumber
;
private
Integer
gunNumber
;
@Schema
(
description
=
"用户id"
)
private
Integer
accountId
;
private
Integer
accountId
;
@Schema
(
description
=
"订单来源 1.小程序"
)
private
Byte
orderSource
;
private
Byte
orderSource
;
@Schema
(
description
=
"订单来源 1.小程序"
)
private
String
parkSpaceNum
;
private
String
parkSpaceNum
;
@Schema
(
description
=
"执行类型 1.立即充电"
)
private
Byte
executeType
;
private
Byte
executeType
;
@Schema
(
description
=
"充电开始时间"
)
private
Date
chargStarttime
;
private
Date
chargStarttime
;
@Schema
(
description
=
"充电结束时间"
)
private
Date
chargeEndttime
;
private
Date
chargeEndttime
;
@Schema
(
description
=
"结束类型 1.充满结束"
)
private
Byte
endType
;
private
Byte
endType
;
}
}
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/model/ocpp16/order/OrderSearch.java
View file @
a5c0049
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
model
.
ocpp16
.
order
;
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
model
.
ocpp16
.
order
;
import
cn.hutool.db.Page
;
import
cn.hutool.db.Page
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -9,6 +10,7 @@ import lombok.Data;
...
@@ -9,6 +10,7 @@ import lombok.Data;
@Data
@Data
public
class
OrderSearch
extends
Page
{
public
class
OrderSearch
extends
Page
{
@Schema
(
description
=
"订单状态 1.进行中 2.待支付 3.已支付 "
)
private
Integer
orderStatus
;
private
Integer
orderStatus
;
}
}
platform-evbusiness/pom.xml
View file @
a5c0049
...
@@ -103,11 +103,6 @@
...
@@ -103,11 +103,6 @@
<artifactId>
rpc-scrm-system-api
</artifactId>
<artifactId>
rpc-scrm-system-api
</artifactId>
<version>
3.19.0-SNAPSHOT
</version>
<version>
3.19.0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-annotations
</artifactId>
<version>
1.5.16
</version>
</dependency>
<dependency>
<dependency>
<groupId>
cn.com.glsx.charging
</groupId>
<groupId>
cn.com.glsx.charging
</groupId>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment