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
fa22e803
Commit
fa22e803
authored
Nov 17, 2022
by
“yiyousong”
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.scsmile.cn/zxf/smart_gov_platform
parents
b8d3ad5d
d81f29c5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
10 deletions
+31
-10
base-manager/src/main/java/com/mortals/xhx/common/utils/SyncTreeSiteThread.java
...java/com/mortals/xhx/common/utils/SyncTreeSiteThread.java
+1
-1
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
...als/xhx/module/matter/service/impl/MatterServiceImpl.java
+4
-0
base-manager/src/main/java/com/mortals/xhx/module/matter/web/MatterController.java
...a/com/mortals/xhx/module/matter/web/MatterController.java
+0
-1
base-manager/src/main/resources/sqlmap/module/matter/MatterMapperExt.xml
...c/main/resources/sqlmap/module/matter/MatterMapperExt.xml
+20
-4
base-manager/src/test/java/com/mortals/httpclient/matter/MatterController.http
.../java/com/mortals/httpclient/matter/MatterController.http
+1
-2
base-manager/src/test/java/com/mortals/httpclient/skin/SkinBaseController.http
.../java/com/mortals/httpclient/skin/SkinBaseController.http
+1
-1
smart-gateway/src/main/resources/bootstrap.yml
smart-gateway/src/main/resources/bootstrap.yml
+4
-1
No files found.
base-manager/src/main/java/com/mortals/xhx/common/utils/SyncTreeSiteThread.java
View file @
fa22e803
...
...
@@ -28,7 +28,7 @@ public class SyncTreeSiteThread implements Runnable {
SiteService
siteService
=
SpringUtils
.
getBean
(
SiteService
.
class
);
List
<
SiteTreeSelect
>
siteTreeSelects
=
siteService
.
siteTree
(
context
);
siteService
.
setSiteTree
(
siteTreeSelects
,
context
);
log
.
info
(
"刷新用户站点树=》userID:{} site
Tree:{}"
,
context
.
getUser
().
getId
(),
JSON
.
toJSONString
(
siteService
.
getSiteTree
(
context
)));
log
.
info
(
"刷新用户站点树=》userID:{} site
Ids:{} siteTree:{}"
,
context
.
getUser
().
getId
(),
context
.
getUser
().
getSiteIds
(),
JSON
.
toJSONString
(
siteService
.
getSiteTree
(
context
)));
}
}
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
View file @
fa22e803
...
...
@@ -200,6 +200,10 @@ public class MatterServiceImpl extends AbstractCRUDCacheServiceImpl<MatterDao, M
@Override
public
Result
<
MatterEntity
>
findSubList
(
MatterEntity
matterQuery
,
PageInfo
pageInfo
,
Context
context
)
throws
AppException
{
SiteEntity
siteCache
=
siteService
.
getCache
(
matterQuery
.
getSiteId
().
toString
());
if
(
ObjectUtils
.
isEmpty
(
matterQuery
.
getAreaCode
())){
matterQuery
.
setAreaCode
(
siteCache
==
null
?
null
:
siteCache
.
getAreaCode
());
}
return
this
.
dao
.
getSubList
(
matterQuery
,
pageInfo
);
}
...
...
base-manager/src/main/java/com/mortals/xhx/module/matter/web/MatterController.java
View file @
fa22e803
...
...
@@ -155,7 +155,6 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
this
.
init
(
model
,
context
);
ret
.
setCode
(
code
);
ret
.
setData
(
model
);
ret
.
setDict
(
model
.
get
(
KEY_RESULT_DICT
));
ret
.
setMsg
(
model
.
get
(
MESSAGE_INFO
)
==
null
?
""
:
model
.
remove
(
MESSAGE_INFO
).
toString
());
return
ret
;
}
...
...
base-manager/src/main/resources/sqlmap/module/matter/MatterMapperExt.xml
View file @
fa22e803
...
...
@@ -11,9 +11,17 @@
mortals_sys_matter AS a
LEFT JOIN ( SELECT matterCode FROM mortals_sys_site_matter WHERE siteId = #{condition.siteId} ) AS b ON a.matterNo = b.matterCode
<trim
suffixOverrides=
"where"
suffix=
""
>
where b.matterCode IS NULL
where b.matterCode IS NULL
and
<trim
prefixOverrides=
"and"
prefix=
""
>
<include
refid=
"_condition_"
/>
<if
test=
"condition.areaCode!=null and condition.areaCode!=''"
>
and a.areaCode = #{condition.areaCode,jdbcType=VARCHAR}
</if>
<if
test=
"condition.deptCode!=null and condition.deptCode!=''"
>
and a.deptCode = #{condition.deptCode,jdbcType=VARCHAR}
</if>
<if
test=
"condition.matterName != null and condition.matterName != ''"
>
a.matterName like #{condition.matterName}
</if>
</trim>
</trim>
</select>
...
...
@@ -26,9 +34,17 @@
mortals_sys_matter AS a
LEFT JOIN ( SELECT matterCode FROM mortals_sys_site_matter WHERE siteId = #{condition.siteId} ) AS b ON a.matterNo = b.matterCode
<trim
suffixOverrides=
"where"
suffix=
""
>
where b.matterCode IS NULL
where b.matterCode IS NULL
and
<trim
prefixOverrides=
"and"
prefix=
""
>
<include
refid=
"_condition_"
/>
<if
test=
"condition.areaCode!=null and condition.areaCode!=''"
>
and a.areaCode = #{condition.areaCode,jdbcType=VARCHAR}
</if>
<if
test=
"condition.deptCode!=null and condition.deptCode!=''"
>
and a.deptCode = #{condition.deptCode,jdbcType=VARCHAR}
</if>
<if
test=
"condition.matterName != null and condition.matterName != ''"
>
a.matterName like #{condition.matterName}
</if>
</trim>
</trim>
</select>
...
...
base-manager/src/test/java/com/mortals/httpclient/matter/MatterController.http
View file @
fa22e803
...
...
@@ -30,8 +30,7 @@ POST {{baseUrl}}/matter/sublist
Content-Type: application/json
{
"areaCode": "513426000000",
"siteId": 35,
"siteId": 5,
"page": 1,
"size": 10
}
...
...
base-manager/src/test/java/com/mortals/httpclient/skin/SkinBaseController.http
View file @
fa22e803
...
...
@@ -36,7 +36,7 @@ client.global.set("SkinBase_id", JSON.parse(response.body).data.id);
%}
###系统基础皮肤查看
GET {{baseUrl}}/skin/base/view?id=
28
GET {{baseUrl}}/skin/base/view?id=
37
Authorization: {{authToken}}
Accept: application/json
...
...
smart-gateway/src/main/resources/bootstrap.yml
View file @
fa22e803
...
...
@@ -32,7 +32,7 @@ spring:
-
DedupeResponseHeader=Vary Access-Control-Allow-Origin Access-Control-Allow-Credentials, RETAIN_FIRST
httpclient
:
connect-timeout
:
10000
response-timeout
:
5
s
response-timeout
:
30
s
# 打印请求日志(自定义)
requestLog
:
true
discovery
:
...
...
@@ -75,6 +75,9 @@ spring:
uri
:
lb://sample-form-manager
predicates
:
-
Path=/sampleform/**
metadata
:
response-timeout
:
200000
connect-timeout
:
200000
nacos
:
# Nacos 作为注册中心的配置项,对应 NacosDiscoveryProperties 配置类
discovery
:
...
...
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