Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周健威
rs-cloud-platform
Commits
e4bfbacf
Commit
e4bfbacf
authored
Jan 05, 2021
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加通知信息
parent
e6aeca41
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
FeedbackInfo.java
...a/com/upyuns/platform/rs/website/entity/FeedbackInfo.java
+4
-1
FeedbackInfoBiz.java
...a/com/upyuns/platform/rs/website/biz/FeedbackInfoBiz.java
+17
-0
FeedbackInfoController.java
...latform/rs/website/controller/FeedbackInfoController.java
+7
-3
No files found.
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/entity/FeedbackInfo.java
View file @
e4bfbacf
...
@@ -83,5 +83,8 @@ public class FeedbackInfo implements Serializable {
...
@@ -83,5 +83,8 @@ public class FeedbackInfo implements Serializable {
@ApiModelProperty
(
value
=
"1、联系客服,2、意见反馈,3、订单反馈"
)
@ApiModelProperty
(
value
=
"1、联系客服,2、意见反馈,3、订单反馈"
)
private
Integer
type
;
private
Integer
type
;
/**
* 客服回复信息
*/
private
String
responseInfo
;
}
}
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/FeedbackInfoBiz.java
View file @
e4bfbacf
...
@@ -66,4 +66,21 @@ public class FeedbackInfoBiz extends BaseBiz<FeedbackInfoMapper, FeedbackInfo> {
...
@@ -66,4 +66,21 @@ public class FeedbackInfoBiz extends BaseBiz<FeedbackInfoMapper, FeedbackInfo> {
return
ObjectRestResponse
.
succ
(
pageDataVO
);
return
ObjectRestResponse
.
succ
(
pageDataVO
);
}
}
/**
* 后台添加回复
* @param feedbackInfo
* @return
*/
public
ObjectRestResponse
updateObj
(
FeedbackInfo
feedbackInfo
)
{
if
(
feedbackInfo
==
null
||
feedbackInfo
.
getId
()
==
null
)
{
return
ObjectRestResponse
.
paramIsEmpty
();
}
FeedbackInfo
old
=
selectById
(
feedbackInfo
.
getId
());
if
(
old
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
ResultCode
.
getMsg
(
ResultCode
.
NOTEXIST_CODE
));
}
old
.
setResponseInfo
(
feedbackInfo
.
getResponseInfo
());
updateSelectiveByIdRe
(
old
);
return
ObjectRestResponse
.
succ
();
}
}
}
\ No newline at end of file
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/controller/FeedbackInfoController.java
View file @
e4bfbacf
...
@@ -5,9 +5,7 @@ import com.github.wxiaoqi.security.common.rest.BaseController;
...
@@ -5,9 +5,7 @@ import com.github.wxiaoqi.security.common.rest.BaseController;
import
com.upyuns.platform.rs.website.biz.FeedbackInfoBiz
;
import
com.upyuns.platform.rs.website.biz.FeedbackInfoBiz
;
import
com.upyuns.platform.rs.website.dto.FeedbackInfoDto
;
import
com.upyuns.platform.rs.website.dto.FeedbackInfoDto
;
import
com.upyuns.platform.rs.website.entity.FeedbackInfo
;
import
com.upyuns.platform.rs.website.entity.FeedbackInfo
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RestController
@RequestMapping
(
"feedbackInfo"
)
@RequestMapping
(
"feedbackInfo"
)
...
@@ -17,4 +15,10 @@ public class FeedbackInfoController extends BaseController<FeedbackInfoBiz, Feed
...
@@ -17,4 +15,10 @@ public class FeedbackInfoController extends BaseController<FeedbackInfoBiz, Feed
public
ObjectRestResponse
getAll
(
FeedbackInfoDto
feedbackInfoDto
)
{
public
ObjectRestResponse
getAll
(
FeedbackInfoDto
feedbackInfoDto
)
{
return
baseBiz
.
getAll
(
feedbackInfoDto
);
return
baseBiz
.
getAll
(
feedbackInfoDto
);
}
}
@PostMapping
(
value
=
"updateObj"
)
public
ObjectRestResponse
updateObj
(
@RequestBody
FeedbackInfo
feedbackInfo
)
{
return
baseBiz
.
updateObj
(
feedbackInfo
);
}
}
}
\ No newline at end of file
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