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
66652be9
Commit
66652be9
authored
Feb 15, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改根据业务查询部门逻辑
parent
7d7587b7
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
8 deletions
+18
-8
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
...mortals/xhx/module/site/service/impl/SiteServiceImpl.java
+8
-0
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowServiceImpl.java
...als/xhx/module/window/service/impl/WindowServiceImpl.java
+6
-4
base-manager/src/test/java/com/mortals/httpclient/site/SiteBusinessController.http
...a/com/mortals/httpclient/site/SiteBusinessController.http
+1
-1
portal-manager/pom.xml
portal-manager/pom.xml
+1
-1
smart-gateway/src/main/java/com/mortals/xhx/base/framework/filter/AccessLogFilter.java
...om/mortals/xhx/base/framework/filter/AccessLogFilter.java
+2
-2
No files found.
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
View file @
66652be9
...
@@ -368,8 +368,16 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
...
@@ -368,8 +368,16 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
private
List
<
SiteTreeSelect
>
getSiteTreeSelects
(
String
userId
)
{
private
List
<
SiteTreeSelect
>
getSiteTreeSelects
(
String
userId
)
{
String
siteTreeSelectStr
=
cacheService
.
hget
(
USER_SITE_TREE
,
userId
,
String
.
class
);
String
siteTreeSelectStr
=
cacheService
.
hget
(
USER_SITE_TREE
,
userId
,
String
.
class
);
log
.
info
(
"userId:{},siteTreeSelectStr:{}"
,
userId
,
siteTreeSelectStr
);
//反序列化树对象
//反序列化树对象
if
(
ObjectUtils
.
isEmpty
(
siteTreeSelectStr
)){
return
new
ArrayList
<>();
}
JSONArray
jsonArray
=
JSON
.
parseArray
(
siteTreeSelectStr
);
JSONArray
jsonArray
=
JSON
.
parseArray
(
siteTreeSelectStr
);
if
(
ObjectUtils
.
isEmpty
(
jsonArray
)){
return
new
ArrayList
<>();
}
List
<
SiteTreeSelect
>
collect
=
jsonArray
.
stream
().
map
(
item
->
{
List
<
SiteTreeSelect
>
collect
=
jsonArray
.
stream
().
map
(
item
->
{
SiteTreeSelect
siteTreeSelect
=
JSON
.
parseObject
(
item
.
toString
(),
SiteTreeSelect
.
class
);
SiteTreeSelect
siteTreeSelect
=
JSON
.
parseObject
(
item
.
toString
(),
SiteTreeSelect
.
class
);
return
siteTreeSelect
;
return
siteTreeSelect
;
...
...
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowServiceImpl.java
View file @
66652be9
...
@@ -91,7 +91,10 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
...
@@ -91,7 +91,10 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
if
(
ObjectUtils
.
isEmpty
(
windowId
))
{
if
(
ObjectUtils
.
isEmpty
(
windowId
))
{
throw
new
AppException
(
"请选择对应窗口"
);
throw
new
AppException
(
"请选择对应窗口"
);
}
}
List
<
Long
>
businessIdList
=
Arrays
.
asList
(
businessIds
.
split
(
","
)).
stream
().
map
(
Long:
:
parseLong
).
collect
(
Collectors
.
toList
());
List
<
Long
>
businessIdList
=
new
ArrayList
<>();
if
(!
ObjectUtils
.
isEmpty
(
businessIds
)){
businessIdList
=
Arrays
.
asList
(
businessIds
.
split
(
","
)).
stream
().
map
(
Long:
:
parseLong
).
collect
(
Collectors
.
toList
());
}
WindowBusinessQuery
windowBusinessQuery
=
new
WindowBusinessQuery
();
WindowBusinessQuery
windowBusinessQuery
=
new
WindowBusinessQuery
();
//windowBusinessQuery.setSiteBusinessIdList(businessIdList);
//windowBusinessQuery.setSiteBusinessIdList(businessIdList);
...
@@ -104,7 +107,6 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
...
@@ -104,7 +107,6 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
}
}
WindowEntity
windowEntity
=
this
.
get
(
windowId
,
context
);
WindowEntity
windowEntity
=
this
.
get
(
windowId
,
context
);
List
<
WindowBusinessEntity
>
windowBusinessEntities
=
businessIdList
.
stream
().
map
(
id
->
{
List
<
WindowBusinessEntity
>
windowBusinessEntities
=
businessIdList
.
stream
().
map
(
id
->
{
WindowBusinessEntity
windowBusinessEntity
=
new
WindowBusinessEntity
();
WindowBusinessEntity
windowBusinessEntity
=
new
WindowBusinessEntity
();
windowBusinessEntity
.
initAttrValue
();
windowBusinessEntity
.
initAttrValue
();
...
@@ -122,7 +124,7 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
...
@@ -122,7 +124,7 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
return
null
;
return
null
;
}
}
return
windowBusinessEntity
;
return
windowBusinessEntity
;
}).
collect
(
Collectors
.
toList
());
}).
filter
(
f
->
f
!=
null
).
collect
(
Collectors
.
toList
());
windowBusinessService
.
save
(
windowBusinessEntities
,
context
);
windowBusinessService
.
save
(
windowBusinessEntities
,
context
);
}
}
...
...
base-manager/src/test/java/com/mortals/httpclient/site/SiteBusinessController.http
View file @
66652be9
...
@@ -4,7 +4,7 @@ POST {{baseUrl}}/site/business/list
...
@@ -4,7 +4,7 @@ POST {{baseUrl}}/site/business/list
Content-Type: application/json
Content-Type: application/json
{
{
"idNotList": [11,12,17,18,19,20
,21
],
"idNotList": [11,12,17,18,19,20],
"siteId": 1,
"siteId": 1,
"page":1,
"page":1,
"size":5
"size":5
...
...
portal-manager/pom.xml
View file @
66652be9
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<package.environment>
yibin
</package.environment>
<package.environment>
yibin
</package.environment>
<skipUi>
fals
e
</skipUi>
<skipUi>
tru
e
</skipUi>
</properties>
</properties>
</profile>
</profile>
...
...
smart-gateway/src/main/java/com/mortals/xhx/base/framework/filter/AccessLogFilter.java
View file @
66652be9
...
@@ -249,7 +249,7 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
...
@@ -249,7 +249,7 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
String
originalResponseContentType
=
exchange
.
getAttribute
(
ServerWebExchangeUtils
.
ORIGINAL_RESPONSE_CONTENT_TYPE_ATTR
);
String
originalResponseContentType
=
exchange
.
getAttribute
(
ServerWebExchangeUtils
.
ORIGINAL_RESPONSE_CONTENT_TYPE_ATTR
);
if
(
ObjectUtil
.
equal
(
this
.
getStatusCode
(),
HttpStatus
.
OK
)
if
(
ObjectUtil
.
equal
(
this
.
getStatusCode
(),
HttpStatus
.
OK
)
&&
StringUtils
.
isNotBlank
(
originalResponseContentType
))
{
&&
StringUtils
.
isNotBlank
(
originalResponseContentType
))
{
accessLogPdu
.
setRe
quest
Data
(
JSON
.
toJSONString
(
Rest
.
ok
()));
accessLogPdu
.
setRe
sponse
Data
(
JSON
.
toJSONString
(
Rest
.
ok
()));
/* Flux<? extends DataBuffer> fluxBody = Flux.from(body);
/* Flux<? extends DataBuffer> fluxBody = Flux.from(body);
return super.writeWith(fluxBody.buffer().map(dataBuffers -> {
return super.writeWith(fluxBody.buffer().map(dataBuffers -> {
// 合并多个流集合,解决返回体分段传输
// 合并多个流集合,解决返回体分段传输
...
@@ -265,7 +265,7 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
...
@@ -265,7 +265,7 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
return bufferFactory.wrap(content);
return bufferFactory.wrap(content);
}));*/
}));*/
}
else
{
}
else
{
accessLogPdu
.
setRe
quest
Data
(
JSON
.
toJSONString
(
Rest
.
fail
()));
accessLogPdu
.
setRe
sponse
Data
(
JSON
.
toJSONString
(
Rest
.
fail
()));
}
}
}
}
// if body is not a flux. never got there.
// if body is not a flux. never got there.
...
...
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