策略数据下发大概逻辑

This commit is contained in:
2025-07-17 15:58:08 +08:00
parent a4338b3995
commit 9125ce735c
5 changed files with 189 additions and 2 deletions

View File

@ -65,4 +65,7 @@ public interface EmsStrategyTimeConfigMapper
// 清空该月的模板信息
public void cleanTemplateId(String templateId);
// 获取该策略下的时间配置
List<EmsStrategyTimeConfig> getAllTimeConfigByTempId(String templateId);
}

View File

@ -97,8 +97,10 @@
from ems_strategy_running t
LEFT JOIN ems_strategy main on t.main_strategy_id = main.id
LEFT JOIN ems_strategy aux on t.auxiliary_strategy_id = aux.id
where t.site_id = #{siteId}
and t.`status` != 4
where t.`status` != 4
<if test="siteId != null and siteId != ''">
and t.site_id = #{siteId}
</if>
</select>
<update id="stopEmsStrategyRunning" parameterType="Long">

View File

@ -110,4 +110,9 @@
<update id="cleanTemplateId" parameterType="String">
update ems_strategy_time_config set template_id = '' where template_id = #{templateId}
</update>
<select id="getAllTimeConfigByTempId" parameterType="String" resultMap="EmsStrategyTimeConfigResult">
<include refid="selectEmsStrategyTimeConfigVo"/>
where template_id = #{templateId}
</select>
</mapper>