策略配置-策略时间配置

This commit is contained in:
2025-07-13 00:42:43 +08:00
parent 23f7e70df6
commit acf2164c1c
7 changed files with 171 additions and 28 deletions

View File

@ -29,7 +29,7 @@
<if test="month != null "> and month = #{month}</if>
<if test="chargeDischargeMode != null and chargeDischargeMode != ''"> and charge_discharge_mode = #{chargeDischargeMode}</if>
<if test="siteId != null and siteId != ''"> and site_id = #{siteId}</if>
<if test="templateId != null and templateId != ''"> and template_id = #{templateId}</if>
<if test="templateId != null "> and template_id = #{templateId}</if>
</where>
</select>
@ -93,4 +93,18 @@
#{id}
</foreach>
</delete>
<select id="getStrategyTimeList" parameterType="EmsStrategyTimeConfig" resultType="com.xzzn.ems.domain.vo.StrategyTimeConfigVo">
select t.id,
t.month,
t.charge_discharge_mode as chargeDischargeMode,
t.template_id as templateId,
temp.template_name as templateName
from ems_strategy_time_config t
LEFT JOIN ems_strategy_temp temp on t.template_id = temp.id
where t.site_id = #{siteId}
and t.strategy_id = #{strategyId}
order by month
</select>
</mapper>