|
@@ -402,7 +402,13 @@ public class SceneCooperationServiceImpl extends ServiceImpl<ISceneCooperationMa
|
|
|
private ProductOrder checkNeedPay(List<String> numList, List<User> users,User loginUser,Integer payType,Integer timeZone,Long cameraId,String lang,String sceneType) {
|
|
|
List<SceneCooperationCount> freeCountList = sceneCooperationCountService.getByNumList(numList,sceneType);
|
|
|
HashMap<String,Integer> freeMap = new HashMap<>();
|
|
|
- freeCountList.forEach(e -> freeMap.put(e.getNum(),e.getCount()));
|
|
|
+ for (SceneCooperationCount count : freeCountList) {
|
|
|
+ if(freeMap.get(count.getNum()) != null){
|
|
|
+ freeMap.put(count.getNum(),count.getCount());
|
|
|
+ }else {
|
|
|
+ freeMap.put(count.getNum(),freeMap.get(count.getNum() + count.getCount()));
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
HashMap<String, List<User>> map = this.getByNumList(numList,sceneType);
|
|
|
Integer totalCount = 0;
|