|
@@ -70,7 +70,7 @@ public class InitEditInfoAspect {
|
|
String num = (String) parameter.get("num");
|
|
String num = (String) parameter.get("num");
|
|
Integer subgroup = (Integer) parameter.get("subgroup");
|
|
Integer subgroup = (Integer) parameter.get("subgroup");
|
|
|
|
|
|
- List<Scene> scenes = sceneService.listByNum(num);
|
|
|
|
|
|
+ List<Scene> scenes = sceneService.listByNum(num, subgroup);
|
|
if(CollUtil.isEmpty(scenes)){
|
|
if(CollUtil.isEmpty(scenes)){
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_5005);
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_5005);
|
|
}
|
|
}
|
|
@@ -113,7 +113,7 @@ public class InitEditInfoAspect {
|
|
|
|
|
|
Set<String> keySet = new HashSet<>();
|
|
Set<String> keySet = new HashSet<>();
|
|
Set<Long> deleteIds = new HashSet<>();
|
|
Set<Long> deleteIds = new HashSet<>();
|
|
- List<SceneFileMapping> mappingList = sceneFileMappingService.list(new LambdaQueryWrapper<SceneFileMapping>().eq(SceneFileMapping::getNum, num).orderByDesc(SceneFileMapping::getId));
|
|
|
|
|
|
+ List<SceneFileMapping> mappingList = sceneFileMappingService.list(new LambdaQueryWrapper<SceneFileMapping>().eq(SceneFileMapping::getNum, num).eq(SceneFileMapping::getSubgroup, subgroup).orderByDesc(SceneFileMapping::getId));
|
|
for (SceneFileMapping mapping : mappingList) {
|
|
for (SceneFileMapping mapping : mappingList) {
|
|
if(keySet.contains(mapping.getKey())){
|
|
if(keySet.contains(mapping.getKey())){
|
|
deleteIds.add(mapping.getId());
|
|
deleteIds.add(mapping.getId());
|