策略曲线图修改

This commit is contained in:
2025-07-22 22:49:54 +08:00
parent e3e3dc1d96
commit 7ea52a8972
3 changed files with 9 additions and 1 deletions

View File

@ -68,4 +68,7 @@ public interface EmsStrategyTimeConfigMapper
// 获取该策略下的时间配置
List<EmsStrategyTimeConfig> getAllTimeConfigByTempId(String templateId);
// 设置该模版的时间配置为待下发
public void updateTimeConfigWaitingPost(String templateId);
}

View File

@ -98,9 +98,10 @@ public class EmsStrategyTempServiceImpl implements IEmsStrategyTempService
// 全删
emsStrategyTempMapper.deleteTempByTempId(templateId);
// 根据模版id 删除推送的曲线图数据
emsStrategyCurveMapper.physicalDeleteByTemplateId(templateId);
// 设置该模版的时间配置为待下发
emsStrategyTimeConfigMapper.updateTimeConfigWaitingPost(templateId);
// 重新新增
addNewTempAndTimeConfig(requestVo);

View File

@ -123,4 +123,8 @@
where template_id = #{templateId}
and isPost = 1
</select>
<update id="updateTimeConfigWaitingPost" parameterType="String">
update ems_strategy_time_config set isPost = 1 where template_id = #{templateId}
</update>
</mapper>