|
@@ -18,6 +18,7 @@ import org.apache.log4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.Model;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -108,7 +109,8 @@ public class ApmacController extends SimpleController {
|
|
|
cn = String.valueOf(paramMap.get("cn"));
|
|
|
}
|
|
|
|
|
|
- if(null != paramMap.get("cnCity") && !"".equals(paramMap.get("cnCity"))) {
|
|
|
+ if(!StringUtils.hasLength((String)paramMap.get("cnCity"))) {
|
|
|
+
|
|
|
cnCity = String.valueOf(paramMap.get("cnCity"));
|
|
|
}
|
|
|
|
|
@@ -137,7 +139,7 @@ public class ApmacController extends SimpleController {
|
|
|
List<Wifi> wifiList = wifiService.findByParamsBack(paramMap, pager);
|
|
|
|
|
|
//如果下拉框传的是默认值,则回传一个对应的值给前端
|
|
|
- if(null == operatorId ||-1 == operatorId) {
|
|
|
+ if(null == operatorId || -1 == operatorId) {
|
|
|
operatorName = "全部媒体";
|
|
|
} else {
|
|
|
operatorName = operatorService.findById(operatorId).getCompanyName();
|
|
@@ -285,10 +287,12 @@ 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;
|
|
|
}
|