Commit db51c4f0 authored by 王夏晖's avatar 王夏晖

能耗计划接口完善

parent 36b688b7
...@@ -352,18 +352,28 @@ ...@@ -352,18 +352,28 @@
<build> <build>
<finalName>zhny</finalName> <finalName>ROOT</finalName>
<resources> <resources>
<resource> <resource>
<directory>src/main/resources</directory> <directory>src/main/resources</directory>
<!--<includes> <includes>
<include>**/*.yml</include> <include>**/*.yml</include>
<include>**/*.properties</include> <include>**/*.properties</include>
<include>**/*.xml</include> <include>**/*.xml</include>
<include>**/*.ftl</include> <include>**/*.ftl</include>
</includes> </includes>
<filtering>true</filtering>--> <filtering>true</filtering>
</resource> </resource>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>**/*.yml</exclude>
<exclude>**/*.properties</exclude>
<exclude>**/*.xml</exclude>
<exclude>**/*.ftl</exclude>
</excludes>
<filtering>false</filtering>
</resource>
</resources> </resources>
<plugins> <plugins>
<plugin> <plugin>
......
...@@ -16,8 +16,6 @@ public class ZhnyLineRunner implements CommandLineRunner { ...@@ -16,8 +16,6 @@ public class ZhnyLineRunner implements CommandLineRunner {
@Override @Override
public void run(String... var1) throws Exception{ public void run(String... var1) throws Exception{
System.out.println("MQTT 客户端启动++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"); System.out.println("MQTT 客户端启动++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
/*ClientMQTT mqclient = new ClientMQTT();
mqclient.start();*/
MqttClient client = new MqttClient(rcRedisService,totalOriginalServiceImpl); MqttClient client = new MqttClient(rcRedisService,totalOriginalServiceImpl);
//client.start(); //client.start();
} }
......
...@@ -218,7 +218,7 @@ public class BusEnergyPlanServiceImpl implements BusEnergyPlanService { ...@@ -218,7 +218,7 @@ public class BusEnergyPlanServiceImpl implements BusEnergyPlanService {
tmMap.put(s,"1"); tmMap.put(s,"1");
} }
tmap.put("planmap",tmMap); tmap.put("planmap",tmMap);
tmap.put("planT",busEnergyplanTService.queryBusEnergyplanTs(tmap.get("dev_num").toString(),day));
} }
return list; return list;
} }
......
...@@ -18,6 +18,7 @@ public class Test { ...@@ -18,6 +18,7 @@ public class Test {
String param = "sensor_01"; String param = "sensor_01";
System.out.println(param.substring(param.indexOf("_"),param.length()));*/ System.out.println(param.substring(param.indexOf("_"),param.length()));*/
System.out.println(UUID.randomUUID().toString().replace("-","")); System.out.println(UUID.randomUUID().toString().replace("-",""));
System.out.println("2018-06-01 10:20:00".substring(11));
} }
} }
......
server: server:
port: 8080 port: 8082
context-path: / #ContextPath must start with '/' and not end with '/' context-path: /zhny #ContextPath must start with '/' and not end with '/'
tomcat: tomcat:
max-threads: 300 max-threads: 300
max-http-post-size: 10240000
max-http-header-size: 10240000
#uri-encoding: UTF-8 #uri-encoding: UTF-8
# logging: #使用logback-spring 注释掉logging 否则影响 # logging: #使用logback-spring 注释掉logging 否则影响
...@@ -11,7 +13,7 @@ server: ...@@ -11,7 +13,7 @@ server:
# org.springframework.web: DEBUG # org.springframework.web: DEBUG
druid: druid:
url: jdbc:mysql://139.199.98.105:3336/zhny?useUnicode=true&characterEncoding=UTF-8&useSSL=false&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true url: jdbc:mysql://localhost:3306/zhny?useUnicode=true&characterEncoding=UTF-8&useSSL=false&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
username: root username: root
password: root password: root
initial-size: 1 initial-size: 1
...@@ -22,7 +24,7 @@ druid: ...@@ -22,7 +24,7 @@ druid:
mybatis: mybatis:
mapper-locations: classpath:mapper/**/**/*.xml mapper-locations: classpath:mapper/**/**/*.xml
config-location: classpath:mybatis-config.xml
mapper: mapper:
mappers: mappers:
......
server: server:
port: 8082 port: 8082
context-path: /project #ContextPath must start with '/' and not end with '/' context-path: /zhny #ContextPath must start with '/' and not end with '/'
tomcat: tomcat:
max-threads: 300 max-threads: 300
max-http-post-size: 10240000
max-http-header-size: 10240000 max-http-header-size: 10240000
#logging: #logging:
...@@ -45,6 +46,7 @@ spring: ...@@ -45,6 +46,7 @@ spring:
multipart: multipart:
max-file-size: 100Mb max-file-size: 100Mb
max-request-size: 1000Mb max-request-size: 1000Mb
mvc: mvc:
throw-exception-if-no-handler-found: true throw-exception-if-no-handler-found: true
resources: resources:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment