策略配置-模板配置修改

This commit is contained in:
2025-07-13 15:42:47 +08:00
parent 9fcc81fbac
commit 41656581ca

View File

@ -55,6 +55,7 @@ public class EmsStrategyTempServiceImpl implements IEmsStrategyTempService
String templateId = requestVo.getTemplateId();
if (StringUtils.isEmpty(templateId)) {
templateId = PREFIX + DateUtils.dateTimeNow();
}
EmsStrategyTemp publicTemp = new EmsStrategyTemp();
@ -66,8 +67,8 @@ public class EmsStrategyTempServiceImpl implements IEmsStrategyTempService
if (timeList != null && !timeList.isEmpty()) {
for (EmsStrategyTempTimeConfig timeConfig : timeList) {
EmsStrategyTemp temp = new EmsStrategyTemp();
BeanUtils.copyProperties(publicTemp, temp);
BeanUtils.copyProperties(timeConfig, temp);
BeanUtils.copyProperties(publicTemp, temp);
emsStrategyTempMapper.insertEmsStrategyTemp(temp);
}
} else {// 无时间配置只配置模板基本信息