Commit 485184ba authored by ZWT's avatar ZWT

feat(能源管理系统): 测试问题修复

1.修改间开制度管理-长期间开优化模块详情接口,增加查询当月长期光伏预测功率数据逻辑;
2.开发光伏预测Cloud模块,条件查询每小时长期/中短期光伏预测发电量列表接口,完成接口冒烟测试;
3.修改间开制度管理-中短期间开优化模块详情接口,增加查询当前中短期光伏预测功率数据逻辑;
4.修改间开制度管理-长期/中短期间开优化离网型优化方法计算异常问题;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent dd4a1b23
......@@ -17,6 +17,7 @@ public enum BusinessError implements XError {
DidNotFindCalibration(2105, "未发现可用周期配置"),
UnableToOptimize(2106, "无法优化"),
LackOfHistoryRecord(2107, "缺少历史记录"),
CannotBeDeleted(2108, "基础制度无法删除"),
;
private int code;
......
......@@ -130,7 +130,7 @@ public class SpaceInstitutionDetailService extends SpaceOptimizeBaseService {
}
Integer isCurrentBasic = entity.getIsCurrentBasic();
if (isCurrentBasic.equals(0)) {
return XServiceResult.error(992, "基础制度无法删除");
return XServiceResult.error(context, BusinessError.CannotBeDeleted);
}
PpsUserSession session = context.getSession(PpsUserSession.class);
SpaceInstitutionDurationMapper durationMapper = context.getBean(SpaceInstitutionDurationMapper.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