Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
b9c1d288
Commit
b9c1d288
authored
May 22, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录
parent
a9f0d594
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
30 deletions
+33
-30
MaterialController.java
.../gic/haoban/manage/web/controller/MaterialController.java
+3
-3
spring-interceptor.xml
...anage3-web/src/main/webapp/WEB-INF/spring-interceptor.xml
+30
-27
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/MaterialController.java
View file @
b9c1d288
...
...
@@ -125,7 +125,7 @@ public class MaterialController extends WebBaseController {
materialDTO
.
setWxEnterpriseId
(
wxEnterpriseId
);
materialDTO
.
setStaffId
(
login
.
getStaffId
());
materialDTO
.
setStaffName
(
login
.
getStaffName
()
);
materialDTO
.
setStaffName
(
null
);
String
materialTitle
=
materialDTO
.
getMaterialTitle
();
String
categoryId
=
materialDTO
.
getCategoryId
();
Integer
categoryType
=
materialDTO
.
getMaterialType
();
...
...
@@ -154,7 +154,7 @@ public class MaterialController extends WebBaseController {
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
material
.
setWxEnterpriseId
(
login
.
getWxEnterpriseId
());
material
.
setStaffId
(
login
.
getStaffId
());
material
.
setStaffName
(
login
.
getStaffName
()
);
material
.
setStaffName
(
null
);
if
(
StringUtils
.
isAnyBlank
(
material
.
getCategoryId
(),
material
.
getMaterialTitle
())
||
Objects
.
isNull
(
material
.
getMaterialType
()))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
...
...
@@ -183,7 +183,7 @@ public class MaterialController extends WebBaseController {
public
HaobanResponse
materialEdit
(
MaterialDTO
materialDTO
)
{
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
materialDTO
.
setStaffId
(
login
.
getStaffId
());
materialDTO
.
setStaffName
(
login
.
getStaffName
()
);
materialDTO
.
setStaffName
(
null
);
String
materialId
=
materialDTO
.
getMaterialId
();
MaterialDTO
dto
=
materialApiService
.
selectMaterialById
(
materialId
);
if
(
dto
==
null
)
{
...
...
haoban-manage3-web/src/main/webapp/WEB-INF/spring-interceptor.xml
View file @
b9c1d288
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc=
"http://www.springframework.org/schema/mvc"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"
>
<mvc:interceptors>
<bean
class=
"com.gic.haoban.common.interceptor.HttpLimitInterceptor"
/>
<bean
class=
"com.gic.commons.interceptor.HeaderTagInterceptor"
/>
<mvc:interceptor>
<mvc:mapping
path=
"/**"
/>
<mvc:exclude-mapping
path=
"/login.json"
/>
<mvc:exclude-mapping
path=
"/login-*"
/>
<mvc:exclude-mapping
path=
"/login_*"
/>
<mvc:exclude-mapping
path=
"/gic-login*"
/>
<mvc:exclude-mapping
path=
"/*test.json"
/>
<mvc:exclude-mapping
path=
"/test/*"
/>
<mvc:exclude-mapping
path=
"/login"
/>
<mvc:exclude-mapping
path=
"/nationcode/get-nationcode-list"
/>
<mvc:exclude-mapping
path=
"/get-pic-code"
/>
<mvc:exclude-mapping
path=
"/department-batch-del"
/>
<mvc:exclude-mapping
path=
"/staff-batch-del"
/>
<mvc:exclude-mapping
path=
"/upload-file*"
/>
<mvc:exclude-mapping
path=
"/upload-file-voice"
/>
<mvc:exclude-mapping
path=
"/get-login-qrcode"
/>
<bean
class=
"com.gic.haoban.common.interceptor.AuthWebInterceptor"
/>
</mvc:interceptor>
</mvc:interceptors>
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc=
"http://www.springframework.org/schema/mvc"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"
>
<mvc:interceptors>
<bean
class=
"com.gic.haoban.common.interceptor.HttpLimitInterceptor"
/>
<bean
class=
"com.gic.commons.interceptor.HeaderTagInterceptor"
/>
<mvc:interceptor>
<mvc:mapping
path=
"/**"
/>
<mvc:exclude-mapping
path=
"/login.json"
/>
<mvc:exclude-mapping
path=
"/login-*"
/>
<mvc:exclude-mapping
path=
"/login_*"
/>
<mvc:exclude-mapping
path=
"/gic-login*"
/>
<mvc:exclude-mapping
path=
"/*test.json"
/>
<mvc:exclude-mapping
path=
"/test/*"
/>
<mvc:exclude-mapping
path=
"/login"
/>
<mvc:exclude-mapping
path=
"/nationcode/get-nationcode-list"
/>
<mvc:exclude-mapping
path=
"/get-pic-code"
/>
<mvc:exclude-mapping
path=
"/department-batch-del"
/>
<mvc:exclude-mapping
path=
"/staff-batch-del"
/>
<mvc:exclude-mapping
path=
"/upload-file*"
/>
<mvc:exclude-mapping
path=
"/upload-file-voice"
/>
<mvc:exclude-mapping
path=
"/get-login-qrcode"
/>
<bean
class=
"com.gic.haoban.common.interceptor.AuthWebInterceptor"
/>
</mvc:interceptor>
<bean
class=
"com.gic.web.common.inteceptor.RightInterceptor"
/>
</mvc:interceptors>
</beans>
\ No newline at end of file
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