|
@@ -133,7 +133,7 @@ public class LogercostInterceptor implements HandlerInterceptor {
|
|
133
|
log.setOrgId(Integer.parseInt(user_map.get("orgId")));//单位
|
133
|
log.setOrgId(Integer.parseInt(user_map.get("orgId")));//单位
|
|
134
|
String enumid = ObjectUtils.toString(user_map.get("areaCode"), "0");
|
134
|
String enumid = ObjectUtils.toString(user_map.get("areaCode"), "0");
|
|
135
|
if (!"0".equals(enumid)) {
|
135
|
if (!"0".equals(enumid)) {
|
|
136
|
- String httpurl = "http://"+device_ip+":9022/Enum/findByEnum?id="+Integer.parseInt(enumid);
|
|
|
|
|
|
136
|
+ String httpurl = "http://localhost:9022/Enum/findByEnum?id="+Integer.parseInt(enumid);
|
|
137
|
String strResult = doGet(httpurl);
|
137
|
String strResult = doGet(httpurl);
|
|
138
|
if (!"".equals(strResult)) {
|
138
|
if (!"".equals(strResult)) {
|
|
139
|
JSONObject enum_obj = JSONObject.parseObject(strResult);
|
139
|
JSONObject enum_obj = JSONObject.parseObject(strResult);
|
|
@@ -239,6 +239,7 @@ public class LogercostInterceptor implements HandlerInterceptor {
|
|
239
|
log.setUserZh(ObjectUtils.toString(user_map.get("username"),""));//账号
|
239
|
log.setUserZh(ObjectUtils.toString(user_map.get("username"),""));//账号
|
|
240
|
log.setUserName(ObjectUtils.toString(user_map.get("realName"),""));//名称
|
240
|
log.setUserName(ObjectUtils.toString(user_map.get("realName"),""));//名称
|
|
241
|
String device_ip = getClientIpAddress(request);
|
241
|
String device_ip = getClientIpAddress(request);
|
|
|
|
242
|
+ System.out.println(device_ip);
|
|
242
|
log.setDeviceIp(device_ip);//操作IP
|
243
|
log.setDeviceIp(device_ip);//操作IP
|
|
243
|
log.setFuncId(Integer.parseInt(object.get("funcId").toString()));//功能ID
|
244
|
log.setFuncId(Integer.parseInt(object.get("funcId").toString()));//功能ID
|
|
244
|
log.setFuncName(ObjectUtils.toString(object.get("funcName")));//功能名称
|
245
|
log.setFuncName(ObjectUtils.toString(object.get("funcName")));//功能名称
|
|
@@ -248,7 +249,7 @@ public class LogercostInterceptor implements HandlerInterceptor {
|
|
248
|
|
249
|
|
|
249
|
String enumid = ObjectUtils.toString(user_map.get("areaCode"), "0");
|
250
|
String enumid = ObjectUtils.toString(user_map.get("areaCode"), "0");
|
|
250
|
if (!"0".equals(enumid)) {
|
251
|
if (!"0".equals(enumid)) {
|
|
251
|
- String httpurl = "http://"+device_ip+":9022/Enum/findByEnum?id="+Integer.parseInt(enumid);
|
|
|
|
|
|
252
|
+ String httpurl = "http://localhost:9022/Enum/findByEnum?id="+Integer.parseInt(enumid);
|
|
252
|
String strResult = doGet(httpurl);
|
253
|
String strResult = doGet(httpurl);
|
|
253
|
if (!"".equals(strResult)) {
|
254
|
if (!"".equals(strResult)) {
|
|
254
|
JSONObject enum_obj = JSONObject.parseObject(strResult);
|
255
|
JSONObject enum_obj = JSONObject.parseObject(strResult);
|
|
@@ -322,7 +323,7 @@ public class LogercostInterceptor implements HandlerInterceptor {
|
|
322
|
log.setOrgId(Integer.parseInt(user_map.get("orgId")));//所属机构
|
323
|
log.setOrgId(Integer.parseInt(user_map.get("orgId")));//所属机构
|
|
323
|
String enumid = ObjectUtils.toString(user_map.get("areaCode"), "0");
|
324
|
String enumid = ObjectUtils.toString(user_map.get("areaCode"), "0");
|
|
324
|
if (!"0".equals(enumid)) {
|
325
|
if (!"0".equals(enumid)) {
|
|
325
|
- String httpurl = "http://"+device_ip+":9022/Enum/findByEnum?id="+Integer.parseInt(enumid);
|
|
|
|
|
|
326
|
+ String httpurl = "http://localhost:9022/Enum/findByEnum?id="+Integer.parseInt(enumid);
|
|
326
|
String strResult = doGet(httpurl);
|
327
|
String strResult = doGet(httpurl);
|
|
327
|
if (!"".equals(strResult)) {
|
328
|
if (!"".equals(strResult)) {
|
|
328
|
JSONObject enum_obj = JSONObject.parseObject(strResult);
|
329
|
JSONObject enum_obj = JSONObject.parseObject(strResult);
|