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
9de1d062
Commit
9de1d062
authored
Nov 18, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重构部分功能模块
parent
384f0e2e
Pipeline
#2311
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
fill-manager/src/main/java/com/mortals/xhx/module/matter/web/MatterDatumController.java
.../mortals/xhx/module/matter/web/MatterDatumController.java
+11
-11
No files found.
fill-manager/src/main/java/com/mortals/xhx/module/matter/web/MatterDatumController.java
View file @
9de1d062
package
com.mortals.xhx.module.matter.web
;
package
com.mortals.xhx.module.matter.web
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.OrderCol
;
import
com.mortals.framework.model.OrderCol
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
...
@@ -66,23 +67,22 @@ public class MatterDatumController extends BaseCRUDJsonBodyMappingController<Mat
...
@@ -66,23 +67,22 @@ public class MatterDatumController extends BaseCRUDJsonBodyMappingController<Mat
return
1
;
return
1
;
}
}
@RequestMapping
(
value
=
{
"recommend"
},
method
=
{
RequestMethod
.
POST
,
RequestMethod
.
GET
})
@RequestMapping
(
value
=
{
"recommend"
},
method
=
{
RequestMethod
.
POST
,
RequestMethod
.
GET
})
public
String
recommend
(
Long
id
)
{
public
String
recommend
(
Long
id
,
Long
siteId
)
{
Context
context
=
this
.
getContext
();
Map
<
String
,
Object
>
model
=
new
HashMap
();
Map
<
String
,
Object
>
model
=
new
HashMap
();
int
code
=
1
;
int
code
=
VALUE_RESULT_SUCCESS
;
String
busiDesc
=
"推荐or取消推荐"
+
this
.
getModuleDesc
();
String
busiDesc
=
"推荐or取消推荐"
+
this
.
getModuleDesc
();
try
{
try
{
this
.
service
.
recommend
(
id
);
Rest
<
String
>
rest
=
this
.
service
.
recommend
(
id
,
siteId
,
getContext
()
);
model
.
put
(
"message_info"
,
this
.
getModuleDesc
()
+
"推荐or取消推荐成功!"
);
model
.
put
(
"message_info"
,
rest
.
getMsg
()
);
this
.
recordSysLog
(
this
.
request
,
busiDesc
+
" 【成功】 [id:"
+
id
+
"]"
);
this
.
recordSysLog
(
this
.
request
,
rest
.
getMsg
()
);
}
catch
(
Exception
var7
)
{
}
catch
(
Exception
e
)
{
code
=
-
1
;
code
=
VALUE_RESULT_FAILURE
;
this
.
doException
(
this
.
request
,
busiDesc
,
model
,
var7
);
this
.
doException
(
this
.
request
,
busiDesc
,
model
,
e
);
}
}
JSONObject
ret
=
new
JSONObject
();
JSONObject
ret
=
new
JSONObject
();
ret
.
put
(
"code"
,
Integer
.
valueOf
(
code
)
);
ret
.
put
(
"code"
,
code
);
ret
.
put
(
"msg"
,
model
.
remove
(
"message_info"
));
ret
.
put
(
"msg"
,
model
.
remove
(
"message_info"
));
ret
.
put
(
"data"
,
model
);
ret
.
put
(
"data"
,
model
);
return
ret
.
toJSONString
();
return
ret
.
toJSONString
();
...
...
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