|
@@ -528,11 +528,20 @@ public class SceneCooperationServiceImpl extends ServiceImpl<ISceneCooperationMa
|
|
|
|
|
|
|
|
|
List<SceneCooperation> addList =new ArrayList<>();
|
|
|
- if(!numList.isEmpty()){
|
|
|
- addList = this.saveBatchByList(new ArrayList<>(numList), userIds, type,"mesh");
|
|
|
- }
|
|
|
- if(!numList1.isEmpty()){
|
|
|
- addList = this.saveBatchByList(new ArrayList<>(numList1), userIds, type,"laser");
|
|
|
+ if(StringUtils.isNotBlank(sceneType) ){
|
|
|
+ if(!numList.isEmpty() && "mesh".equals(sceneType)){
|
|
|
+ addList = this.saveBatchByList(new ArrayList<>(numList), userIds, type,"mesh");
|
|
|
+ }
|
|
|
+ if(!numList1.isEmpty() && "laser".equals(sceneType)){
|
|
|
+ addList = this.saveBatchByList(new ArrayList<>(numList1), userIds, type,"laser");
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ if(!numList.isEmpty()){
|
|
|
+ addList = this.saveBatchByList(new ArrayList<>(numList), userIds, type,"mesh");
|
|
|
+ }
|
|
|
+ if(!numList1.isEmpty() ){
|
|
|
+ addList = this.saveBatchByList(new ArrayList<>(numList1), userIds, type,"laser");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
List<Long> collect3 = addList.stream().map(SceneCooperation::getUserId).collect(Collectors.toList());
|