策略配置-模板配置修改
This commit is contained in:
@ -55,6 +55,7 @@ public class EmsStrategyTempServiceImpl implements IEmsStrategyTempService
|
|||||||
String templateId = requestVo.getTemplateId();
|
String templateId = requestVo.getTemplateId();
|
||||||
if (StringUtils.isEmpty(templateId)) {
|
if (StringUtils.isEmpty(templateId)) {
|
||||||
templateId = PREFIX + DateUtils.dateTimeNow();
|
templateId = PREFIX + DateUtils.dateTimeNow();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EmsStrategyTemp publicTemp = new EmsStrategyTemp();
|
EmsStrategyTemp publicTemp = new EmsStrategyTemp();
|
||||||
@ -66,8 +67,8 @@ public class EmsStrategyTempServiceImpl implements IEmsStrategyTempService
|
|||||||
if (timeList != null && !timeList.isEmpty()) {
|
if (timeList != null && !timeList.isEmpty()) {
|
||||||
for (EmsStrategyTempTimeConfig timeConfig : timeList) {
|
for (EmsStrategyTempTimeConfig timeConfig : timeList) {
|
||||||
EmsStrategyTemp temp = new EmsStrategyTemp();
|
EmsStrategyTemp temp = new EmsStrategyTemp();
|
||||||
BeanUtils.copyProperties(publicTemp, temp);
|
|
||||||
BeanUtils.copyProperties(timeConfig, temp);
|
BeanUtils.copyProperties(timeConfig, temp);
|
||||||
|
BeanUtils.copyProperties(publicTemp, temp);
|
||||||
emsStrategyTempMapper.insertEmsStrategyTemp(temp);
|
emsStrategyTempMapper.insertEmsStrategyTemp(temp);
|
||||||
}
|
}
|
||||||
} else {// 无时间配置只配置模板基本信息
|
} else {// 无时间配置只配置模板基本信息
|
||||||
|
|||||||
Reference in New Issue
Block a user