Commit cac3c716 authored by ZWT's avatar ZWT

feat(吉林演示): 松原

1.开发间开优化结果统计功能,创建间开优化效果统计表,生成对应代码;
2.修改15天,10天,3天,1天间开优化功能,修改代码结构;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 05e9bbcc
package pps.core.common.module;
import cn.hutool.core.util.ObjectUtil;
import pps.core.common.provider.impl.PpsSessionStorageProviderImpl;
import pps.core.common.utils.ManifestComponentInfoHelper;
import xstartup.annotation.XText;
......@@ -17,6 +18,8 @@ public class PpsCoreCommonModule extends XModule {
@Override
protected void onStarted(XContext context) {
XProviderManager.setDefaultImplement(context, XSessionStorageProvider.class, PpsSessionStorageProviderImpl.class);
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
if (ObjectUtil.isNotNull(this.getClass()) && ObjectUtil.isNotNull(this.getClass().getClassLoader())) {
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
}
}
}
\ No newline at end of file
......@@ -39,7 +39,9 @@ public class PpsCoreSystemModule extends XModule {
XProviderManager.setDefaultImplement(context, XSsoProvider.class, PpsSsoProviderImpl.class);
XProviderManager.setDefaultImplement(context, XSessionInjectProvider.class, PpsUserSessionInjectProviderImpl.class);
//配置信息 自定义实现类
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
if (ObjectUtil.isNotNull(this.getClass()) && ObjectUtil.isNotNull(this.getClass().getClassLoader())) {
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
}
SysDictionaryMapper dictionaryMapper = context.getBean(SysDictionaryMapper.class);
//初始化字典缓存
//查询所有alias不为空的
......
package pps.core.base.module;
import cn.hutool.core.util.ObjectUtil;
import pps.core.common.utils.ManifestComponentInfoHelper;
import xstartup.annotation.XText;
import xstartup.base.XContext;
......@@ -13,6 +14,8 @@ public class PpsCoreBaseModule extends XModule {
@Override
protected void onStarted(XContext context) {
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
if (ObjectUtil.isNotNull(this.getClass()) && ObjectUtil.isNotNull(this.getClass().getClassLoader())) {
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
}
}
}
......@@ -35,7 +35,9 @@ public class PpsCoreTaskModule extends XModule {
@Override
protected void onStarted(XContext context) {
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
if (ObjectUtil.isNotNull(this.getClass()) && ObjectUtil.isNotNull(this.getClass().getClassLoader())) {
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
}
//获取当前配置
GetConfigOilFieldOutput currentConfig = ServiceUtil.getCurrentConfig(context);
if (ObjectUtil.isNull(currentConfig) || CharSequenceUtil.isBlank(currentConfig.getOilFieldCode())) {
......
package pps.core.space.module;
import cn.hutool.core.util.ObjectUtil;
import pps.core.common.utils.ManifestComponentInfoHelper;
import xstartup.annotation.XText;
import xstartup.base.XContext;
......@@ -20,6 +21,8 @@ public class PpsCoreSpaceModule extends XModule {
@Override
protected void onStarted(XContext context) {
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
if (ObjectUtil.isNotNull(this.getClass()) && ObjectUtil.isNotNull(this.getClass().getClassLoader())) {
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
}
}
}
\ No newline at end of file
package pps.core.prediction.module;
import cn.hutool.core.util.ObjectUtil;
import pps.core.common.utils.ManifestComponentInfoHelper;
import xstartup.annotation.XText;
import xstartup.base.XContext;
......@@ -20,6 +21,8 @@ public class PpsCorePredictionModule extends XModule {
@Override
protected void onStarted(XContext context) {
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
if (ObjectUtil.isNotNull(this.getClass()) && ObjectUtil.isNotNull(this.getClass().getClassLoader())) {
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
}
}
}
\ No newline at end of file
package pps.core.middle.module;
import cn.hutool.core.util.ObjectUtil;
import pps.core.common.utils.ManifestComponentInfoHelper;
import xstartup.annotation.XText;
import xstartup.base.XContext;
......@@ -20,6 +21,8 @@ public class PpsCoreMiddleModule extends XModule {
@Override
protected void onStarted(XContext context) {
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
if (ObjectUtil.isNotNull(this.getClass()) && ObjectUtil.isNotNull(this.getClass().getClassLoader())) {
ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
}
}
}
\ No newline at end of file
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