Commit faaded02 by yangyang

操作日志使用真实ip(湖南)

parent fbb3d65c
......@@ -13,6 +13,7 @@ import com.founder.commonutils.model.newPublicEntity.MapRestResult;
import com.founder.commonutils.model.newPublicEntity.SysUser;
import com.founder.commonutils.util.HttpUtil;
import com.founder.commonutils.util.KeyUtilNaotu;
import com.founder.commonutils.util.NetworkUtil;
import com.founder.servicebase.logs.OperLog;
import com.founder.servicebase.logs.OperationType;
import com.founder.servicebase.mapper.mysqlMapper.CodeYymcMapper;
......@@ -197,7 +198,7 @@ public class CodeYymcController {
sysYhczrz.setYhdwGajgjgdm(user.getUnitcode());
sysYhczrz.setYhdwGajgmc(user.getUnitname());
sysYhczrz.setYhXm(user.getTrueName());
sysYhczrz.setYhIp(user.getIp());
sysYhczrz.setYhIp(NetworkUtil.getIpAddr(request));// IP使用真实ip
sysYhczrz.setYymcJyqk(skCodeYymc.getName());
sysYhczrz.setYymcdm(logcode);
sysYhczrz.setCzlxdm(skCodeYymc.getCzlxdm());
......
......@@ -256,7 +256,7 @@ public class TokenInterceptor implements HandlerInterceptor {
sysYhczrz.setYhdwGajgjgdm(user.getUnitcode());
sysYhczrz.setYhdwGajgmc(user.getUnitname());
sysYhczrz.setYhXm(user.getTrueName());
sysYhczrz.setYhIp(user.getIp());
sysYhczrz.setYhIp(NetworkUtil.getIpAddr(request));// IP使用真实ip
sysYhczrz.setYymcJyqk(skCodeYymc.getName());
sysYhczrz.setYymcdm(logcode);
sysYhczrz.setCzlxdm(skCodeYymc.getCzlxdm());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment