Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-charging-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 21e56eb4
authored
Nov 07, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]启动类增加
1 parent
8ac85302
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
platform-charging/pom.xml
platform-charging/src/main/java/cn/com/glsx/charging/Application.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/data/login/ModelChargingRspData.java
platform-charging/pom.xml
View file @
21e56eb
...
...
@@ -94,18 +94,18 @@
<!-- apache commons end -->
<!-- swagger start -->
<dependency>
<!--
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>
</dependency>
-->
<!-- swagger end -->
<dependency>
<!--
<dependency>
<groupId>cn.com.glsx</groupId>
<artifactId>platform-process</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependency>
-->
</dependencies>
<build>
...
...
platform-charging/src/main/java/cn/com/glsx/charging/Application.java
View file @
21e56eb
...
...
@@ -3,10 +3,12 @@ package cn.com.glsx.charging;
import
static
java
.
time
.
ZoneId
.
of
;
import
static
java
.
util
.
TimeZone
.
getTimeZone
;
import
cn.com.glsx.charging.modules.gbt.ocpp16.ServerMain
;
import
java.util.TimeZone
;
import
javax.annotation.PostConstruct
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
...
...
@@ -23,7 +25,7 @@ import com.glsx.plat.context.EnableRestAdmin;
@EnableFeignClients
(
basePackages
=
{
"cn.com.glsx.charging.*.api"
})
@SpringBootApplication
@PropertySource
(
"application.properties_standalone"
)
public
class
Application
{
public
class
Application
implements
CommandLineRunner
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Application
.
class
,
args
);
...
...
@@ -34,4 +36,8 @@ public class Application {
TimeZone
.
setDefault
(
getTimeZone
(
of
(
"Asia/Shanghai"
)));
}
@Override
public
void
run
(
String
...
args
)
throws
Exception
{
ServerMain
.
start
();
}
}
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/data/login/ModelChargingRspData.java
View file @
21e56eb
...
...
@@ -77,7 +77,7 @@ public class ModelChargingRspData extends TcpData {
private
byte
lossCalRatio
;
/**
* 0:00~0:30 时段费率号
* 0:00~0:30 时段费率号
---- 23:30~0:00
*/
private
byte
periodRate1
;
...
...
@@ -127,5 +127,9 @@ public class ModelChargingRspData extends TcpData {
private
byte
periodRate45
;
private
byte
periodRate46
;
private
byte
periodRate47
;
/**
* 0:00~0:30 时段费率号---- 23:30~0:00
*/
private
byte
periodRate48
;
}
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