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
bccdb0a5
Commit
bccdb0a5
authored
Nov 21, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重构部分功能模块
parent
da9c8e8e
Pipeline
#2322
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
fill-manager/src/main/java/com/mortals/xhx/module/matter/web/MatterDatumController.java
.../mortals/xhx/module/matter/web/MatterDatumController.java
+21
-5
No files found.
fill-manager/src/main/java/com/mortals/xhx/module/matter/web/MatterDatumController.java
View file @
bccdb0a5
...
...
@@ -60,11 +60,27 @@ public class MatterDatumController extends BaseCRUDJsonBodyMappingController<Mat
super
.
doListBefore
(
query
,
model
,
context
);
}
@Override
protected
int
doListAfter
(
MatterDatumEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
int
recommendCount
=
paramService
.
getParamIntValue
(
ParamKey
.
MATTER_DATUM_RECOMMEND_COUNT
);
model
.
put
(
"recommendCount"
,
recommendCount
);
return
1
;
@RequestMapping
(
value
=
{
"addPubdatum"
},
method
=
{
RequestMethod
.
POST
,
RequestMethod
.
GET
})
public
String
addPubdatum
(
Long
[]
ids
,
Long
matterId
,
Long
siteId
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
();
int
code
=
VALUE_RESULT_SUCCESS
;
String
busiDesc
=
"添加公共库"
;
try
{
Rest
<
String
>
rest
=
this
.
service
.
addPubdatum
(
ids
,
matterId
,
siteId
,
getContext
());
model
.
put
(
MESSAGE_INFO
,
rest
.
getMsg
());
this
.
recordSysLog
(
this
.
request
,
rest
.
getMsg
());
}
catch
(
Exception
var7
)
{
code
=
VALUE_RESULT_FAILURE
;
this
.
doException
(
this
.
request
,
busiDesc
,
model
,
var7
);
}
JSONObject
ret
=
new
JSONObject
();
ret
.
put
(
"code"
,
Integer
.
valueOf
(
code
));
ret
.
put
(
"msg"
,
model
.
remove
(
MESSAGE_INFO
));
ret
.
put
(
"data"
,
model
);
return
ret
.
toJSONString
();
}
@RequestMapping
(
value
=
{
"recommend"
},
method
=
{
RequestMethod
.
POST
,
RequestMethod
.
GET
})
...
...
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