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
02513f42
Commit
02513f42
authored
2 years ago
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改应用编码校验
parent
eb104b74
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
17 deletions
+32
-17
base-manager/src/main/java/com/mortals/xhx/module/site/service/SiteService.java
...java/com/mortals/xhx/module/site/service/SiteService.java
+0
-16
base-manager/src/main/java/com/mortals/xhx/module/site/web/SiteController.java
.../java/com/mortals/xhx/module/site/web/SiteController.java
+30
-0
base-manager/src/test/java/com/mortals/httpclient/matter/MatterController.http
.../java/com/mortals/httpclient/matter/MatterController.http
+2
-1
No files found.
base-manager/src/main/java/com/mortals/xhx/module/site/service/SiteService.java
View file @
02513f42
...
@@ -43,24 +43,10 @@ public interface SiteService extends ICRUDCacheService<SiteEntity, Long> {
...
@@ -43,24 +43,10 @@ public interface SiteService extends ICRUDCacheService<SiteEntity, Long> {
*/
*/
List
<
SiteTreeSelect
>
getSiteTree
(
Context
context
);
List
<
SiteTreeSelect
>
getSiteTree
(
Context
context
);
/**
* 根据区域code获取子站点
*
* @param context
* @return
*/
List
<
SiteEntity
>
getFlatSitesByAreaCode
(
String
areaCode
,
Context
context
);
List
<
SiteEntity
>
getFlatSitesByAreaCode
(
String
areaCode
,
Context
context
);
/**
* 根据Site获取子站点
*
* @param context
* @return
*/
List
<
SiteEntity
>
getFlatSitesBySiteId
(
Long
siteId
,
Context
context
);
List
<
SiteEntity
>
getFlatSitesBySiteId
(
Long
siteId
,
Context
context
);
void
setSiteTree
(
List
<
SiteTreeSelect
>
list
,
Context
context
);
void
setSiteTree
(
List
<
SiteTreeSelect
>
list
,
Context
context
);
void
removeSiteTree
(
List
<
SiteTreeSelect
>
list
,
Context
context
);
void
removeSiteTree
(
List
<
SiteTreeSelect
>
list
,
Context
context
);
...
@@ -69,10 +55,8 @@ public interface SiteService extends ICRUDCacheService<SiteEntity, Long> {
...
@@ -69,10 +55,8 @@ public interface SiteService extends ICRUDCacheService<SiteEntity, Long> {
void
changeUrlPath
(
SiteEntity
siteEntity
);
void
changeUrlPath
(
SiteEntity
siteEntity
);
Rest
<
List
<
MatterEntity
>>
getMatterAllListByGOV
(
Map
<
String
,
String
>
params
,
Integer
pageNum
,
Context
context
);
Rest
<
List
<
MatterEntity
>>
getMatterAllListByGOV
(
Map
<
String
,
String
>
params
,
Integer
pageNum
,
Context
context
);
Rest
<
String
>
syncMatterBySiteId
(
SiteEntity
siteEntity
,
Context
context
);
Rest
<
String
>
syncMatterBySiteId
(
SiteEntity
siteEntity
,
Context
context
);
void
deleteBysiteIdAndSource
(
Long
siteId
,
Integer
source
,
Context
context
);
void
deleteBysiteIdAndSource
(
Long
siteId
,
Integer
source
,
Context
context
);
...
...
This diff is collapsed.
Click to expand it.
base-manager/src/main/java/com/mortals/xhx/module/site/web/SiteController.java
View file @
02513f42
...
@@ -11,6 +11,7 @@ import com.mortals.framework.service.ICacheService;
...
@@ -11,6 +11,7 @@ import com.mortals.framework.service.ICacheService;
import
com.mortals.framework.util.ThreadPool
;
import
com.mortals.framework.util.ThreadPool
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.user.model.UserEntity
;
import
com.mortals.xhx.common.keys.RedisCacheKeys
;
import
com.mortals.xhx.common.keys.RedisCacheKeys
;
import
com.mortals.xhx.common.utils.SyncDeptThread
;
import
com.mortals.xhx.common.utils.SyncDeptThread
;
import
com.mortals.xhx.common.utils.SyncGovMatterDetailThread
;
import
com.mortals.xhx.common.utils.SyncGovMatterDetailThread
;
...
@@ -113,6 +114,35 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
...
@@ -113,6 +114,35 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
}
}
/**
* 获取全站点树
*/
@GetMapping
(
value
=
"getAllSiteTree"
)
@UnAuth
public
String
getAllSiteTree
()
{
JSONObject
jsonObject
=
new
JSONObject
();
Map
<
String
,
Object
>
model
=
new
HashMap
<>();
String
busiDesc
=
this
.
getModuleDesc
()
+
"构建站点树"
;
try
{
Context
context
=
new
Context
();
UserEntity
userEntity
=
new
UserEntity
();
userEntity
.
setId
(-
1L
);
context
.
setUser
(
userEntity
);
List
<
SiteTreeSelect
>
siteTree
=
this
.
service
.
getSiteTree
(
context
);
model
.
put
(
"siteTree"
,
siteTree
);
this
.
init
(
model
,
getContext
());
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
jsonObject
.
put
(
KEY_RESULT_DATA
,
model
);
jsonObject
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
}
catch
(
Exception
e
)
{
log
.
error
(
"构建全站点树异常"
,
e
);
jsonObject
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_FAILURE
);
jsonObject
.
put
(
KEY_RESULT_MSG
,
super
.
convertException
(
e
));
}
return
jsonObject
.
toJSONString
();
}
/**
/**
* 根据区域编码查询站点列表
* 根据区域编码查询站点列表
*/
*/
...
...
This diff is collapsed.
Click to expand it.
base-manager/src/test/java/com/mortals/httpclient/matter/MatterController.http
View file @
02513f42
...
@@ -31,7 +31,8 @@ Content-Type: application/json
...
@@ -31,7 +31,8 @@ Content-Type: application/json
{
{
"siteId": 5,
"siteId": 54,
"matterName": "",
"page": 1,
"page": 1,
"size": 10
"size": 10
}
}
...
...
This diff is collapsed.
Click to expand it.
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