|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
|
/* |
|
|
|
|
package com.hisense.hiatmp.server_api.controller; |
|
|
|
|
|
|
|
|
|
import cn.hutool.http.HttpUtil; |
|
|
|
|
@ -71,22 +72,26 @@ public class CommonController extends HiatmpController { |
|
|
|
|
imageContentType.put("gif", "image/gif"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 获取当前登录账号信息 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/getOperator") |
|
|
|
|
public ServerResponse<?> getOperator() { |
|
|
|
|
OperatorVO vo = this.getOperatorVo(); |
|
|
|
|
return ServerResponse.ok(vo); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 获取绑定用户 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "获取绑定用户") |
|
|
|
|
@GetMapping(value = "/getBindOperator") |
|
|
|
|
public ServerResponse<?> getBindOperator(@RequestParam(required = false) String oauthUserId, |
|
|
|
|
@ -262,11 +267,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
InetAddress address = InetAddress.getLocalHost();//获取的是本地的IP地址 //PC-20140317PXKX/192.168.0.121
|
|
|
|
|
String hostAddress = address.getHostAddress();//192.168.0.121
|
|
|
|
|
operatorVO.setIp(hostAddress); |
|
|
|
|
*/ |
|
|
|
|
/* if (request.getHeader("clientIp") != null) { |
|
|
|
|
operatorVO.setIp(request.getHeader("clientIp")); |
|
|
|
|
} else { |
|
|
|
|
operatorVO.setIp(request.getRemoteAddr()); |
|
|
|
|
}*/ |
|
|
|
|
}*//*
|
|
|
|
|
|
|
|
|
|
operatorVO.setDepartmentid(operator.getCdepartmentid()); |
|
|
|
|
|
|
|
|
|
operatorVO.setDescription(operator.getCdescription()); |
|
|
|
|
@ -319,11 +326,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 绑定用户 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "绑定用户") |
|
|
|
|
@PostMapping("/insertBindOperator") |
|
|
|
|
public ServerResponse<?> insertBindOperator(@RequestBody BindOperatorDTO dto) { |
|
|
|
|
@ -398,11 +407,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 获取所有部门列表 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/getDepartmentList") |
|
|
|
|
public ServerResponse<List<Department>> getDepartmentList() { |
|
|
|
|
try { |
|
|
|
|
@ -414,11 +425,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 获取所有部门列表 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/getDepartmentListByLevel") |
|
|
|
|
public ServerResponse<List<Department>> getDepartmentListByLevel(@RequestParam("nlevel") String nlevel) { |
|
|
|
|
try { |
|
|
|
|
@ -431,11 +444,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 获取所有部门列表 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "根据区域获取部门", position = 1) |
|
|
|
|
@PostMapping("/queryDeptAndArea") |
|
|
|
|
@ -545,11 +560,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
return operatorVO; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 系统表中获取视频访问地址 |
|
|
|
|
* |
|
|
|
|
* @throws Exception |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/doGetVideoUrl") |
|
|
|
|
public ServerResponse<Map> doGetVideoUrl(@RequestBody Map<String, String> json) { |
|
|
|
|
Map map = new HashMap(); |
|
|
|
|
@ -570,11 +587,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 获取节假日列表数据 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@PostMapping("/getHolidayList") |
|
|
|
|
public ServerResponse getHolidayList(@RequestBody Map<String, String> param) throws Exception { |
|
|
|
|
Map data = new HashMap(); |
|
|
|
|
@ -589,11 +608,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
return ServerResponse.ok(holidayList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 获取指定视频id的相关信息,包括第三方编号的预置位 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/getVideoInfo") |
|
|
|
|
public ServerResponse<Map> getVideoInfo(@RequestBody Map<String, String> param) { |
|
|
|
|
try { |
|
|
|
|
@ -615,11 +636,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 获取指定视频第三方编号的相关信息,包括的预置位 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/getVideoInfoByThirdCode") |
|
|
|
|
public ServerResponse<List> getVideoInfoByThirdCode(@RequestBody Map<String, String> param) { |
|
|
|
|
List result = new ArrayList(); |
|
|
|
|
@ -633,11 +656,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 获取一张图区域 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "获取城市区域数据") |
|
|
|
|
@PostMapping("/getAreaList") |
|
|
|
|
public ServerResponse<List<AreaContent>> getAreaList(@RequestBody AreaQuery areaModel) { |
|
|
|
|
@ -650,11 +675,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 获取中心点 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "获取社会辖区区域数据") |
|
|
|
|
@ApiImplicitParams({ |
|
|
|
|
@ApiImplicitParam(paramType = "query", name = "socialDeptType", dataType = "String", value = "1:车管所 2:车管所分所 15,16,17:考试场地 25:4S店 20:体检医院 22,99机车交易中心 14检测站"), |
|
|
|
|
@ -666,11 +693,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 获取中心点 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "获取部门所属区域") |
|
|
|
|
@PostMapping("/getAllDepartmentAreaList") |
|
|
|
|
public ServerResponse<List<District>> getAllDepartmentAreaList() { |
|
|
|
|
@ -679,12 +708,14 @@ public class CommonController extends HiatmpController { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 查询坐标点最近的路段、路口、辖区 |
|
|
|
|
* |
|
|
|
|
* @param coordinate 单个坐标点 |
|
|
|
|
* @return Map |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询坐标点最近的路段、路口、辖区") |
|
|
|
|
@ApiImplicitParams({ |
|
|
|
|
@ApiImplicitParam(paramType = "query", name = "coordinate", dataType = "String"), |
|
|
|
|
@ -700,12 +731,14 @@ public class CommonController extends HiatmpController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 保存日志 |
|
|
|
|
* |
|
|
|
|
* @param logDataDTO 日志实体 |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "保存日志记录") |
|
|
|
|
@PostMapping("/saveLoginLog") |
|
|
|
|
public ServerResponse saveLoginLog(@RequestBody LogDataDTO logDataDTO) { |
|
|
|
|
@ -724,12 +757,14 @@ public class CommonController extends HiatmpController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 查询坐标点最近的路段、路口、辖区 |
|
|
|
|
* |
|
|
|
|
* @param coordinateList 多个坐标点 |
|
|
|
|
* @return List<Map> |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询坐标点最近的路段、路口、辖区") |
|
|
|
|
@ApiImplicitParams({ |
|
|
|
|
@ApiImplicitParam(paramType = "query", name = "coordinateList", dataType = "String"), |
|
|
|
|
@ -740,11 +775,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
return ServerResponse.ok(pointInfoList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 根据用户id 获取菜单权限 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "根据用户id 获取菜单权限(树形式)") |
|
|
|
|
@GetMapping("/getMenuTreeByUserId") |
|
|
|
|
public ServerResponse<List<Menu>> getMenuTreeByUserId(@RequestParam String userId) { |
|
|
|
|
@ -753,11 +790,13 @@ public class CommonController extends HiatmpController { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* 根据用户id 获取所有父部门 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
*//*
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "根据用户id 获取所有父类") |
|
|
|
|
@GetMapping("/getAllParentByUserId") |
|
|
|
|
public ServerResponse<List<DepartmentVO>> getAllParentByUserId(@RequestParam String userId) { |
|
|
|
|
@ -766,4 +805,4 @@ public class CommonController extends HiatmpController { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
|