| | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/queryCity1/{code}") |
| | | public ResultUtil queryCity1(@PathVariable("code") String code){ |
| | | @PostMapping("/queryCity1/{code}/{$operationId}") |
| | | public ResultUtil queryCity1(@PathVariable("code") String code, |
| | | @PathVariable("$operationId") String operationId){ |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | String cityCode = null; |
| | |
| | | // CityManager cityManager = cityManagerClient.queryCityManagerById(objectId); |
| | | // cityCode = cityManager.getCityCode(); |
| | | // } |
| | | System.out.println("======="+storeService.queryCity(code, cityCode)); |
| | | Integer operatorId= 0; |
| | | Integer type= 0; |
| | | if (operationId.equals("平台")){ |
| | | type = 1; |
| | | operatorId = null; |
| | | }else{ |
| | | operatorId = Integer.valueOf(operationId); |
| | | type = 2; |
| | | } |
| | | // return storeService.queryCity(code, cityCode); |
| | | return new ResultUtil(0,null,null,storeService.queryCity(code, cityCode),null); |
| | | return new ResultUtil(0,null,null,storeService.queryCity2(code, cityCode |
| | | ,type,operatorId),null); |
| | | } |
| | | |
| | | @ResponseBody |