策略数据下发大概逻辑
This commit is contained in:
@ -65,4 +65,7 @@ public interface EmsStrategyTimeConfigMapper
|
||||
|
||||
// 清空该月的模板信息
|
||||
public void cleanTemplateId(String templateId);
|
||||
|
||||
// 获取该策略下的时间配置
|
||||
List<EmsStrategyTimeConfig> getAllTimeConfigByTempId(String templateId);
|
||||
}
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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>
|
||||
Reference in New Issue
Block a user