Commit e4bfbacf authored by unset's avatar unset

添加通知信息

parent e6aeca41
...@@ -82,6 +82,9 @@ public class FeedbackInfo implements Serializable { ...@@ -82,6 +82,9 @@ public class FeedbackInfo implements Serializable {
@Column(name = "type") @Column(name = "type")
@ApiModelProperty(value = "1、联系客服,2、意见反馈,3、订单反馈") @ApiModelProperty(value = "1、联系客服,2、意见反馈,3、订单反馈")
private Integer type; private Integer type;
/**
* 客服回复信息
*/
private String responseInfo;
} }
...@@ -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
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment