Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
map-parent
Commits
cdd803db
Commit
cdd803db
authored
Mar 01, 2023
by
宋珺琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入库日志修改(湖南)
parent
60e4c3ed
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
65 deletions
+67
-65
common/common_utils/src/main/java/com/founder/commonutils/model/newPublicEntity/CodeYymc/SkCodeYymc.java
+3
-3
common/service_base/src/main/java/com/founder/servicebase/config/TokenConfig.java
+1
-1
common/service_base/src/main/java/com/founder/servicebase/controller/CodeYymcController/CodeYymcController.java
+52
-53
common/service_base/src/main/java/com/founder/servicebase/interceptor/TokenInterceptor.java
+9
-6
common/service_base/src/main/java/com/founder/servicebase/mapper/mysqlMapper/CodeYymcMapper.java
+2
-2
No files found.
common/common_utils/src/main/java/com/founder/commonutils/model/newPublicEntity/CodeYymc/CodeYymc.java
→
common/common_utils/src/main/java/com/founder/commonutils/model/newPublicEntity/CodeYymc/
Sk
CodeYymc.java
View file @
cdd803db
...
...
@@ -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
Sk
CodeYymc
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
common/service_base/src/main/java/com/founder/servicebase/config/TokenConfig.java
View file @
cdd803db
...
...
@@ -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
())
...
...
common/service_base/src/main/java/com/founder/servicebase/controller/CodeYymcController/CodeYymcController.java
View file @
cdd803db
This diff is collapsed.
Click to expand it.
common/service_base/src/main/java/com/founder/servicebase/interceptor/TokenInterceptor.java
View file @
cdd803db
...
...
@@ -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.
Sk
CodeYymc
;
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
c
odeYymc
=
codeYymcMapper
.
selectOne
(
wrapper
);
SkCodeYymc
skC
odeYymc
=
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
(
c
odeYymc
.
getName
());
sysYhczrz
.
setYymcJyqk
(
skC
odeYymc
.
getName
());
sysYhczrz
.
setYymcdm
(
logcode
);
sysYhczrz
.
setCzlxdm
(
c
odeYymc
.
getCzlxdm
());
sysYhczrz
.
setCzlxdm
(
skC
odeYymc
.
getCzlxdm
());
try
{
if
(
c
odeYymc
.
getCzlxdm
().
equals
(
"05"
)){
if
(
skC
odeYymc
.
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
(
c
odeYymc
.
getCzlx
());
sysYhczrz
.
setCzlx
(
skC
odeYymc
.
getCzlx
());
sysYhczrz
.
setXxdjryXm
(
user
.
getLrr
());
sysYhczrz
.
setXxczryGmsfhm
(
user
.
getIdentitycard
());
...
...
common/service_base/src/main/java/com/founder/servicebase/mapper/mysqlMapper/CodeYymcMapper.java
View file @
cdd803db
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.
Sk
CodeYymc
;
public
interface
CodeYymcMapper
extends
BaseMapper
<
CodeYymc
>
{
public
interface
CodeYymcMapper
extends
BaseMapper
<
Sk
CodeYymc
>
{
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment