Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
7f0c86df3f
|
|
@ -0,0 +1,40 @@
|
|||
package com.playlet.web.controller.app;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.common.core.domain.Result;
|
||||
import com.playlet.system.domain.PlayletAdviceFeedback;
|
||||
import com.playlet.web.service.app.PlayletFeedbackAppService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@Slf4j
|
||||
@Api(tags = "短剧视频*意见反馈")
|
||||
@RestController
|
||||
@RequestMapping(value = "/app/feedback")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletFeedbackAppController {
|
||||
|
||||
private final PlayletFeedbackAppService playletFeedbackAppService;
|
||||
|
||||
@ResponseBody
|
||||
@PostMapping("/add")
|
||||
@ApiOperation(value = "新增意见反馈")
|
||||
public Result<String> add(@RequestBody PlayletAdviceFeedback playletAdviceFeedback) {
|
||||
playletFeedbackAppService.add(playletAdviceFeedback);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@PostMapping("/getFeedBackList")
|
||||
@ApiOperation(value = "分页查询反馈列表")
|
||||
public Result<PageInfo<PlayletAdviceFeedback>> getFeedBackList(@RequestBody PlayletAdviceFeedback playletAdviceFeedback,
|
||||
@RequestParam(value = "pageNum")Integer pageNum,
|
||||
@RequestParam(value = "pageSize")Integer pageSize) {
|
||||
return Result.success(playletFeedbackAppService.getFeedBackList(playletAdviceFeedback, pageNum, pageSize));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,127 @@
|
|||
package com.playlet.web.controller.system;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.playlet.common.annotation.Log;
|
||||
import com.playlet.common.enums.BusinessType;
|
||||
import com.playlet.system.domain.PlayletAdviceFeedback;
|
||||
import com.playlet.system.service.IPlayletAdviceFeedbackService;
|
||||
import com.playlet.common.core.controller.BaseController;
|
||||
import com.playlet.common.core.domain.AjaxResult;
|
||||
import com.playlet.common.utils.poi.ExcelUtil;
|
||||
import com.playlet.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 短剧意见反馈Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-03-22
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/playlet/feedback")
|
||||
public class PlayletAdviceFeedbackController extends BaseController
|
||||
{
|
||||
private String prefix = "system/playlet/feedback";
|
||||
|
||||
@Autowired
|
||||
private IPlayletAdviceFeedbackService playletAdviceFeedbackService;
|
||||
|
||||
@RequiresPermissions("playlet:feedback:view")
|
||||
@GetMapping()
|
||||
public String feedback()
|
||||
{
|
||||
return prefix + "/feedback";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询短剧意见反馈列表
|
||||
*/
|
||||
@RequiresPermissions("playlet:feedback:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(PlayletAdviceFeedback playletAdviceFeedback)
|
||||
{
|
||||
startPage();
|
||||
List<PlayletAdviceFeedback> list = playletAdviceFeedbackService.selectPlayletAdviceFeedbackList(playletAdviceFeedback);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出短剧意见反馈列表
|
||||
*/
|
||||
@RequiresPermissions("playlet:feedback:export")
|
||||
@Log(title = "短剧意见反馈", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(PlayletAdviceFeedback playletAdviceFeedback)
|
||||
{
|
||||
List<PlayletAdviceFeedback> list = playletAdviceFeedbackService.selectPlayletAdviceFeedbackList(playletAdviceFeedback);
|
||||
ExcelUtil<PlayletAdviceFeedback> util = new ExcelUtil<PlayletAdviceFeedback>(PlayletAdviceFeedback.class);
|
||||
return util.exportExcel(list, "短剧意见反馈数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增短剧意见反馈
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存短剧意见反馈
|
||||
*/
|
||||
@RequiresPermissions("playlet:feedback:add")
|
||||
@Log(title = "短剧意见反馈", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(PlayletAdviceFeedback playletAdviceFeedback)
|
||||
{
|
||||
return toAjax(playletAdviceFeedbackService.insertPlayletAdviceFeedback(playletAdviceFeedback));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改短剧意见反馈
|
||||
*/
|
||||
@RequiresPermissions("playlet:feedback:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
PlayletAdviceFeedback playletAdviceFeedback = playletAdviceFeedbackService.selectPlayletAdviceFeedbackById(id);
|
||||
mmap.put("playletAdviceFeedback", playletAdviceFeedback);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存短剧意见反馈
|
||||
*/
|
||||
@RequiresPermissions("playlet:feedback:edit")
|
||||
@Log(title = "短剧意见反馈", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(PlayletAdviceFeedback playletAdviceFeedback)
|
||||
{
|
||||
return toAjax(playletAdviceFeedbackService.updatePlayletAdviceFeedback(playletAdviceFeedback));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除短剧意见反馈
|
||||
*/
|
||||
@RequiresPermissions("playlet:feedback:remove")
|
||||
@Log(title = "短剧意见反馈", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(playletAdviceFeedbackService.deletePlayletAdviceFeedbackByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.playlet.web.service.app;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.system.domain.PlayletAdviceFeedback;
|
||||
|
||||
public interface PlayletFeedbackAppService {
|
||||
|
||||
void add(PlayletAdviceFeedback playletAdviceFeedback);
|
||||
|
||||
PageInfo<PlayletAdviceFeedback> getFeedBackList(PlayletAdviceFeedback playletAdviceFeedback,
|
||||
Integer pageNum, Integer pageSize);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.playlet.web.service.app.impl;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.system.domain.PlayletAdviceFeedback;
|
||||
import com.playlet.system.service.IPlayletAdviceFeedbackService;
|
||||
import com.playlet.web.service.app.PlayletFeedbackAppService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletFeedbackAppServiceImpl implements PlayletFeedbackAppService {
|
||||
|
||||
private final IPlayletAdviceFeedbackService iPlayletAdviceFeedbackService;
|
||||
|
||||
@Override
|
||||
public void add(PlayletAdviceFeedback playletAdviceFeedback) {
|
||||
iPlayletAdviceFeedbackService.insertPlayletAdviceFeedback(playletAdviceFeedback);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageInfo<PlayletAdviceFeedback> getFeedBackList(PlayletAdviceFeedback playletAdviceFeedback, Integer pageNum, Integer pageSize) {
|
||||
PageHelper.startPage(pageNum, pageSize);
|
||||
List<PlayletAdviceFeedback> list = iPlayletAdviceFeedbackService.selectPlayletAdviceFeedbackList(playletAdviceFeedback);
|
||||
return PageInfo.of(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增短剧意见反馈')" />
|
||||
<th:block th:include="include :: summernote-css" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-feedback-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">反馈用户id:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="userId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">:</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="hidden" class="form-control" name="content">
|
||||
<div class="summernote" id="content"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="url" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="remark" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: summernote-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "system/playlet/feedback"
|
||||
$("#form-feedback-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-feedback-add').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$('.summernote').summernote({
|
||||
lang: 'zh-CN',
|
||||
dialogsInBody: true,
|
||||
callbacks: {
|
||||
onChange: function(contents, $edittable) {
|
||||
$("input[name='" + this.id + "']").val(contents);
|
||||
},
|
||||
onImageUpload: function(files) {
|
||||
var obj = this;
|
||||
var data = new FormData();
|
||||
data.append("file", files[0]);
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctx + "common/upload",
|
||||
data: data,
|
||||
cache: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
dataType: 'json',
|
||||
success: function(result) {
|
||||
if (result.code == web_status.SUCCESS) {
|
||||
$('#' + obj.id).summernote('insertImage', result.url);
|
||||
} else {
|
||||
$.modal.alertError(result.msg);
|
||||
}
|
||||
},
|
||||
error: function(error) {
|
||||
$.modal.alertWarning("图片上传失败。");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改短剧意见反馈')" />
|
||||
<th:block th:include="include :: summernote-css" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-feedback-edit" th:object="${playletAdviceFeedback}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">反馈用户id:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="userId" th:field="*{userId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">:</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="hidden" class="form-control" th:field="*{content}">
|
||||
<div class="summernote" id="content"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="url" th:field="*{url}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: summernote-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "system/playlet/feedback";
|
||||
$("#form-feedback-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-feedback-edit').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$('.summernote').each(function(i) {
|
||||
$('#' + this.id).summernote({
|
||||
lang: 'zh-CN',
|
||||
dialogsInBody: true,
|
||||
callbacks: {
|
||||
onChange: function(contents, $edittable) {
|
||||
$("input[name='" + this.id + "']").val(contents);
|
||||
},
|
||||
onImageUpload: function(files) {
|
||||
var obj = this;
|
||||
var data = new FormData();
|
||||
data.append("file", files[0]);
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctx + "common/upload",
|
||||
data: data,
|
||||
cache: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
dataType: 'json',
|
||||
success: function(result) {
|
||||
if (result.code == web_status.SUCCESS) {
|
||||
$('#' + obj.id).summernote('insertImage', result.url);
|
||||
} else {
|
||||
$.modal.alertError(result.msg);
|
||||
}
|
||||
},
|
||||
error: function(error) {
|
||||
$.modal.alertWarning("图片上传失败。");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
var content = $("input[name='" + this.id + "']").val();
|
||||
$('#' + this.id).summernote('code', content);
|
||||
})
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,119 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<head>
|
||||
<th:block th:include="include :: header('短剧意见反馈列表')" />
|
||||
</head>
|
||||
<body class="gray-bg">
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<label>创建人:</label>
|
||||
<input type="text" name="createBy"/>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:feedback:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:feedback:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:feedback:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:feedback:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('playlet:feedback:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('playlet:feedback:remove')}]];
|
||||
var prefix = ctx + "system/playlet/feedback";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "短剧意见反馈",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'id',
|
||||
title: '主键',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'userId',
|
||||
title: '反馈用户id'
|
||||
},
|
||||
{
|
||||
field: 'type',
|
||||
title: '类型 01.功能建议 02.客服投诉 03.其他'
|
||||
},
|
||||
{
|
||||
field: 'content',
|
||||
title: '内容'
|
||||
},
|
||||
{
|
||||
field: 'url',
|
||||
title: '附件图片'
|
||||
},
|
||||
{
|
||||
field: 'createBy',
|
||||
title: '创建人'
|
||||
},
|
||||
{
|
||||
field: 'createTime',
|
||||
title: '创建时间'
|
||||
},
|
||||
{
|
||||
field: 'updateBy',
|
||||
title: '更新人'
|
||||
},
|
||||
{
|
||||
field: 'updateTime',
|
||||
title: '更新时间'
|
||||
},
|
||||
{
|
||||
field: 'remark',
|
||||
title: '备注'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
package com.playlet.system.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.playlet.common.core.domain.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import com.playlet.common.annotation.Excel;
|
||||
|
||||
/**
|
||||
* 短剧意见反馈对象 playlet_advice_feedback
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-03-22
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName(value = "playlet_advice_feedback")
|
||||
@ApiModel(value = "短剧*意见反馈")
|
||||
public class PlayletAdviceFeedback extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/** 反馈用户id */
|
||||
@Excel(name = "反馈用户id")
|
||||
@ApiModelProperty(value = "反馈用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 类型 01.功能建议 02.客服投诉 03.其他 */
|
||||
@Excel(name = "类型 01.功能建议 02.客服投诉 03.其他")
|
||||
@ApiModelProperty(value = "类型 01.功能建议 02.客服投诉 03.其他")
|
||||
private String type;
|
||||
|
||||
/** */
|
||||
@Excel(name = "内容详情")
|
||||
@ApiModelProperty(value = "内容详情")
|
||||
private String content;
|
||||
|
||||
/** */
|
||||
@Excel(name = "图片附件")
|
||||
@ApiModelProperty(value = "图片附件")
|
||||
private String url;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.playlet.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.playlet.system.domain.PlayletAdviceFeedback;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 短剧意见反馈Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-03-22
|
||||
*/
|
||||
public interface PlayletAdviceFeedbackMapper extends BaseMapper<PlayletAdviceFeedback>
|
||||
{
|
||||
/**
|
||||
* 查询短剧意见反馈
|
||||
*
|
||||
* @param id 短剧意见反馈主键
|
||||
* @return 短剧意见反馈
|
||||
*/
|
||||
public PlayletAdviceFeedback selectPlayletAdviceFeedbackById(Long id);
|
||||
|
||||
/**
|
||||
* 查询短剧意见反馈列表
|
||||
*
|
||||
* @param playletAdviceFeedback 短剧意见反馈
|
||||
* @return 短剧意见反馈集合
|
||||
*/
|
||||
public List<PlayletAdviceFeedback> selectPlayletAdviceFeedbackList(PlayletAdviceFeedback playletAdviceFeedback);
|
||||
|
||||
/**
|
||||
* 新增短剧意见反馈
|
||||
*
|
||||
* @param playletAdviceFeedback 短剧意见反馈
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPlayletAdviceFeedback(PlayletAdviceFeedback playletAdviceFeedback);
|
||||
|
||||
/**
|
||||
* 修改短剧意见反馈
|
||||
*
|
||||
* @param playletAdviceFeedback 短剧意见反馈
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePlayletAdviceFeedback(PlayletAdviceFeedback playletAdviceFeedback);
|
||||
|
||||
/**
|
||||
* 删除短剧意见反馈
|
||||
*
|
||||
* @param id 短剧意见反馈主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePlayletAdviceFeedbackById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除短剧意见反馈
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePlayletAdviceFeedbackByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.playlet.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.playlet.system.domain.PlayletAdviceFeedback;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* 短剧意见反馈Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-03-22
|
||||
*/
|
||||
public interface IPlayletAdviceFeedbackService extends IService<PlayletAdviceFeedback>
|
||||
{
|
||||
/**
|
||||
* 查询短剧意见反馈
|
||||
*
|
||||
* @param id 短剧意见反馈主键
|
||||
* @return 短剧意见反馈
|
||||
*/
|
||||
public PlayletAdviceFeedback selectPlayletAdviceFeedbackById(Long id);
|
||||
|
||||
/**
|
||||
* 查询短剧意见反馈列表
|
||||
*
|
||||
* @param playletAdviceFeedback 短剧意见反馈
|
||||
* @return 短剧意见反馈集合
|
||||
*/
|
||||
public List<PlayletAdviceFeedback> selectPlayletAdviceFeedbackList(PlayletAdviceFeedback playletAdviceFeedback);
|
||||
|
||||
/**
|
||||
* 新增短剧意见反馈
|
||||
*
|
||||
* @param playletAdviceFeedback 短剧意见反馈
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPlayletAdviceFeedback(PlayletAdviceFeedback playletAdviceFeedback);
|
||||
|
||||
/**
|
||||
* 修改短剧意见反馈
|
||||
*
|
||||
* @param playletAdviceFeedback 短剧意见反馈
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePlayletAdviceFeedback(PlayletAdviceFeedback playletAdviceFeedback);
|
||||
|
||||
/**
|
||||
* 批量删除短剧意见反馈
|
||||
*
|
||||
* @param ids 需要删除的短剧意见反馈主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePlayletAdviceFeedbackByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除短剧意见反馈信息
|
||||
*
|
||||
* @param id 短剧意见反馈主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePlayletAdviceFeedbackById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
package com.playlet.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.playlet.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.playlet.system.mapper.PlayletAdviceFeedbackMapper;
|
||||
import com.playlet.system.domain.PlayletAdviceFeedback;
|
||||
import com.playlet.system.service.IPlayletAdviceFeedbackService;
|
||||
import com.playlet.common.core.text.Convert;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* 短剧意见反馈Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-03-22
|
||||
*/
|
||||
@Service
|
||||
public class PlayletAdviceFeedbackServiceImpl extends ServiceImpl<PlayletAdviceFeedbackMapper, PlayletAdviceFeedback> implements IPlayletAdviceFeedbackService
|
||||
{
|
||||
@Autowired
|
||||
private PlayletAdviceFeedbackMapper playletAdviceFeedbackMapper;
|
||||
|
||||
/**
|
||||
* 查询短剧意见反馈
|
||||
*
|
||||
* @param id 短剧意见反馈主键
|
||||
* @return 短剧意见反馈
|
||||
*/
|
||||
@Override
|
||||
public PlayletAdviceFeedback selectPlayletAdviceFeedbackById(Long id)
|
||||
{
|
||||
return playletAdviceFeedbackMapper.selectPlayletAdviceFeedbackById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询短剧意见反馈列表
|
||||
*
|
||||
* @param playletAdviceFeedback 短剧意见反馈
|
||||
* @return 短剧意见反馈
|
||||
*/
|
||||
@Override
|
||||
public List<PlayletAdviceFeedback> selectPlayletAdviceFeedbackList(PlayletAdviceFeedback playletAdviceFeedback)
|
||||
{
|
||||
return playletAdviceFeedbackMapper.selectPlayletAdviceFeedbackList(playletAdviceFeedback);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增短剧意见反馈
|
||||
*
|
||||
* @param playletAdviceFeedback 短剧意见反馈
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPlayletAdviceFeedback(PlayletAdviceFeedback playletAdviceFeedback)
|
||||
{
|
||||
playletAdviceFeedback.setCreateTime(DateUtils.getNowDate());
|
||||
return playletAdviceFeedbackMapper.insertPlayletAdviceFeedback(playletAdviceFeedback);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改短剧意见反馈
|
||||
*
|
||||
* @param playletAdviceFeedback 短剧意见反馈
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePlayletAdviceFeedback(PlayletAdviceFeedback playletAdviceFeedback)
|
||||
{
|
||||
playletAdviceFeedback.setUpdateTime(DateUtils.getNowDate());
|
||||
return playletAdviceFeedbackMapper.updatePlayletAdviceFeedback(playletAdviceFeedback);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除短剧意见反馈
|
||||
*
|
||||
* @param ids 需要删除的短剧意见反馈主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlayletAdviceFeedbackByIds(String ids)
|
||||
{
|
||||
return playletAdviceFeedbackMapper.deletePlayletAdviceFeedbackByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除短剧意见反馈信息
|
||||
*
|
||||
* @param id 短剧意见反馈主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlayletAdviceFeedbackById(Long id)
|
||||
{
|
||||
return playletAdviceFeedbackMapper.deletePlayletAdviceFeedbackById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.playlet.system.mapper.PlayletAdviceFeedbackMapper">
|
||||
|
||||
<resultMap type="PlayletAdviceFeedback" id="PlayletAdviceFeedbackResult">
|
||||
<result property="id" column="ID" />
|
||||
<result property="userId" column="USER_ID" />
|
||||
<result property="type" column="TYPE" />
|
||||
<result property="content" column="CONTENT" />
|
||||
<result property="url" column="URL" />
|
||||
<result property="createBy" column="CREATE_BY" />
|
||||
<result property="createTime" column="CREATE_TIME" />
|
||||
<result property="updateBy" column="UPDATE_BY" />
|
||||
<result property="updateTime" column="UPDATE_TIME" />
|
||||
<result property="remark" column="REMARK" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPlayletAdviceFeedbackVo">
|
||||
select ID, USER_ID, TYPE, CONTENT, URL, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, REMARK from playlet_advice_feedback
|
||||
</sql>
|
||||
|
||||
<select id="selectPlayletAdviceFeedbackList" parameterType="PlayletAdviceFeedback" resultMap="PlayletAdviceFeedbackResult">
|
||||
<include refid="selectPlayletAdviceFeedbackVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and USER_ID = #{userId}</if>
|
||||
<if test="type != null and type != ''"> and TYPE = #{type}</if>
|
||||
<if test="content != null and content != ''"> and CONTENT = #{content}</if>
|
||||
<if test="url != null and url != ''"> and URL = #{url}</if>
|
||||
<if test="createBy != null and createBy != ''"> and CREATE_BY = #{createBy}</if>
|
||||
<if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and UPDATE_BY = #{updateBy}</if>
|
||||
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
|
||||
<if test="remark != null and remark != ''"> and REMARK = #{remark}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPlayletAdviceFeedbackById" parameterType="Long" resultMap="PlayletAdviceFeedbackResult">
|
||||
<include refid="selectPlayletAdviceFeedbackVo"/>
|
||||
where ID = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPlayletAdviceFeedback" parameterType="PlayletAdviceFeedback" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into playlet_advice_feedback
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">USER_ID,</if>
|
||||
<if test="type != null">TYPE,</if>
|
||||
<if test="content != null">CONTENT,</if>
|
||||
<if test="url != null">URL,</if>
|
||||
<if test="createBy != null">CREATE_BY,</if>
|
||||
<if test="createTime != null">CREATE_TIME,</if>
|
||||
<if test="updateBy != null">UPDATE_BY,</if>
|
||||
<if test="updateTime != null">UPDATE_TIME,</if>
|
||||
<if test="remark != null">REMARK,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="url != null">#{url},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePlayletAdviceFeedback" parameterType="PlayletAdviceFeedback">
|
||||
update playlet_advice_feedback
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">USER_ID = #{userId},</if>
|
||||
<if test="type != null">TYPE = #{type},</if>
|
||||
<if test="content != null">CONTENT = #{content},</if>
|
||||
<if test="url != null">URL = #{url},</if>
|
||||
<if test="createBy != null">CREATE_BY = #{createBy},</if>
|
||||
<if test="createTime != null">CREATE_TIME = #{createTime},</if>
|
||||
<if test="updateBy != null">UPDATE_BY = #{updateBy},</if>
|
||||
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
||||
<if test="remark != null">REMARK = #{remark},</if>
|
||||
</trim>
|
||||
where ID = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePlayletAdviceFeedbackById" parameterType="Long">
|
||||
delete from playlet_advice_feedback where ID = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePlayletAdviceFeedbackByIds" parameterType="String">
|
||||
delete from playlet_advice_feedback where ID in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue