Commit 4b4218f6 authored by ZWT's avatar ZWT

feat(吉林演示): 松原

1.排查并修复各时段间开优化功能执行异常导致未执行间开优化问题;
2.排查并修复15天间开优化功能执行后,优化结果时间段展示错乱问题;
3.排查并修复光伏功率预测展示功能,实际功率未展示问题;
4.排查并修复天气数据获取服务,数据处理后入库缺少数据问题;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent c02c3dea
...@@ -5,6 +5,7 @@ import pps.cloud.middle.service.data.weather_attachment_record.GetWeatherAttachm ...@@ -5,6 +5,7 @@ import pps.cloud.middle.service.data.weather_attachment_record.GetWeatherAttachm
import xstartup.annotation.XService; import xstartup.annotation.XService;
import xstartup.annotation.XText; import xstartup.annotation.XText;
import xstartup.base.XContext; import xstartup.base.XContext;
import xstartup.data.XListResult;
import xstartup.data.XSingleResult; import xstartup.data.XSingleResult;
/** /**
...@@ -26,4 +27,14 @@ public interface IWeatherAttachmentCloudService { ...@@ -26,4 +27,14 @@ public interface IWeatherAttachmentCloudService {
*/ */
@XText("获取最新邮件") @XText("获取最新邮件")
XSingleResult<GetWeatherAttachmentRecordOutput> getEmail(XContext context, GetWeatherAttachmentRecordInput input); XSingleResult<GetWeatherAttachmentRecordOutput> getEmail(XContext context, GetWeatherAttachmentRecordInput input);
/**
* 获取邮件列表
*
* @param context 上下文
* @param input 输入
* @return {@link XListResult }<{@link GetWeatherAttachmentRecordOutput }>
*/
@XText("获取邮件列表")
XListResult<GetWeatherAttachmentRecordOutput> getEmailList(XContext context, GetWeatherAttachmentRecordInput input);
} }
...@@ -10,6 +10,7 @@ import pps.core.middle.mapper.WeatherAttachmentRecordMapper; ...@@ -10,6 +10,7 @@ import pps.core.middle.mapper.WeatherAttachmentRecordMapper;
import xstartup.annotation.XService; import xstartup.annotation.XService;
import xstartup.base.XContext; import xstartup.base.XContext;
import xstartup.base.util.XCopyUtils; import xstartup.base.util.XCopyUtils;
import xstartup.data.XListResult;
import xstartup.data.XSingleResult; import xstartup.data.XSingleResult;
import java.util.List; import java.util.List;
...@@ -35,4 +36,17 @@ public class WeatherAttachmentCloudServiceImpl implements IWeatherAttachmentClou ...@@ -35,4 +36,17 @@ public class WeatherAttachmentCloudServiceImpl implements IWeatherAttachmentClou
} }
return XSingleResult.success(XCopyUtils.copyNewObject(list.get(0), GetWeatherAttachmentRecordOutput.class)); return XSingleResult.success(XCopyUtils.copyNewObject(list.get(0), GetWeatherAttachmentRecordOutput.class));
} }
@Override
public XListResult<GetWeatherAttachmentRecordOutput> getEmailList(XContext context, GetWeatherAttachmentRecordInput input) {
WeatherAttachmentRecordMapper mapper = context.getBean(WeatherAttachmentRecordMapper.class);
List<WeatherAttachmentRecordEnt> list = mapper.selectList(new QueryWrapper<WeatherAttachmentRecordEnt>()
.select("EMAIL_DATA_TIME", "EMAIL_ATTACHMENT_URL", "EMAIL_NAME")
.orderByAsc("ID")
);
if (CollUtil.isEmpty(list)) {
return XListResult.success();
}
return XListResult.success(XCopyUtils.copyNewList(list, GetWeatherAttachmentRecordOutput.class));
}
} }
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