Commit b41ff3ec authored by ZWT's avatar ZWT

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

1.修改间开制度管理-长期/中短期/短期间开优化定时任务,修改代码结构,处理部分未优化数据无法初始化问题;
2.修改间开制度管理-长期/中短期定时任务,修改离网型算法逻辑,优化代码;
3.修改间开制度管理-短期间开优化详情接口,优化代码;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 161b7493
......@@ -56,10 +56,7 @@
d.institution_name
FROM space_institution_detail d
JOIN space_calibration_history h ON d.id = h.institution_id
WHERE d.is_current_basic = 0
AND d.is_deleted = 1
AND h.is_deleted = 1
AND d.line_id = #{lineId}
WHERE h.is_deleted = 1
AND h.line_id = #{lineId}
ORDER BY h.calibration_date DESC
</select>
......
......@@ -58,10 +58,7 @@
d.institution_name
FROM space_institution_detail d
JOIN space_optimize_long_period p ON d.id = p.institution_id
WHERE d.is_current_basic = 0
AND d.is_deleted = 1
AND p.is_deleted = 1
AND d.line_id = #{lineId}
WHERE p.is_deleted = 1
AND p.line_id = #{lineId}
ORDER BY p.optimize_deadline DESC
</select>
......
......@@ -58,10 +58,7 @@
d.institution_name
FROM space_institution_detail d
JOIN space_optimize_mid_period p ON d.id = p.institution_id
WHERE d.is_current_basic = 0
AND d.is_deleted = 1
AND p.is_deleted = 1
AND d.line_id = #{lineId}
WHERE p.is_deleted = 1
AND p.line_id = #{lineId}
ORDER BY p.optimize_deadline DESC
</select>
......
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