Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fill-system
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
廖旭伟
fill-system
Commits
f84445e1
Commit
f84445e1
authored
Dec 06, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加新闻来源
parent
98bb99f3
Pipeline
#2381
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
fill-manager/src/main/java/com/mortals/xhx/module/home/web/HomeController.java
.../java/com/mortals/xhx/module/home/web/HomeController.java
+2
-2
fill-manager/src/test/java/com/mortals/httpclient/system.http
...-manager/src/test/java/com/mortals/httpclient/system.http
+8
-0
No files found.
fill-manager/src/main/java/com/mortals/xhx/module/home/web/HomeController.java
View file @
f84445e1
...
@@ -12,6 +12,7 @@ import com.mortals.framework.util.DataUtil;
...
@@ -12,6 +12,7 @@ import com.mortals.framework.util.DataUtil;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.framework.web.BaseJsonBodyController
;
import
com.mortals.framework.web.BaseJsonBodyController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.NewsSourceEnum
;
import
com.mortals.xhx.common.code.YesNoEnum
;
import
com.mortals.xhx.common.code.YesNoEnum
;
import
com.mortals.xhx.common.key.Constant
;
import
com.mortals.xhx.common.key.Constant
;
import
com.mortals.xhx.feign.base.IApiBaseManagerFeign
;
import
com.mortals.xhx.feign.base.IApiBaseManagerFeign
;
...
@@ -192,8 +193,6 @@ public class HomeController extends BaseJsonBodyController {
...
@@ -192,8 +193,6 @@ public class HomeController extends BaseJsonBodyController {
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
model
.
put
(
"hotWords"
,
hotwordEntities
);
model
.
put
(
"hotWords"
,
hotwordEntities
);
MatterQuery
matterQuery
=
new
MatterQuery
();
MatterQuery
matterQuery
=
new
MatterQuery
();
matterQuery
.
setSiteId
(
homeQueryPdu
.
getSiteId
());
matterQuery
.
setSiteId
(
homeQueryPdu
.
getSiteId
());
int
matterCont
=
matterService
.
count
(
matterQuery
,
this
.
getContext
());
int
matterCont
=
matterService
.
count
(
matterQuery
,
this
.
getContext
());
...
@@ -220,6 +219,7 @@ public class HomeController extends BaseJsonBodyController {
...
@@ -220,6 +219,7 @@ public class HomeController extends BaseJsonBodyController {
model
.
put
(
"blankCount"
,
hotwordEntity
==
null
?
20
:
hotwordEntity
.
getPrintDisplay
());
//空白样表数量
model
.
put
(
"blankCount"
,
hotwordEntity
==
null
?
20
:
hotwordEntity
.
getPrintDisplay
());
//空白样表数量
model
.
put
(
"newsSource"
,
hotwordEntity
==
null
?
1
:
hotwordEntity
.
getNewsSource
());
//新闻来源
model
.
put
(
"newsSource"
,
hotwordEntity
==
null
?
1
:
hotwordEntity
.
getNewsSource
());
//新闻来源
model
.
put
(
"message_info"
,
busiDesc
+
"成功"
);
model
.
put
(
"message_info"
,
busiDesc
+
"成功"
);
this
.
addDict
(
model
,
"newsSource"
,
NewsSourceEnum
.
getEnumMap
());
this
.
recordSysLog
(
this
.
request
,
busiDesc
+
" 【成功】"
);
this
.
recordSysLog
(
this
.
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
var9
)
{
}
catch
(
Exception
var9
)
{
code
=
VALUE_RESULT_FAILURE
;
code
=
VALUE_RESULT_FAILURE
;
...
...
fill-manager/src/test/java/com/mortals/httpclient/system.http
View file @
f84445e1
...
@@ -23,6 +23,14 @@ Content-Type: application/json
...
@@ -23,6 +23,14 @@ Content-Type: application/json
{}
{}
###首页
POST {{baseUrl}}/home/info
Content-Type: application/json
{"siteId": 3}
###站点树
###站点树
GET {{baseUrl}}/site/siteTree
GET {{baseUrl}}/site/siteTree
Authorization: {{authToken}}
Authorization: {{authToken}}
...
...
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