|
@@ -115,7 +115,7 @@ public class SceneCooperationServiceImpl extends ServiceImpl<ISceneCooperationMa
|
|
|
List<SceneCooperation> list = new ArrayList<>();
|
|
|
List<String> delList = new ArrayList<>();
|
|
|
|
|
|
- HashMap<String, List<User>> byNumList = this.getByNumList(numList);
|
|
|
+ HashMap<String, List<User>> byNumList = this.getByNumList(numList,sceneType);
|
|
|
|
|
|
|
|
|
for (Long userId : userIds) {
|
|
@@ -404,7 +404,7 @@ public class SceneCooperationServiceImpl extends ServiceImpl<ISceneCooperationMa
|
|
|
HashMap<String,Integer> freeMap = new HashMap<>();
|
|
|
freeCountList.forEach(e -> freeMap.put(e.getNum(),e.getCount()));
|
|
|
|
|
|
- HashMap<String, List<User>> map = this.getByNumList(numList);
|
|
|
+ HashMap<String, List<User>> map = this.getByNumList(numList,sceneType);
|
|
|
Integer totalCount = 0;
|
|
|
for (String num : numList) {
|
|
|
Integer freeCount = freeMap.get(num) == null ? 1 :freeMap.get(num);
|
|
@@ -518,12 +518,13 @@ public class SceneCooperationServiceImpl extends ServiceImpl<ISceneCooperationMa
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public HashMap<String, List<User>> getByNumList(List<String> numList) {
|
|
|
+ public HashMap<String, List<User>> getByNumList(List<String> numList,String sceneType) {
|
|
|
if(numList == null || numList.isEmpty()){
|
|
|
return new HashMap<>();
|
|
|
}
|
|
|
LambdaQueryWrapper<SceneCooperation> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.in(SceneCooperation::getSceneNum,numList);
|
|
|
+ wrapper.eq(SceneCooperation::getSceneType,sceneType);
|
|
|
List<SceneCooperation> list = this.list(wrapper);
|
|
|
HashMap<String,List<User>> cooMap = new HashMap<>();
|
|
|
if(list.size() >0){
|