Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
e7fcf812
Commit
e7fcf812
authored
Oct 21, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
701f1ed3
6b3e1f42
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
49 additions
and
39 deletions
+49
-39
base-manager/pom.xml
base-manager/pom.xml
+1
-1
base-manager/src/main/java/com/mortals/xhx/base/framework/filter/SameSiteCookieFilter.java
...rtals/xhx/base/framework/filter/SameSiteCookieFilter.java
+2
-2
base-manager/src/main/java/com/mortals/xhx/common/utils/AreaMatchCodeUtil.java
.../java/com/mortals/xhx/common/utils/AreaMatchCodeUtil.java
+2
-2
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
...mortals/xhx/module/site/service/impl/SiteServiceImpl.java
+8
-2
base-manager/src/main/resources/config/mybatis-sqlmap-config.xml
...nager/src/main/resources/config/mybatis-sqlmap-config.xml
+1
-1
base-manager/src/test/java/com/mortals/httpclient/base/BaseAreaController.http
.../java/com/mortals/httpclient/base/BaseAreaController.http
+1
-1
portal-manager/pom.xml
portal-manager/pom.xml
+1
-2
portal-manager/src/main/java/com/mortals/xhx/base/framework/config/CorsConfig.java
...ava/com/mortals/xhx/base/framework/config/CorsConfig.java
+3
-4
portal-manager/src/main/java/com/mortals/xhx/base/framework/filter/SameSiteCookieFilter.java
...rtals/xhx/base/framework/filter/SameSiteCookieFilter.java
+18
-6
portal-manager/src/main/java/com/mortals/xhx/base/framework/interceptor/AuthUserInterceptor.java
...s/xhx/base/framework/interceptor/AuthUserInterceptor.java
+2
-0
portal-manager/src/main/java/com/mortals/xhx/base/system/resource/model/ResourceQuery.java
...mortals/xhx/base/system/resource/model/ResourceQuery.java
+0
-1
portal-manager/src/main/java/com/mortals/xhx/base/system/resource/service/impl/ResourceServiceImpl.java
...ase/system/resource/service/impl/ResourceServiceImpl.java
+7
-16
portal-manager/src/main/java/com/mortals/xhx/base/system/resource/web/ResourceController.java
...tals/xhx/base/system/resource/web/ResourceController.java
+3
-1
No files found.
base-manager/pom.xml
View file @
e7fcf812
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<profiles.active>
test
</profiles.active>
<profiles.active>
test
</profiles.active>
<profiles.server.debug>
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5513
</profiles.server.debug>
<profiles.server.debug>
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5513
</profiles.server.debug>
<profiles.nacos.server-addr>
192.168.0.252:8848
</profiles.nacos.server-addr>
<profiles.nacos.server-addr>
192.168.0.252:8848
</profiles.nacos.server-addr>
<profiles.req.json.check>
tru
e
</profiles.req.json.check>
<profiles.req.json.check>
fals
e
</profiles.req.json.check>
<profiles.trustedReferer>
192.168.0.98,localhost
</profiles.trustedReferer>
<profiles.trustedReferer>
192.168.0.98,localhost
</profiles.trustedReferer>
</properties>
</properties>
</profile>
</profile>
...
...
base-manager/src/main/java/com/mortals/xhx/base/framework/filter/SameSiteCookieFilter.java
View file @
e7fcf812
...
@@ -21,8 +21,8 @@ import java.net.URL;
...
@@ -21,8 +21,8 @@ import java.net.URL;
import
java.util.List
;
import
java.util.List
;
@Slf4j
@Slf4j
@Component
//
@Component
@Profile
({
"yanyuan"
,
"test"
})
//
@Profile({"yanyuan", "test"})
public
class
SameSiteCookieFilter
implements
Filter
{
public
class
SameSiteCookieFilter
implements
Filter
{
@Autowired
@Autowired
...
...
base-manager/src/main/java/com/mortals/xhx/common/utils/AreaMatchCodeUtil.java
View file @
e7fcf812
...
@@ -20,8 +20,8 @@ public class AreaMatchCodeUtil {
...
@@ -20,8 +20,8 @@ public class AreaMatchCodeUtil {
if
(
AreaLevelEnum
.
地市州
.
getValue
()
==
areaLevel
)
{
if
(
AreaLevelEnum
.
地市州
.
getValue
()
==
areaLevel
)
{
matchCode
=
StrUtil
.
sub
(
matchCode
,
0
,
3
);
matchCode
=
StrUtil
.
sub
(
matchCode
,
0
,
4
);
return
StrUtil
.
padAfter
(
matchCode
,
3
,
"0"
);
return
StrUtil
.
padAfter
(
matchCode
,
4
,
"0"
);
}
else
if
(
AreaLevelEnum
.
区县
.
getValue
()
==
areaLevel
)
{
}
else
if
(
AreaLevelEnum
.
区县
.
getValue
()
==
areaLevel
)
{
//510921174000
//510921174000
matchCode
=
StrUtil
.
sub
(
matchCode
,
0
,
6
);
matchCode
=
StrUtil
.
sub
(
matchCode
,
0
,
6
);
...
...
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
View file @
e7fcf812
...
@@ -395,8 +395,14 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
...
@@ -395,8 +395,14 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
UserPdu
userPdu
=
new
UserPdu
();
UserPdu
userPdu
=
new
UserPdu
();
userPdu
.
setPage
(
1
);
userPdu
.
setPage
(
1
);
userPdu
.
setSize
(-
1
);
userPdu
.
setSize
(-
1
);
Rest
<
RespData
<
List
<
UserPdu
>>>
list
=
userFeign
.
list
(
userPdu
);
Rest
<
RespData
<
List
<
UserPdu
>>>
userRest
=
userFeign
.
list
(
userPdu
);
userService
.
updateUserList
(
list
.
getData
().
getData
());
if
(
YesNoEnum
.
YES
.
getValue
()==
userRest
.
getCode
()){
if
(!
ObjectUtils
.
isEmpty
(
userRest
.
getData
())
&&!
ObjectUtils
.
isEmpty
(
userRest
.
getData
().
getData
()))
{
userService
.
updateUserList
(
userRest
.
getData
().
getData
());
}
}
}
}
super
.
removeAfter
(
ids
,
context
,
result
);
super
.
removeAfter
(
ids
,
context
,
result
);
}
}
...
...
base-manager/src/main/resources/config/mybatis-sqlmap-config.xml
View file @
e7fcf812
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<property
name=
"showSql"
value=
"MySql"
/>
<property
name=
"showSql"
value=
"MySql"
/>
</plugin>
</plugin>
<plugin
interceptor=
"com.mortals.framework.thirty.mybatis.LogInterceptor"
>
<plugin
interceptor=
"com.mortals.framework.thirty.mybatis.LogInterceptor"
>
<property
name=
"enableExecutorTime"
value=
"
tru
e"
/>
<property
name=
"enableExecutorTime"
value=
"
fals
e"
/>
<property
name=
"showSql"
value=
"false"
/>
<property
name=
"showSql"
value=
"false"
/>
</plugin>
</plugin>
...
...
base-manager/src/test/java/com/mortals/httpclient/base/BaseAreaController.http
View file @
e7fcf812
...
@@ -54,7 +54,7 @@ POST {{baseUrl}}/base/area/genSubAreaByAreaName
...
@@ -54,7 +54,7 @@ POST {{baseUrl}}/base/area/genSubAreaByAreaName
Content-Type: application/json
Content-Type: application/json
{
{
"areaCode": "51
0714
000000"
"areaCode": "51
1900
000000"
}
}
...
...
portal-manager/pom.xml
View file @
e7fcf812
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<profiles.active>
test
</profiles.active>
<profiles.active>
test
</profiles.active>
<profiles.nacos.server-addr>
192.168.0.252:8848
</profiles.nacos.server-addr>
<profiles.nacos.server-addr>
192.168.0.252:8848
</profiles.nacos.server-addr>
<profiles.trustedReferer>
192.168.0.98,localhost,192.168.0.252
</profiles.trustedReferer>
<profiles.trustedReferer>
192.168.0.98,localhost,192.168.0.252
</profiles.trustedReferer>
<profiles.req.json.check>
tru
e
</profiles.req.json.check>
<profiles.req.json.check>
fals
e
</profiles.req.json.check>
</properties>
</properties>
</profile>
</profile>
...
@@ -96,7 +96,6 @@
...
@@ -96,7 +96,6 @@
<profiles.active>
yanyuan
</profiles.active>
<profiles.active>
yanyuan
</profiles.active>
<profiles.nacos.server-addr>
172.16.30.245:8848
</profiles.nacos.server-addr>
<profiles.nacos.server-addr>
172.16.30.245:8848
</profiles.nacos.server-addr>
<profiles.trustedReferer>
127.0.0.1,localhost,10.233.82.175,172.16.30.245,172.16.30.246,172.16.30.247,172.16.30.248
</profiles.trustedReferer>
<profiles.trustedReferer>
127.0.0.1,localhost,10.233.82.175,172.16.30.245,172.16.30.246,172.16.30.247,172.16.30.248
</profiles.trustedReferer>
<profiles.req.json.check>
true
</profiles.req.json.check>
</properties>
</properties>
</profile>
</profile>
...
...
portal-manager/src/main/java/com/mortals/xhx/base/framework/config/CorsConfig.java
View file @
e7fcf812
...
@@ -22,10 +22,9 @@ public class CorsConfig implements WebMvcConfigurer {
...
@@ -22,10 +22,9 @@ public class CorsConfig implements WebMvcConfigurer {
//初始化配置对象
//初始化配置对象
CorsConfiguration
configuration
=
new
CorsConfiguration
();
CorsConfiguration
configuration
=
new
CorsConfiguration
();
//允许跨域访问的域名
//允许跨域访问的域名
//configuration.addAllowedOrigin("*");
configuration
.
addAllowedOrigin
(
"*"
);
// configuration.addAllowedOrigin("http://192.168.0.98");
configuration
.
setAllowCredentials
(
true
);
//运行携带cookie
configuration
.
setAllowCredentials
(
true
);
//运行携带cookie
//
configuration.addAllowedMethod("*"); //代表所有请求方法
configuration
.
addAllowedMethod
(
"*"
);
//代表所有请求方法
configuration
.
addAllowedHeader
(
"*"
);
//允许携带任何头信息
configuration
.
addAllowedHeader
(
"*"
);
//允许携带任何头信息
//初始化cors配置源对象
//初始化cors配置源对象
...
@@ -40,7 +39,7 @@ public class CorsConfig implements WebMvcConfigurer {
...
@@ -40,7 +39,7 @@ public class CorsConfig implements WebMvcConfigurer {
public
void
addCorsMappings
(
CorsRegistry
registry
)
{
public
void
addCorsMappings
(
CorsRegistry
registry
)
{
registry
.
addMapping
(
"/**"
)
registry
.
addMapping
(
"/**"
)
.
allowCredentials
(
true
)
.
allowCredentials
(
true
)
//
.allowedOrigins("*")
.
allowedOrigins
(
"*"
)
.
allowedMethods
(
new
String
[]
{
"GET"
,
"POST"
,
"PUT"
,
"DELETE"
})
.
allowedMethods
(
new
String
[]
{
"GET"
,
"POST"
,
"PUT"
,
"DELETE"
})
.
allowedHeaders
(
"*"
)
.
allowedHeaders
(
"*"
)
.
exposedHeaders
(
"*"
);
.
exposedHeaders
(
"*"
);
...
...
portal-manager/src/main/java/com/mortals/xhx/base/framework/filter/SameSiteCookieFilter.java
View file @
e7fcf812
...
@@ -16,14 +16,11 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -16,14 +16,11 @@ import javax.servlet.http.HttpServletResponse;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.net.URI
;
import
java.net.URI
;
import
java.net.URL
;
import
java.net.URL
;
import
java.util.Arrays
;
import
java.util.*
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Set
;
@Slf4j
@Slf4j
@Component
//
@Component
@Profile
({
"yanyuan"
,
"test
"
})
//@Profile({"yanyuan
"})
public
class
SameSiteCookieFilter
implements
Filter
{
public
class
SameSiteCookieFilter
implements
Filter
{
...
@@ -52,10 +49,25 @@ public class SameSiteCookieFilter implements Filter {
...
@@ -52,10 +49,25 @@ public class SameSiteCookieFilter implements Filter {
httpResponse
.
setHeader
(
"Access-Control-Expose-Headers"
,
"*"
);
httpResponse
.
setHeader
(
"Access-Control-Expose-Headers"
,
"*"
);
}
}
}
}
// addSameSiteAttribute((HttpServletResponse) response);
chain
.
doFilter
(
request
,
response
);
chain
.
doFilter
(
request
,
response
);
}
}
private
void
addSameSiteAttribute
(
HttpServletResponse
response
)
{
Collection
<
String
>
headers
=
response
.
getHeaders
(
"Set-Cookie"
);
boolean
firstHeader
=
true
;
for
(
String
header
:
headers
)
{
if
(
firstHeader
)
{
response
.
setHeader
(
"Set-Cookie"
,
String
.
format
(
"%s; %s"
,
header
,
"SameSite=Strict"
));
firstHeader
=
false
;
continue
;
}
response
.
addHeader
(
"Set-Cookie"
,
String
.
format
(
"%s; %s"
,
header
,
"SameSite=Strict"
));
}
}
@Override
@Override
public
void
init
(
FilterConfig
filterConfig
)
throws
ServletException
{}
public
void
init
(
FilterConfig
filterConfig
)
throws
ServletException
{}
...
...
portal-manager/src/main/java/com/mortals/xhx/base/framework/interceptor/AuthUserInterceptor.java
View file @
e7fcf812
...
@@ -27,6 +27,7 @@ import org.springframework.util.ObjectUtils;
...
@@ -27,6 +27,7 @@ import org.springframework.util.ObjectUtils;
import
org.springframework.web.method.HandlerMethod
;
import
org.springframework.web.method.HandlerMethod
;
import
org.springframework.web.servlet.resource.ResourceHttpRequestHandler
;
import
org.springframework.web.servlet.resource.ResourceHttpRequestHandler
;
import
javax.servlet.http.Cookie
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.lang.reflect.Method
;
import
java.lang.reflect.Method
;
...
@@ -93,6 +94,7 @@ public class AuthUserInterceptor extends BaseInterceptor {
...
@@ -93,6 +94,7 @@ public class AuthUserInterceptor extends BaseInterceptor {
}
}
}
}
}
}
//Origin
//Origin
...
...
portal-manager/src/main/java/com/mortals/xhx/base/system/resource/model/ResourceQuery.java
View file @
e7fcf812
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
*/
*/
package
com.mortals.xhx.base.system.resource.model
;
package
com.mortals.xhx.base.system.resource.model
;
import
java.util.List
;
import
java.util.List
;
/**
/**
* <p>Title: 资源信息</p>
* <p>Title: 资源信息</p>
...
...
portal-manager/src/main/java/com/mortals/xhx/base/system/resource/service/impl/ResourceServiceImpl.java
View file @
e7fcf812
...
@@ -19,11 +19,11 @@ import com.mortals.xhx.base.system.resource.dao.ResourceDao;
...
@@ -19,11 +19,11 @@ import com.mortals.xhx.base.system.resource.dao.ResourceDao;
import
com.mortals.xhx.base.system.resource.model.ResourceEntity
;
import
com.mortals.xhx.base.system.resource.model.ResourceEntity
;
import
com.mortals.xhx.base.system.resource.model.ResourceQuery
;
import
com.mortals.xhx.base.system.resource.model.ResourceQuery
;
import
com.mortals.xhx.base.system.resource.service.ResourceService
;
import
com.mortals.xhx.base.system.resource.service.ResourceService
;
import
com.mortals.xhx.base.system.role.model.RoleAuthEntity
;
import
com.mortals.xhx.base.system.role.model.RoleAuthQuery
;
import
com.mortals.xhx.base.system.role.service.RoleAuthService
;
import
com.mortals.xhx.common.key.RedisKey
;
import
com.mortals.xhx.common.key.RedisKey
;
import
com.mortals.xhx.common.utils.ControllerScanUtil
;
import
com.mortals.xhx.common.utils.ControllerScanUtil
;
import
com.mortals.xhx.module.role.model.RoleAuthEntity
;
import
com.mortals.xhx.module.role.model.RoleAuthQuery
;
import
com.mortals.xhx.module.role.service.RoleAuthService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -73,14 +73,7 @@ public class ResourceServiceImpl extends AbstractCRUDServiceImpl<ResourceDao, Re
...
@@ -73,14 +73,7 @@ public class ResourceServiceImpl extends AbstractCRUDServiceImpl<ResourceDao, Re
@Override
@Override
public
Set
<
String
>
findUrlSetByUserId
(
Long
userId
)
throws
AppException
{
public
Set
<
String
>
findUrlSetByUserId
(
Long
userId
)
throws
AppException
{
Set
<
String
>
urls
=
new
HashSet
<>();
Set
<
String
>
urls
=
new
HashSet
<>();
List
<
ResourceEntity
>
resList
=
new
ArrayList
<>();
List
<
ResourceEntity
>
resList
=
this
.
findListByUserId
(
userId
);
if
(
1L
==
userId
)
{
//管理员
resList
=
this
.
find
(
new
ResourceQuery
());
}
else
{
resList
=
this
.
findListByUserId
(
userId
);
}
for
(
ResourceEntity
res
:
resList
)
{
for
(
ResourceEntity
res
:
resList
)
{
String
url
=
res
.
getUrl
();
String
url
=
res
.
getUrl
();
if
(
StringUtils
.
isEmpty
(
url
))
{
if
(
StringUtils
.
isEmpty
(
url
))
{
...
@@ -101,7 +94,7 @@ public class ResourceServiceImpl extends AbstractCRUDServiceImpl<ResourceDao, Re
...
@@ -101,7 +94,7 @@ public class ResourceServiceImpl extends AbstractCRUDServiceImpl<ResourceDao, Re
public
Rest
<
String
>
refreshResourceUrl
(
String
packageName
,
Context
context
)
{
public
Rest
<
String
>
refreshResourceUrl
(
String
packageName
,
Context
context
)
{
List
<
Class
<?>>
classList
=
ControllerScanUtil
.
getAllClassByPackageName
(
packageName
);
List
<
Class
<?>>
classList
=
ControllerScanUtil
.
getAllClassByPackageName
(
packageName
);
//System.out.println(classList); //获取到了所有的类
//System.out.println(classList); //获取到了所有的类
List
<
ResourceEntity
>
newResourcelist
=
ControllerScanUtil
.
getAnnotationInfo
(
classList
).
stream
().
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
f
.
getUrl
())).
collect
(
Collectors
.
toList
());
List
<
ResourceEntity
>
newResourcelist
=
ControllerScanUtil
.
getAnnotationInfo
(
classList
).
stream
().
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
f
.
getUrl
())).
collect
(
Collectors
.
toList
());
Map
<
String
,
List
<
ResourceEntity
>>
localResourceMap
=
this
.
find
(
new
ResourceQuery
()).
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getName
()));
Map
<
String
,
List
<
ResourceEntity
>>
localResourceMap
=
this
.
find
(
new
ResourceQuery
()).
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getName
()));
Map
<
String
,
List
<
ResourceEntity
>>
newResourceMap
=
newResourcelist
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getName
()));
Map
<
String
,
List
<
ResourceEntity
>>
newResourceMap
=
newResourcelist
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getName
()));
...
@@ -191,14 +184,12 @@ public class ResourceServiceImpl extends AbstractCRUDServiceImpl<ResourceDao, Re
...
@@ -191,14 +184,12 @@ public class ResourceServiceImpl extends AbstractCRUDServiceImpl<ResourceDao, Re
}
}
private
void
updateUserMenuUrlCache
()
{
private
void
updateUserMenuUrlCache
()
{
//更新用户菜单
cacheService
.
del
(
RedisKey
.
KEY_USER_MENU_CACHE
);
/* //更新用户菜单
Set
<
String
>
hkeys
=
cacheService
.
hkeys
(
RedisKey
.
KEY_USER_MENU_CACHE
);
Set
<
String
>
hkeys
=
cacheService
.
hkeys
(
RedisKey
.
KEY_USER_MENU_CACHE
);
for
(
String
userId
:
hkeys
)
{
for
(
String
userId
:
hkeys
)
{
Set
<
String
>
urls
=
this
.
findUrlSetByUserId
(
DataUtil
.
converStr2Long
(
userId
,
0L
));
Set
<
String
>
urls
=
this
.
findUrlSetByUserId
(
DataUtil
.
converStr2Long
(
userId
,
0L
));
String
menuUrlCode
=
generateMenuUrlCode
(
urls
);
String
menuUrlCode
=
generateMenuUrlCode
(
urls
);
cacheService
.
hset
(
RedisKey
.
KEY_USER_MENU_CACHE
,
userId
,
menuUrlCode
);
cacheService
.
hset
(
RedisKey
.
KEY_USER_MENU_CACHE
,
userId
,
menuUrlCode
);
}
*/
}
}
}
}
}
\ No newline at end of file
portal-manager/src/main/java/com/mortals/xhx/base/system/resource/web/ResourceController.java
View file @
e7fcf812
...
@@ -8,6 +8,7 @@ import com.mortals.framework.common.Rest;
...
@@ -8,6 +8,7 @@ import com.mortals.framework.common.Rest;
import
com.mortals.framework.common.code.UserType
;
import
com.mortals.framework.common.code.UserType
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.OrderCol
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.resource.model.ResourceEntity
;
import
com.mortals.xhx.base.system.resource.model.ResourceEntity
;
import
com.mortals.xhx.base.system.resource.service.ResourceService
;
import
com.mortals.xhx.base.system.resource.service.ResourceService
;
...
@@ -19,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -19,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -67,7 +69,7 @@ public class ResourceController extends BaseCRUDJsonBodyMappingController<Resour
...
@@ -67,7 +69,7 @@ public class ResourceController extends BaseCRUDJsonBodyMappingController<Resour
@Override
@Override
protected
void
doListBefore
(
ResourceEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
protected
void
doListBefore
(
ResourceEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"sourceType"
)));
super
.
doListBefore
(
query
,
model
,
context
);
super
.
doListBefore
(
query
,
model
,
context
);
}
}
...
...
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