| | |
| | | } |
| | | if (ofSearch.getStoreId() != null || ofSearch.getStoreIds().size() != 0) { |
| | | for (Map<String, Object> map : mapList1) { |
| | | if (map.get("cityManagerId").equals(ofSearch.getOperatorId())){ |
| | | mapList.add(map); |
| | | continue; |
| | | } |
| | | // 如果当前登陆人是运营商 只能查看平台添加的优惠券应只展示使用范围为全国通用、 |
| | | // 指定城市有运营商管辖的、指定门店有运营商旗下门店 |
| | | if (ofSearch.getObjType() == 2) { |
| | | if (Integer.parseInt(String.valueOf(map.get("useScope"))) == 1) { |
| | | mapList.add(map); |
| | | continue; |
| | | } |
| | | if (Integer.parseInt(String.valueOf(map.get("useScope"))) == 2) { |
| | | // 获取到优惠券id 查询这个优惠券指定了哪些城市 |