Commit 61060199 authored by tianchao's avatar tianchao
parents b2a5d316 682c0ade
...@@ -224,7 +224,9 @@ ...@@ -224,7 +224,9 @@
<select id="selectListByOuIds" parameterType="java.util.List" resultMap="BaseResultMap"> <select id="selectListByOuIds" parameterType="java.util.List" resultMap="BaseResultMap">
select r.ou_id as id,r.parent_ou_id,s.ou_name,s.short_name from sys_organization_rel r select r.ou_id as id,r.parent_ou_id,s.ou_name,s.short_name from sys_organization_rel r
left join sys_organization s on r.ou_id = s.id left join sys_organization s on r.ou_id = s.id
where s.is_deleted = 1 and r.ou_id in where s.is_deleted = 1
AND r.effect_time &lt;= now() AND r.end_time &gt;= now()
and r.ou_id in
<foreach collection="list" open="(" close=")" separator="," item="item"> <foreach collection="list" open="(" close=")" separator="," item="item">
#{item} #{item}
</foreach> </foreach>
......
...@@ -432,6 +432,9 @@ public class SpaceOptimizeBaseService { ...@@ -432,6 +432,9 @@ public class SpaceOptimizeBaseService {
int powerDuration = avg.getPowerDuration(); int powerDuration = avg.getPowerDuration();
powerDuration = powerDuration > 15 ? 15 : powerDuration; powerDuration = powerDuration > 15 ? 15 : powerDuration;
String offset = createTime.offsetNew(DateField.MINUTE, powerDuration).toString(BusinessConstant.MINUTES_FORMAT); String offset = createTime.offsetNew(DateField.MINUTE, powerDuration).toString(BusinessConstant.MINUTES_FORMAT);
if (StringUtils.equals(offset, BusinessConstant.START_OF_DAY_TIME)) {
offset = BusinessConstant.END_OF_DAY_TIME;
}
if (0 != powerDuration) { if (0 != powerDuration) {
//储能发电时长 //储能发电时长
this.createOptimizeDuration(durationDTOList, periodId, durationDTO.getRecordId(), durationDTO.getWellheadId(), BusinessConstant.STORED_ENERGY, this.createOptimizeDuration(durationDTOList, periodId, durationDTO.getRecordId(), durationDTO.getWellheadId(), BusinessConstant.STORED_ENERGY,
......
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