|
@@ -261,22 +261,12 @@ public class ApmacController extends SimpleController {
|
|
|
|
|
|
/**
|
|
|
* 查找所有的场景
|
|
|
- * 这里必须传递一个运营商id,因为是搜索某一个运营商下的场景
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/place")
|
|
|
public @ResponseBody
|
|
|
- Map<String, List<String>> findPlaceDefinedByOperator(@RequestParam Long operatorId) {
|
|
|
- if(null == operatorId) {
|
|
|
- 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>> findPlaceDefinedByOperator() {
|
|
|
+ List<String> placeList = placeOperatorService.findAllPlace();
|
|
|
Map<String, List<String>> map = new HashMap<String, List<String>>();
|
|
|
map.put("place", placeList);
|
|
|
return map;
|