|
|
@@ -39,6 +39,7 @@ public class NotifyConfigServiceImpl extends ServiceImpl<NotifyConfigMapper, Not
|
|
|
notifyConfigMapper.insert(notifyConfig);
|
|
|
// 开始新增detail
|
|
|
if (!createReqVO.getNotifyConfigDetailSaveReqVOS().isEmpty()) {
|
|
|
+ createReqVO.getNotifyConfigDetailSaveReqVOS().forEach( item -> item.setConfigId(notifyConfig.getId()));
|
|
|
notifyConfigDetailService.insertOrUpdateList(BeanUtils.toBean(createReqVO.getNotifyConfigDetailSaveReqVOS(), NotifyConfigDetailDO.class));
|
|
|
}
|
|
|
|
|
|
@@ -53,6 +54,7 @@ public class NotifyConfigServiceImpl extends ServiceImpl<NotifyConfigMapper, Not
|
|
|
notifyConfigMapper.updateById(updateObj);
|
|
|
// 开始新增detail
|
|
|
if (!updateReqVO.getNotifyConfigDetailSaveReqVOS().isEmpty()) {
|
|
|
+ updateReqVO.getNotifyConfigDetailSaveReqVOS().forEach( item -> item.setConfigId(updateObj.getId()));
|
|
|
notifyConfigDetailService.insertOrUpdateList(BeanUtils.toBean(updateReqVO.getNotifyConfigDetailSaveReqVOS(), NotifyConfigDetailDO.class));
|
|
|
}
|
|
|
}
|