Commit 62374488 authored by wujiang's avatar wujiang

修复分析计算

parent ea99dc0e
package com.yeejoin.amos.boot.module.jxiop.biz.Enum; package com.yeejoin.amos.boot.module.jxiop.biz.Enum;
public enum SmartAnalyseEnum { public enum SmartAnalyseEnum {
FAN_QJHF("FAN_QJHF", "风机区间变量划分"),
FAN_XGX("FAN_XGX","风机相关性"),
FAN_ZXZ("FAN_ZXZ","风机中心值"), FAN_QJHF("FAN_QJHF", "风机区间变量划分"),
PV_QJHF("PV_QJHF","光伏区间变量划分"), FAN_XGX("FAN_XGX", "风机相关性"),
PV_XGX("PV_XGX","光伏相关性"), FAN_ZXZ("FAN_ZXZ", "风机中心值"),
PV_ZXZ("PV_ZXZ","光伏中心值"); PV_QJHF("PV_QJHF", "光伏区间变量划分"),
private String key; PV_XGX("PV_XGX", "光伏相关性"),
private String name;
public String getKey() { PV_ZXZ("PV_ZXZ", "光伏中心值");
return key;
}
public void setKey(String key) { private String key;
this.key = key;
}
public String getName() { private String name;
return name;
}
public void setName(String name) { public String getKey() {
this.name = name; return key;
} }
SmartAnalyseEnum(String key, String name) { public void setKey(String key) {
this.key = key; this.key = key;
this.name = name; }
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
SmartAnalyseEnum(String key, String name) {
this.key = key;
this.name = name;
}
} }
...@@ -76,7 +76,7 @@ public class TdEngineConfig { ...@@ -76,7 +76,7 @@ public class TdEngineConfig {
final MybatisSqlSessionFactoryBean sessionFactory = new MybatisSqlSessionFactoryBean(); final MybatisSqlSessionFactoryBean sessionFactory = new MybatisSqlSessionFactoryBean();
sessionFactory.setDataSource(culsterDataSource); sessionFactory.setDataSource(culsterDataSource);
sessionFactory.setMapperLocations(new PathMatchingResourcePatternResolver() sessionFactory.setMapperLocations(new PathMatchingResourcePatternResolver()
.getResources(TdEngineConfig.MAPPER_LOCATION)); .getResources(MAPPER_LOCATION));
sessionFactory.setTypeAliasesPackage("com.yeejoin.amos.boot.module.jxiop.biz.entity"); sessionFactory.setTypeAliasesPackage("com.yeejoin.amos.boot.module.jxiop.biz.entity");
//mybatis 数据库字段与实体类属性驼峰映射配置 //mybatis 数据库字段与实体类属性驼峰映射配置
sessionFactory.getObject().getConfiguration().setMapUnderscoreToCamelCase(true); sessionFactory.getObject().getConfiguration().setMapUnderscoreToCamelCase(true);
......
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