|
@@ -99,6 +99,9 @@ public class ApmacController extends SimpleController {
|
|
|
*/
|
|
|
if(null != paramMap.get("selectedOperatorId") && !"".equals(paramMap.get("selectedOperatorId"))) {
|
|
|
operatorId = Long.parseLong(String.valueOf(paramMap.get("selectedOperatorId")));
|
|
|
+ if(operatorId == -1){
|
|
|
+ operatorId = null;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if(null != paramMap.get("cn") && !"".equals(paramMap.get("cn"))) {
|
|
@@ -134,7 +137,7 @@ public class ApmacController extends SimpleController {
|
|
|
List<Wifi> wifiList = wifiService.findByParamsBack(paramMap, pager);
|
|
|
|
|
|
//如果下拉框传的是默认值,则回传一个对应的值给前端
|
|
|
- if(null == operatorId) {
|
|
|
+ if(null == operatorId ||-1 == placeClassId) {
|
|
|
operatorName = "全部媒体";
|
|
|
} else {
|
|
|
operatorName = operatorService.findById(operatorId).getCompanyName();
|
|
@@ -152,7 +155,7 @@ public class ApmacController extends SimpleController {
|
|
|
place = "场景";
|
|
|
}
|
|
|
|
|
|
- if(null == placeClassId) {
|
|
|
+ if(null == placeClassId ||-1 == placeClassId) {
|
|
|
placeClassName = "数聚场景";
|
|
|
} else {
|
|
|
placeClassName = placeClassInformationService.findById(placeClassId).getName();
|
|
@@ -257,6 +260,10 @@ public class ApmacController extends SimpleController {
|
|
|
System.out.println("xiaobao传递的参数为空");
|
|
|
return null;
|
|
|
}
|
|
|
+ //-1查询所有
|
|
|
+ if(operatorId == -1){
|
|
|
+ operatorId = null;
|
|
|
+ }
|
|
|
System.out.println("hellowatch"+operatorId);
|
|
|
List<String> placeList = placeOperatorService.findPlaceByOperator(operatorId);
|
|
|
Map<String, List<String>> map = new HashMap<String, List<String>>();
|
|
@@ -278,6 +285,10 @@ public class ApmacController extends SimpleController {
|
|
|
System.out.println("传递的参数为空");
|
|
|
return (new ArrayList<PlaceClassInformation>());
|
|
|
}
|
|
|
+ //-1查询所有
|
|
|
+ if(operatorId == -1){
|
|
|
+ operatorId = null;
|
|
|
+ }
|
|
|
List<PlaceClassInformation> placeClassNameList = placeClassInformationService.findPlaceClassByOperatorId(operatorId);
|
|
|
return placeClassNameList;
|
|
|
}
|