Commit 63beeeb4 by chenxi

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/base/TcpMapper.java
2 parents 25ee637c 70bf8899
......@@ -7,6 +7,7 @@ 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;
......@@ -15,23 +16,31 @@ import org.springframework.context.annotation.PropertySource;
import com.glsx.plat.context.EnableRestAdmin;
import cn.com.glsx.charging.modules.gbt.ocpp16.ServerMain;
/**
* @author payu
*/
@EnableRestAdmin
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"cn.com.glsx.charging.*.api"})
@EnableFeignClients(basePackages = { "cn.com.glsx.charging.*.api" })
@SpringBootApplication
@PropertySource("application.properties_standalone")
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@PostConstruct
void started() {
TimeZone.setDefault(getTimeZone(of("Asia/Shanghai")));
}
public class Application implements CommandLineRunner {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@PostConstruct
void started() {
TimeZone.setDefault(getTimeZone(of("Asia/Shanghai")));
}
@Override
public void run(String... args) throws Exception {
// SopXxlJobUtil.initLoadJob();
ServerMain.start();
}
}
......@@ -60,13 +60,13 @@ public final class TcpMapper {
// public static TcpMapper CMD_NOTIFY_TIME = regist(0x56, "对时设置", TimeNotifyHandler.class);
// 运营交互帧类型码数据定义 0x31~0x47
public static TcpMapper CMD_RSP_START_CHARGING = regist(0x31, "充电桩主动申请启动充电 ", null);
public static TcpMapper CMD_REQ_START_CHARGING = regist(0x31, "充电桩主动申请启动充电 ", null);
public static TcpMapper CMD_REQ_START_CHARGING = regist(0x32, "充电桩主动申请启动充电应答", null);
public static TcpMapper CMD_RSP_START_CHARGING = regist(0x32, "充电桩主动申请启动充电应答", null);
public static TcpMapper CMD_RSP_REMOTE_START_CHARGING = regist(0x33, "远程启动充电命令回复", StartMachineRespHandler.class);
public static TcpMapper CMD_RSP_REMOTE_START_CHARGING = regist(0x33, "运营平台远程启动充电应答", StartMachineRespHandler.class);
public static TcpMapper CMD_REQ_REMOTE_START_CHARGING = regist(0x34, "运营平台远程控制启机", StartMachineReqHandler.class);
public static TcpMapper CMD_REQ_REMOTE_START_CHARGING = regist(0x34, "运营平台远程启动充电", StartMachineReqHandler.class);
public static TcpMapper CMD_RSP_STOP_CHARGING = regist(0x35, "远程停机命令回复", ShutdownMachineRespHandler.class);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!