|
@@ -219,7 +219,15 @@ public class ScrbServiceImpl implements IScrbService {
|
|
|
|
|
|
@Override
|
|
|
public void save(ScrbSaveDTO param) throws IOException {
|
|
|
- if(CollUtil.isNotEmpty(param.getBaseSetting())){
|
|
|
+
|
|
|
+ SceneEditInfoScrb sceneEditInfoScrb = sceneEditInfoScrbService.getByNum(param.getNum());
|
|
|
+ if(Objects.isNull(sceneEditInfoScrb)){
|
|
|
+ sceneEditInfoScrb = new SceneEditInfoScrb();
|
|
|
+ sceneEditInfoScrb.setNum(param.getNum());
|
|
|
+ sceneEditInfoScrbService.save(sceneEditInfoScrb);
|
|
|
+ }
|
|
|
+
|
|
|
+ if(Objects.nonNull(param.getBaseSetting())){
|
|
|
sceneEditInfoScrbService.update(
|
|
|
new LambdaUpdateWrapper<SceneEditInfoScrb>()
|
|
|
.eq(SceneEditInfoScrb::getNum, param.getNum())
|