Commit cdd803db by 宋珺琪

入库日志修改(湖南)

parent 60e4c3ed
......@@ -10,11 +10,11 @@ import lombok.Data;
import java.io.Serializable;
/**
* code_yymc(字典表)
* sk_code_yymc(字典表)
*/
@Data
@ApiModel("code_yymc")
public class CodeYymc implements Serializable {
@ApiModel("sk_code_yymc")
public class SkCodeYymc implements Serializable {
private static final long serialVersionUID = 1L;
......
......@@ -26,7 +26,7 @@ public class TokenConfig implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
String[] excludePatterns = new String[]{"/swagger-resources/**", "/webjars/**", "/v2/**", "/swagger-ui.html/**",
"/api", "/api-docs", "/api-docs/**", "/doc.html/**", "/koTime/**","/code/codeAdd"};
"/api", "/api-docs", "/api-docs/**", "/doc.html/**", "/koTime/**"};
registry.addInterceptor(tokenInterceptor)
.addPathPatterns("/**")//指定该类拦截的url
.excludePathPatterns(skInterceptorController.findAllUrl())
......
......@@ -7,7 +7,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.founder.commonutils.Exception.TokenException;
import com.founder.commonutils.model.newPublicEntity.*;
import com.founder.commonutils.model.newPublicEntity.CodeYymc.CodeYymc;
import com.founder.commonutils.model.newPublicEntity.CodeYymc.SkCodeYymc;
import com.founder.commonutils.model.newPublicEntity.CodeYymc.SysYhczrz;
import com.founder.commonutils.util.HttpUtil;
import com.founder.commonutils.util.JwtUser;
......@@ -130,6 +130,9 @@ public class TokenInterceptor implements HandlerInterceptor {
Token token = new Token(object);
System.out.println(token);
str = verifyToken(request,token);
if (request.getRequestURL().toString().contains("/code/codeAdd") || request.getRequestURL().toString().contains("/code/yymcSelect")){
return true;
}
if (str.equals("")) {
Enumeration<String> headerNames = request.getHeaderNames();
while(headerNames.hasMoreElements()){//如果请求头中还有key
......@@ -245,7 +248,7 @@ public class TokenInterceptor implements HandlerInterceptor {
// 根据code去查询对应名称;
QueryWrapper wrapper = new QueryWrapper<>();
wrapper.eq("code",logcode);
CodeYymc codeYymc = codeYymcMapper.selectOne(wrapper);
SkCodeYymc skCodeYymc = codeYymcMapper.selectOne(wrapper);
SysUser user = (SysUser)request.getAttribute("user");
SysYhczrz sysYhczrz = new SysYhczrz();
......@@ -254,11 +257,11 @@ public class TokenInterceptor implements HandlerInterceptor {
sysYhczrz.setYhdwGajgmc(user.getUnitname());
sysYhczrz.setYhXm(user.getTrueName());
sysYhczrz.setYhIp(user.getIp());
sysYhczrz.setYymcJyqk(codeYymc.getName());
sysYhczrz.setYymcJyqk(skCodeYymc.getName());
sysYhczrz.setYymcdm(logcode);
sysYhczrz.setCzlxdm(codeYymc.getCzlxdm());
sysYhczrz.setCzlxdm(skCodeYymc.getCzlxdm());
try {
if (codeYymc.getCzlxdm().equals("05")){
if (skCodeYymc.getCzlxdm().equals("05")){
sysYhczrz.setCzxxParam(null);
}
//get 或者 post multipart/form-data格式
......@@ -288,7 +291,7 @@ public class TokenInterceptor implements HandlerInterceptor {
throw new RuntimeException(e);
}
sysYhczrz.setCzlx(codeYymc.getCzlx());
sysYhczrz.setCzlx(skCodeYymc.getCzlx());
sysYhczrz.setXxdjryXm(user.getLrr());
sysYhczrz.setXxczryGmsfhm(user.getIdentitycard());
......
package com.founder.servicebase.mapper.mysqlMapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.founder.commonutils.model.newPublicEntity.CodeYymc.CodeYymc;
import com.founder.commonutils.model.newPublicEntity.CodeYymc.SkCodeYymc;
public interface CodeYymcMapper extends BaseMapper<CodeYymc> {
public interface CodeYymcMapper extends BaseMapper<SkCodeYymc> {
}
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