43 changed files with 2334 additions and 90 deletions
@ -0,0 +1,102 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
|||
<head> |
|||
<th:block th:include="zdxtInclude :: 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> |
|||
<p>昵称:</p> |
|||
<input type="text" name="nickname"/> |
|||
</li> |
|||
<li> |
|||
<p>电话:</p> |
|||
<input type="text" name="mobile"/> |
|||
</li> |
|||
<li> |
|||
<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.search()"><i |
|||
class="fa fa-search"></i> 搜索</a> |
|||
<a class="btn btn-reset 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"> |
|||
|
|||
</div> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-table"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="zdxtInclude :: footer"/> |
|||
<script th:inline="javascript"> |
|||
var editFlag = [[${@permission.hasPermi('project:address:edit')}]]; |
|||
var removeFlag = [[${@permission.hasPermi('project:address:remove')}]]; |
|||
var detailFlag = [[${@permission.hasPermi('project:address:detail')}]]; |
|||
var prefix = ctx + "small/project/address"; |
|||
|
|||
$(function () { |
|||
var options = { |
|||
url: prefix + "/list", |
|||
createUrl: prefix + "/add/{}", |
|||
updateUrl: prefix + "/edit/{id}", |
|||
removeUrl: prefix + "/remove", |
|||
exportUrl: prefix + "/export", |
|||
detailUrl: prefix + "/detail/{guid}", |
|||
modalName: "主页", |
|||
columns: [{ |
|||
checkbox: true |
|||
}, |
|||
{ |
|||
field: 'nickname', |
|||
title: '昵称' |
|||
}, |
|||
{ |
|||
field: 'mobile', |
|||
title: '电话' |
|||
}, |
|||
{ |
|||
field: 'gender', |
|||
title: '性别' |
|||
}, |
|||
{ |
|||
field: 'province', |
|||
title: '省份' |
|||
}, |
|||
{ |
|||
field: 'city', |
|||
title: '城市' |
|||
}, |
|||
{ |
|||
field: 'creator', |
|||
title: '创建人' |
|||
}, |
|||
{ |
|||
field: 'createTime', |
|||
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.guid + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|||
// return actions.join(''); |
|||
// } |
|||
// } |
|||
] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,92 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
|||
<head> |
|||
<th:block th:include="zdxtInclude :: 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> |
|||
<p>昵称:</p> |
|||
<input type="text" name="nickname"/> |
|||
</li> |
|||
<li> |
|||
<p>电话:</p> |
|||
<input type="text" name="mobile"/> |
|||
</li> |
|||
<li> |
|||
<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.search()"><i |
|||
class="fa fa-search"></i> 搜索</a> |
|||
<a class="btn btn-reset 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"> |
|||
|
|||
</div> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-table"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="zdxtInclude :: footer"/> |
|||
<script th:inline="javascript"> |
|||
var editFlag = [[${@permission.hasPermi('project:user:edit')}]]; |
|||
var removeFlag = [[${@permission.hasPermi('project:user:remove')}]]; |
|||
var detailFlag = [[${@permission.hasPermi('project:user:detail')}]]; |
|||
var prefix = ctx + "small/project/feedback"; |
|||
|
|||
$(function () { |
|||
var options = { |
|||
url: prefix + "/list", |
|||
removeUrl: prefix + "/remove", |
|||
detailUrl: prefix + "/detail/{guid}", |
|||
modalName: "主页", |
|||
columns: [{ |
|||
checkbox: true |
|||
}, |
|||
{ |
|||
field: 'nickname', |
|||
title: '昵称' |
|||
}, |
|||
{ |
|||
field: 'mobile', |
|||
title: '电话' |
|||
}, |
|||
{ |
|||
field: 'content', |
|||
title: '反馈内容' |
|||
}, |
|||
{ |
|||
field: 'city', |
|||
title: '城市' |
|||
}, |
|||
{ |
|||
field: 'createTime', |
|||
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.guid + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|||
// return actions.join(''); |
|||
// } |
|||
// } |
|||
] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
|
|||
</script> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,215 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org"> |
|||
<head> |
|||
<th:block th:include="zdxtInclude :: header('详情')"/> |
|||
<th:block th:include="zdxtInclude :: bootstrap-fileinput-css"/> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-manage-detail" th:object="${sceneMedal}"> |
|||
<input name="guid" th:field="*{guid}" type="hidden"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">奖章名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="name" th:field="*{name}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">是否启用:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="hide" class="form-control" th:field="*{hide}"> |
|||
<option value="1">是</option> |
|||
<option value="0">否</option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">创建人:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="creator" th:field="*{creator}" 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="createTime" th:field="*{createTime}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group" id="fileTitle"> |
|||
<label class="col-sm-3 control-label">图标:</label> |
|||
<div id="fileIn" class="col-sm-8" readonly> |
|||
<div class="file-loading"> |
|||
<input id="fileInput" name="file" type="file" multiple> |
|||
</div> |
|||
</div> |
|||
<div id="fileOut" class="col-sm-8" style="display: none" readonly> |
|||
<div class="file-loading"> |
|||
<input id="fileOutput" name="file" type="file" multiple> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="zdxtInclude :: footer"/> |
|||
<th:block th:include="zdxtInclude :: bootstrap-fileinput-js"/> |
|||
<script type="text/javascript" th:inline="javascript"> |
|||
var prefix = ctx + "small/project/medal"; |
|||
|
|||
$(function () { |
|||
// 渲染文件要素信息 |
|||
renderVersionAtt(); |
|||
}) |
|||
|
|||
/** 附件相关 */ |
|||
var isFlieIn = true; |
|||
/** 渲染附件信息 */ |
|||
function renderVersionAtt() { |
|||
var key = $("[name='guid']").val(); |
|||
|
|||
$.getJSON(prefix + "/queryFiles/" + key, function (result) { |
|||
if (result.data != null) { |
|||
$("#fileIn").hide(); |
|||
$("#fileOut").show(); |
|||
// 重置文件预览框 |
|||
$("#fileOut").html("<div class=\"file-loading\"><input id=\"fileOutput\" name=\"file\" type=\"file\" multiple></div>"); |
|||
queryFiles(key); |
|||
isFlieIn = false; |
|||
} else { |
|||
$("#fileIn").show(); |
|||
$("#fileOut").hide(); |
|||
uploadFiles(); |
|||
isFlieIn = true; |
|||
$("#fileInput").fileinput('clear') |
|||
} |
|||
}); |
|||
} |
|||
|
|||
/** 预览附件 */ |
|||
function queryFiles(key) { |
|||
$.ajax({ |
|||
type: "POST", |
|||
url: prefix + "/queryFilesPost", |
|||
data: {"key": key}, |
|||
dataType: 'json', |
|||
success: function (result) { |
|||
if (result.success == true) { |
|||
initFile("fileOutput", prefix + "/edit", result.data.filePreview); |
|||
} |
|||
}, |
|||
error: function (error) { |
|||
$.modal.alertWarning("附件预览失败!"); |
|||
} |
|||
}); |
|||
} |
|||
|
|||
/** 上传附件 */ |
|||
function uploadFiles() { |
|||
var filePreview = {fileList: null, previewRespDTOS: null} |
|||
initFile("fileInput", prefix + "/edit", filePreview); |
|||
} |
|||
|
|||
/** 初始化文件 */ |
|||
function initFile(elementId, url, filePreview) { |
|||
var preview = filePreview.previewRespDTOS; |
|||
|
|||
if (preview != null) { |
|||
for (var i = 0; i < preview.length; i++) { |
|||
// 图片删除的地址 |
|||
preview[i].url = prefix + "/removeFile" |
|||
} |
|||
} |
|||
|
|||
$("#" + elementId).fileinput({ |
|||
'theme': 'explorer', |
|||
initialPreviewAsData: true, |
|||
dropZoneEnabled: true, |
|||
dropZoneTitle: "上传图片或视频", |
|||
uploadUrl: url, |
|||
uploadAsync: false,//异步上传 |
|||
enctype: 'multipart/form-data', |
|||
showClose: false, |
|||
showPreview: true, |
|||
showUpload: false, |
|||
uploadExtraData: function () { |
|||
var formData = $("#form-manage-detail").serialize(); |
|||
formData = decodeURIComponent(formData, true); |
|||
var arr = formData.split("&"); |
|||
var data = {}; |
|||
for (var i = 0; i < arr.length; i++) { |
|||
var item = arr[i].split('='); |
|||
var value = item[1].replace("+", " "); |
|||
data[item[0]] = value; |
|||
} |
|||
return data; |
|||
}, |
|||
// showBrowse: false, |
|||
previewFileIcon: '<i class="fas fa-file"></i>', |
|||
preferIconicPreview: true, |
|||
previewFileIconSettings: { // configure your icon file extensions |
|||
'doc': '<i class="fa fa-file-word-o text-primary"></i>', |
|||
'xls': '<i class="fa fa-file-excel-o text-success"></i>', |
|||
'ppt': '<i class="fa fa-file-powerpoint-o text-danger"></i>', |
|||
'pdf': '<i class="fa fa-file-pdf-o text-danger"></i>', |
|||
'txt': '<i class="fa fa-file-text-o text-info"></i>', |
|||
'zip': '<i class="fa fa-file-archive-o text-muted"></i>', |
|||
'htm': '<i class="fa fa-file-code-o text-info"></i>', |
|||
'mov': '<i class="fa fa-file-movie-o text-warning"></i>', |
|||
'mp3': '<i class="fa fa-file-audio-o text-warning"></i>' |
|||
}, |
|||
previewFileExtSettings: { |
|||
'doc': function (ext) { |
|||
return ext.match(/(doc|docx)$/i); |
|||
}, |
|||
'xls': function (ext) { |
|||
return ext.match(/(xls|xlsx)$/i); |
|||
}, |
|||
'ppt': function (ext) { |
|||
return ext.match(/(ppt|pptx)$/i); |
|||
}, |
|||
'zip': function (ext) { |
|||
return ext.match(/(zip|rar|tar|gzip|gz|7z)$/i); |
|||
}, |
|||
'htm': function (ext) { |
|||
return ext.match(/(htm|html)$/i); |
|||
}, |
|||
'mov': function (ext) { |
|||
return ext.match(/(avi|mpg|mkv|mov|mp4|3gp|webm|wmv)$/i); |
|||
}, |
|||
'mp3': function (ext) { |
|||
return ext.match(/(mp3|wav)$/i); |
|||
}, |
|||
'txt': function (ext) { |
|||
return ext.match(/(txt|ini|csv|java|php|js|css)$/i); |
|||
} |
|||
}, |
|||
layoutTemplates: { |
|||
actionDelete: '',//去掉删除按钮 |
|||
actionUpload: '' // 去掉上传按钮 |
|||
}, |
|||
initialPreview: filePreview.fileList == null ? [] : filePreview.fileList, |
|||
initialPreviewConfig: preview == null ? [] : preview |
|||
}); |
|||
|
|||
// 同步上传成功回调 |
|||
$("#fileInput").on("filebatchuploadsuccess", function (event, data, previewId, index) { |
|||
fileUploadCallBack(data.response); |
|||
}) |
|||
// 同步上传成功回调 |
|||
$("#fileOutput").on("filebatchuploadsuccess", function (event, data, previewId, index) { |
|||
fileUploadCallBack(data.response); |
|||
}) |
|||
}; |
|||
|
|||
function fileUploadCallBack(result) { |
|||
var parent = window.parent; |
|||
if (result.success) { |
|||
parent.$.modal.msgSuccess(result.message); |
|||
} else { |
|||
$.modal.alertError(result.message); |
|||
} |
|||
$.modal.close(); |
|||
parent.$.table.refresh(); |
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,41 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="zdxtInclude :: header('编辑')" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-text-add"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label is-required">配置类型:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="type" class="form-control" required> |
|||
<option value="0">隐私政策</option> |
|||
<option value="1">用户协议</option> |
|||
<option value="2">关于</option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label is-required">配置内容:</label> |
|||
<div class="col-sm-8"> |
|||
<textarea name="content" class="form-control" style="height: 300px" required></textarea> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="zdxtInclude :: footer" /> |
|||
<script type="text/javascript" th:inline="javascript"> |
|||
var prefix = ctx + "small/project/text"; |
|||
$("#form-text-add").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/add", $('#form-text-add').serialize()); |
|||
} |
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,42 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="zdxtInclude :: header('编辑')" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-text-edit" th:object="${text}"> |
|||
<input name="guid" th:field="*{guid}" type="hidden"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label is-required">配置类型:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="type" class="form-control" required th:field="*{type}"> |
|||
<option value="0">隐私政策</option> |
|||
<option value="1">用户协议</option> |
|||
<option value="2">关于</option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label is-required">配置内容:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="content" class="form-control" type="textarea" required th:field="*{content}"> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="zdxtInclude :: footer" /> |
|||
<script type="text/javascript" th:inline="javascript"> |
|||
var prefix = ctx + "small/project/text"; |
|||
$("#form-text-edit").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/edit", $('#form-text-edit').serialize()); |
|||
} |
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,100 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
|||
<head> |
|||
<th:block th:include="zdxtInclude :: 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> |
|||
<p>配置类型:</p> |
|||
<input type="text" name="type"/> |
|||
</li> |
|||
<li> |
|||
<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.search()"><i |
|||
class="fa fa-search"></i> 搜索</a> |
|||
<a class="btn btn-reset 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.addFull()" shiro:hasPermission="project:scene:add"> |
|||
<i class="fa fa-plus"></i> 添加 |
|||
</a> |
|||
</div> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-table"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="zdxtInclude :: footer"/> |
|||
<script th:inline="javascript"> |
|||
var editFlag = [[${@permission.hasPermi('project:text:edit')}]]; |
|||
var removeFlag = [[${@permission.hasPermi('project:text:remove')}]]; |
|||
var detailFlag = [[${@permission.hasPermi('project:text:detail')}]]; |
|||
var prefix = ctx + "small/project/text"; |
|||
|
|||
$(function () { |
|||
var options = { |
|||
url: prefix + "/list", |
|||
createUrl: prefix + "/add", |
|||
updateUrl: prefix + "/edit/{id}", |
|||
removeUrl: prefix + "/remove", |
|||
exportUrl: prefix + "/export", |
|||
detailUrl: prefix + "/detail/{guid}", |
|||
modalName: "主页", |
|||
columns: [{ |
|||
checkbox: true |
|||
}, |
|||
{ |
|||
field: 'content', |
|||
title: '配置内容' |
|||
}, |
|||
{ |
|||
field: 'type', |
|||
title: '配置类型', |
|||
formatter: function (value, index) { |
|||
if (value === 0) { |
|||
return "隐私政策"; |
|||
} else if (value === 1) { |
|||
return "用户协议"; |
|||
} else if (value === 2) { |
|||
return "关于"; |
|||
} else { |
|||
return ""; |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
field: 'creator', |
|||
title: '创建人' |
|||
}, |
|||
{ |
|||
field: 'createTime', |
|||
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.guid + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|||
return actions.join(''); |
|||
} |
|||
} |
|||
] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
|
|||
</script> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,34 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="zdxtInclude :: header('管理用户勋章')" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-medal-edit" th:object="${user}"> |
|||
<input name="guid" th:field="*{guid}" type="hidden"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">勋章:</label> |
|||
<div class="col-sm-8"> |
|||
<label th:each="medalObj:${sceneMedalList}" class="check-box"> |
|||
<input name="medal" type="checkbox" th:value="${medalObj.guid}" th:text="${medalObj.name}" th:checked="${user.medal != null && user.medal.contains(medalObj.guid.toString())}"> |
|||
</label> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="zdxtInclude :: footer" /> |
|||
<script type="text/javascript" th:inline="javascript"> |
|||
var prefix = ctx + "small/wechat"; |
|||
$("#form-question-edit").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/edit", $('#form-medal-edit').serialize()); |
|||
} |
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,122 @@ |
|||
package com.zdxt.knowledge.controller; |
|||
|
|||
import com.zdxt.common.ZDResponse; |
|||
import com.zdxt.common.controller.BaseController; |
|||
import com.zdxt.common.util.TableDataInfo; |
|||
import com.zdxt.knowledge.domain.SceneText; |
|||
import com.zdxt.knowledge.service.ISceneTextService; |
|||
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.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 【请填写功能名称】Controller |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-01-22 |
|||
*/ |
|||
@Controller |
|||
@RequestMapping("/small/project/text") |
|||
public class SceneTextController extends BaseController { |
|||
private String prefix = "project/text"; |
|||
|
|||
@Autowired |
|||
private ISceneTextService sceneTextService; |
|||
|
|||
@RequiresPermissions("project:text:view") |
|||
@GetMapping("/view") |
|||
public String manage() { |
|||
return prefix + "/view"; |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 查询 |
|||
*/ |
|||
@RequiresPermissions("project:text:list") |
|||
@PostMapping("/list") |
|||
@ResponseBody |
|||
public TableDataInfo list(SceneText sceneText) { |
|||
startPage(); |
|||
List<SceneText> list = sceneTextService.selectSceneTextList(sceneText); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 查询 |
|||
*/ |
|||
@PostMapping("/listAll") |
|||
@ResponseBody |
|||
public ZDResponse listAll(@RequestBody SceneText sceneText) { |
|||
List<SceneText> list = sceneTextService.selectSceneTextList(sceneText); |
|||
return ZDResponse.success("成功", list); |
|||
} |
|||
|
|||
/** |
|||
* 查看详情 |
|||
*/ |
|||
@RequiresPermissions("project:text:detail") |
|||
@GetMapping("/detail/{guid}") |
|||
public String detail(@PathVariable("guid") String guid, ModelMap mmap) { |
|||
SceneText sceneText = sceneTextService.selectSceneTextById(guid); |
|||
mmap.put("sceneText", sceneText); |
|||
return prefix + "/detail"; |
|||
} |
|||
|
|||
/** |
|||
* 新增 |
|||
*/ |
|||
@GetMapping("/add") |
|||
public String add() { |
|||
return prefix + "/add"; |
|||
} |
|||
|
|||
/** |
|||
* 新增保存 |
|||
*/ |
|||
@RequiresPermissions("project:text:add") |
|||
@PostMapping("/add") |
|||
@ResponseBody |
|||
public ZDResponse addSave(SceneText sceneText) { |
|||
return sceneTextService.insertSceneText(sceneText) > 0 |
|||
? ZDResponse.success() : ZDResponse.error("新增失败"); |
|||
} |
|||
|
|||
/** |
|||
* 修改 |
|||
*/ |
|||
@GetMapping("/edit/{guid}") |
|||
public String edit(@PathVariable("guid") String guid, ModelMap mmap) { |
|||
SceneText sceneText = sceneTextService.selectSceneTextById(guid); |
|||
mmap.put("sceneText", sceneText); |
|||
return prefix + "/edit"; |
|||
} |
|||
|
|||
/** |
|||
* 修改保存 |
|||
*/ |
|||
@RequiresPermissions("project:text:edit") |
|||
@PostMapping("/edit") |
|||
@ResponseBody |
|||
public ZDResponse editSave(SceneText sceneText) { |
|||
return sceneTextService.updateSceneText(sceneText) > 0 |
|||
? ZDResponse.success() : ZDResponse.error("编辑失败"); |
|||
} |
|||
|
|||
/** |
|||
* 删除 |
|||
*/ |
|||
@RequiresPermissions("project:text:remove") |
|||
@PostMapping("/remove") |
|||
@ResponseBody |
|||
public ZDResponse remove(String ids) { |
|||
return sceneTextService.deleteSceneTextByIds(ids) > 0 |
|||
? ZDResponse.success() : ZDResponse.error("删除失败"); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,122 @@ |
|||
package com.zdxt.knowledge.controller; |
|||
|
|||
import com.zdxt.common.ZDResponse; |
|||
import com.zdxt.common.controller.BaseController; |
|||
import com.zdxt.common.util.TableDataInfo; |
|||
import com.zdxt.knowledge.domain.UserAddress; |
|||
import com.zdxt.knowledge.service.IUserAddressService; |
|||
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.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 【请填写功能名称】Controller |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-01-22 |
|||
*/ |
|||
@Controller |
|||
@RequestMapping("/small/project/address") |
|||
public class UserAddressController extends BaseController { |
|||
private String prefix = "project/address"; |
|||
|
|||
@Autowired |
|||
private IUserAddressService userAddressService; |
|||
|
|||
@RequiresPermissions("project:address:view") |
|||
@GetMapping("/view") |
|||
public String manage() { |
|||
return prefix + "/view"; |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 查询 |
|||
*/ |
|||
@RequiresPermissions("project:address:list") |
|||
@PostMapping("/list") |
|||
@ResponseBody |
|||
public TableDataInfo list(UserAddress userAddress) { |
|||
startPage(); |
|||
List<UserAddress> list = userAddressService.selectUserAddressList(userAddress); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 查询 |
|||
*/ |
|||
@PostMapping("/listAll") |
|||
@ResponseBody |
|||
public ZDResponse listAll(@RequestBody UserAddress userAddress) { |
|||
List<UserAddress> list = userAddressService.selectUserAddressList(userAddress); |
|||
return ZDResponse.success("成功", list); |
|||
} |
|||
|
|||
/** |
|||
* 查看详情 |
|||
*/ |
|||
@RequiresPermissions("project:address:detail") |
|||
@GetMapping("/detail/{guid}") |
|||
public String detail(@PathVariable("guid") String guid, ModelMap mmap) { |
|||
UserAddress userAddress = userAddressService.selectUserAddressById(guid); |
|||
mmap.put("userAddress", userAddress); |
|||
return prefix + "/detail"; |
|||
} |
|||
|
|||
/** |
|||
* 新增 |
|||
*/ |
|||
@GetMapping("/add") |
|||
public String add() { |
|||
return prefix + "/add"; |
|||
} |
|||
|
|||
/** |
|||
* 新增保存 |
|||
*/ |
|||
@RequiresPermissions("project:address:add") |
|||
@PostMapping("/add") |
|||
@ResponseBody |
|||
public ZDResponse addSave(UserAddress userAddress) { |
|||
return userAddressService.insertUserAddress(userAddress) > 0 |
|||
? ZDResponse.success() : ZDResponse.error("新增失败"); |
|||
} |
|||
|
|||
/** |
|||
* 修改 |
|||
*/ |
|||
@GetMapping("/edit/{guid}") |
|||
public String edit(@PathVariable("guid") String guid, ModelMap mmap) { |
|||
UserAddress userAddress = userAddressService.selectUserAddressById(guid); |
|||
mmap.put("userAddress", userAddress); |
|||
return prefix + "/edit"; |
|||
} |
|||
|
|||
/** |
|||
* 修改保存 |
|||
*/ |
|||
@RequiresPermissions("project:address:edit") |
|||
@PostMapping("/edit") |
|||
@ResponseBody |
|||
public ZDResponse editSave(UserAddress userAddress) { |
|||
return userAddressService.updateUserAddress(userAddress) > 0 |
|||
? ZDResponse.success() : ZDResponse.error("编辑失败"); |
|||
} |
|||
|
|||
/** |
|||
* 删除 |
|||
*/ |
|||
@RequiresPermissions("project:address:remove") |
|||
@PostMapping("/remove") |
|||
@ResponseBody |
|||
public ZDResponse remove(String ids) { |
|||
return userAddressService.deleteUserAddressByIds(ids) > 0 |
|||
? ZDResponse.success() : ZDResponse.error("删除失败"); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,92 @@ |
|||
package com.zdxt.knowledge.controller; |
|||
|
|||
import com.zdxt.common.ZDResponse; |
|||
import com.zdxt.common.controller.BaseController; |
|||
import com.zdxt.common.util.TableDataInfo; |
|||
import com.zdxt.knowledge.domain.UserFeedback; |
|||
import com.zdxt.knowledge.service.IUserFeedbackService; |
|||
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.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 【请填写功能名称】Controller |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-01-22 |
|||
*/ |
|||
@Controller |
|||
@RequestMapping("/small/project/feedback") |
|||
public class UserFeedbackController extends BaseController { |
|||
private String prefix = "project/feedback"; |
|||
|
|||
@Autowired |
|||
private IUserFeedbackService userFeedbackService; |
|||
|
|||
@RequiresPermissions("project:feedback:view") |
|||
@GetMapping("/view") |
|||
public String manage() { |
|||
return prefix + "/view"; |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 查询 |
|||
*/ |
|||
@RequiresPermissions("project:feedback:list") |
|||
@PostMapping("/list") |
|||
@ResponseBody |
|||
public TableDataInfo list(UserFeedback userFeedback) { |
|||
startPage(); |
|||
List<UserFeedback> list = userFeedbackService.selectUserFeedbackList(userFeedback); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 查询 |
|||
*/ |
|||
@PostMapping("/listAll") |
|||
@ResponseBody |
|||
public ZDResponse listAll(@RequestBody UserFeedback userFeedback) { |
|||
List<UserFeedback> list = userFeedbackService.selectUserFeedbackList(userFeedback); |
|||
return ZDResponse.success("成功", list); |
|||
} |
|||
|
|||
/** |
|||
* 查看详情 |
|||
*/ |
|||
@RequiresPermissions("project:feedback:detail") |
|||
@GetMapping("/detail/{guid}") |
|||
public String detail(@PathVariable("guid") String guid, ModelMap mmap) { |
|||
UserFeedback userFeedback = userFeedbackService.selectUserFeedbackById(guid); |
|||
mmap.put("userFeedback", userFeedback); |
|||
return prefix + "/detail"; |
|||
} |
|||
|
|||
/** |
|||
* 新增保存 |
|||
*/ |
|||
@PostMapping("/add") |
|||
@ResponseBody |
|||
public ZDResponse addSave(@RequestBody UserFeedback userFeedback) { |
|||
return userFeedbackService.insertUserFeedback(userFeedback) > 0 |
|||
? ZDResponse.success() : ZDResponse.error("新增失败"); |
|||
} |
|||
|
|||
/** |
|||
* 删除 |
|||
*/ |
|||
@RequiresPermissions("project:feedback:remove") |
|||
@PostMapping("/remove") |
|||
@ResponseBody |
|||
public ZDResponse remove(String ids) { |
|||
return userFeedbackService.deleteUserFeedbackByIds(ids) > 0 |
|||
? ZDResponse.success() : ZDResponse.error("删除失败"); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,125 @@ |
|||
package com.zdxt.knowledge.domain; |
|||
|
|||
import io.swagger.models.auth.In; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 用户反馈 scene_text |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-01-24 |
|||
*/ |
|||
public class SceneText implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String guid; |
|||
|
|||
/** |
|||
* 配置内容 |
|||
*/ |
|||
private String content; |
|||
|
|||
/** |
|||
* 类型 |
|||
*/ |
|||
private Integer type; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String creator; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
private Date createTime; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String updateBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
private Date updateTime; |
|||
|
|||
/** |
|||
* 请求参数 |
|||
*/ |
|||
private Map<String, Object> params; |
|||
|
|||
public String getGuid() { |
|||
return guid; |
|||
} |
|||
|
|||
public void setGuid(String guid) { |
|||
this.guid = guid; |
|||
} |
|||
|
|||
public String getContent() { |
|||
return content; |
|||
} |
|||
|
|||
public void setContent(String content) { |
|||
this.content = content; |
|||
} |
|||
|
|||
public String getCreator() { |
|||
return creator; |
|||
} |
|||
|
|||
public void setCreator(String creator) { |
|||
this.creator = creator; |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public Map<String, Object> getParams() { |
|||
return params; |
|||
} |
|||
|
|||
public void setParams(Map<String, Object> params) { |
|||
this.params = params; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy; |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Integer getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Integer type) { |
|||
this.type = type; |
|||
} |
|||
} |
|||
@ -0,0 +1,114 @@ |
|||
package com.zdxt.knowledge.domain; |
|||
|
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 用户反馈 user_address |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-01-24 |
|||
*/ |
|||
public class UserAddress implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String guid; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 收货人姓名 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 收获详情地址 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 手机号码 |
|||
*/ |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String creator; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
private Date createTime; |
|||
|
|||
/** |
|||
* 请求参数 |
|||
*/ |
|||
private Map<String, Object> params; |
|||
|
|||
public String getGuid() { |
|||
return guid; |
|||
} |
|||
|
|||
public void setGuid(String guid) { |
|||
this.guid = guid; |
|||
} |
|||
|
|||
public String getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(String userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public String getMobile() { |
|||
return mobile; |
|||
} |
|||
|
|||
public void setMobile(String mobile) { |
|||
this.mobile = mobile; |
|||
} |
|||
|
|||
public String getCreator() { |
|||
return creator; |
|||
} |
|||
|
|||
public void setCreator(String creator) { |
|||
this.creator = creator; |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name; |
|||
} |
|||
|
|||
public String getAddress() { |
|||
return address; |
|||
} |
|||
|
|||
public void setAddress(String address) { |
|||
this.address = address; |
|||
} |
|||
} |
|||
@ -0,0 +1,127 @@ |
|||
package com.zdxt.knowledge.domain; |
|||
|
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 用户反馈 user_feedback |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-01-24 |
|||
*/ |
|||
public class UserFeedback implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String guid; |
|||
|
|||
/** |
|||
* 反馈内容 |
|||
*/ |
|||
private String content; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 昵称 |
|||
*/ |
|||
private String nickname; |
|||
|
|||
/** |
|||
* 用户手机号码 |
|||
*/ |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 城市 |
|||
*/ |
|||
private String city; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String creator; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
private Date createTime; |
|||
|
|||
/** |
|||
* 请求参数 |
|||
*/ |
|||
private Map<String, Object> params; |
|||
|
|||
public String getGuid() { |
|||
return guid; |
|||
} |
|||
|
|||
public void setGuid(String guid) { |
|||
this.guid = guid; |
|||
} |
|||
|
|||
public String getContent() { |
|||
return content; |
|||
} |
|||
|
|||
public void setContent(String content) { |
|||
this.content = content; |
|||
} |
|||
|
|||
public String getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(String userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public String getMobile() { |
|||
return mobile; |
|||
} |
|||
|
|||
public void setMobile(String mobile) { |
|||
this.mobile = mobile; |
|||
} |
|||
|
|||
public String getCity() { |
|||
return city; |
|||
} |
|||
|
|||
public void setCity(String city) { |
|||
this.city = city; |
|||
} |
|||
|
|||
public String getCreator() { |
|||
return creator; |
|||
} |
|||
|
|||
public void setCreator(String creator) { |
|||
this.creator = creator; |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getNickname() { |
|||
return nickname; |
|||
} |
|||
|
|||
public void setNickname(String nickname) { |
|||
this.nickname = nickname; |
|||
} |
|||
} |
|||
@ -0,0 +1,54 @@ |
|||
package com.zdxt.knowledge.mapper; |
|||
|
|||
import com.zdxt.knowledge.domain.SceneText; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Mapper接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-12-26 |
|||
*/ |
|||
public interface SceneTextMapper { |
|||
/** |
|||
* 查询 |
|||
* |
|||
* @param guid ID |
|||
* @return |
|||
*/ |
|||
public SceneText selectSceneTextById(String guid); |
|||
|
|||
/** |
|||
* 查询列表 |
|||
* |
|||
* @param SceneText |
|||
* @return 集合 |
|||
*/ |
|||
public List<SceneText> selectSceneTextList(SceneText SceneText); |
|||
|
|||
/** |
|||
* 新增 |
|||
* |
|||
* @param SceneText |
|||
* @return 结果 |
|||
*/ |
|||
public int insertSceneText(SceneText SceneText); |
|||
|
|||
/** |
|||
* 修改 |
|||
* |
|||
* @param SceneText |
|||
* @return 结果 |
|||
*/ |
|||
public int updateSceneText(SceneText SceneText); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param guids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSceneTextByIds(String[] guids); |
|||
|
|||
} |
|||
@ -0,0 +1,54 @@ |
|||
package com.zdxt.knowledge.mapper; |
|||
|
|||
import com.zdxt.knowledge.domain.UserAddress; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Mapper接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-12-26 |
|||
*/ |
|||
public interface UserAddressMapper { |
|||
/** |
|||
* 查询 |
|||
* |
|||
* @param guid ID |
|||
* @return |
|||
*/ |
|||
public UserAddress selectUserAddressById(String guid); |
|||
|
|||
/** |
|||
* 查询列表 |
|||
* |
|||
* @param userAddress |
|||
* @return 集合 |
|||
*/ |
|||
public List<UserAddress> selectUserAddressList(UserAddress userAddress); |
|||
|
|||
/** |
|||
* 新增 |
|||
* |
|||
* @param userAddress |
|||
* @return 结果 |
|||
*/ |
|||
public int insertUserAddress(UserAddress userAddress); |
|||
|
|||
/** |
|||
* 修改 |
|||
* |
|||
* @param userAddress |
|||
* @return 结果 |
|||
*/ |
|||
public int updateUserAddress(UserAddress userAddress); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param guids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteUserAddressByIds(String[] guids); |
|||
|
|||
} |
|||
@ -0,0 +1,54 @@ |
|||
package com.zdxt.knowledge.mapper; |
|||
|
|||
import com.zdxt.knowledge.domain.UserFeedback; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Mapper接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-12-26 |
|||
*/ |
|||
public interface UserFeedbackMapper { |
|||
/** |
|||
* 查询 |
|||
* |
|||
* @param guid ID |
|||
* @return |
|||
*/ |
|||
public UserFeedback selectUserFeedbackById(String guid); |
|||
|
|||
/** |
|||
* 查询列表 |
|||
* |
|||
* @param userFeedback |
|||
* @return 集合 |
|||
*/ |
|||
public List<UserFeedback> selectUserFeedbackList(UserFeedback userFeedback); |
|||
|
|||
/** |
|||
* 新增 |
|||
* |
|||
* @param userFeedback |
|||
* @return 结果 |
|||
*/ |
|||
public int insertUserFeedback(UserFeedback userFeedback); |
|||
|
|||
/** |
|||
* 修改 |
|||
* |
|||
* @param userFeedback |
|||
* @return 结果 |
|||
*/ |
|||
public int updateUserFeedback(UserFeedback userFeedback); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param guids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteUserFeedbackByIds(String[] guids); |
|||
|
|||
} |
|||
@ -0,0 +1,53 @@ |
|||
package com.zdxt.knowledge.service; |
|||
|
|||
import com.zdxt.knowledge.domain.SceneText; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Service接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-12-26 |
|||
*/ |
|||
public interface ISceneTextService { |
|||
/** |
|||
* 查询 |
|||
* |
|||
* @param guid ID |
|||
* @return |
|||
*/ |
|||
public SceneText selectSceneTextById(String guid); |
|||
|
|||
/** |
|||
* 查询列表 |
|||
* |
|||
* @param sceneText |
|||
* @return 集合 |
|||
*/ |
|||
public List<SceneText> selectSceneTextList(SceneText sceneText); |
|||
|
|||
/** |
|||
* 新增 |
|||
* |
|||
* @param sceneText |
|||
* @return 结果 |
|||
*/ |
|||
public int insertSceneText(SceneText sceneText); |
|||
|
|||
/** |
|||
* 修改 |
|||
* |
|||
* @param sceneText |
|||
* @return 结果 |
|||
*/ |
|||
public int updateSceneText(SceneText sceneText); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param guids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSceneTextByIds(String guids); |
|||
} |
|||
@ -0,0 +1,54 @@ |
|||
package com.zdxt.knowledge.service; |
|||
|
|||
import com.zdxt.knowledge.domain.UserAddress; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Service接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-12-26 |
|||
*/ |
|||
public interface IUserAddressService { |
|||
/** |
|||
* 查询 |
|||
* |
|||
* @param guid ID |
|||
* @return |
|||
*/ |
|||
public UserAddress selectUserAddressById(String guid); |
|||
|
|||
/** |
|||
* 查询列表 |
|||
* |
|||
* @param userAddress |
|||
* @return 集合 |
|||
*/ |
|||
public List<UserAddress> selectUserAddressList(UserAddress userAddress); |
|||
|
|||
|
|||
/** |
|||
* 新增 |
|||
* |
|||
* @param userAddress |
|||
* @return 结果 |
|||
*/ |
|||
public int insertUserAddress(UserAddress userAddress); |
|||
|
|||
/** |
|||
* 修改 |
|||
* |
|||
* @param userAddress |
|||
* @return 结果 |
|||
*/ |
|||
public int updateUserAddress(UserAddress userAddress); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param guids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteUserAddressByIds(String guids); |
|||
} |
|||
@ -0,0 +1,45 @@ |
|||
package com.zdxt.knowledge.service; |
|||
|
|||
import com.zdxt.knowledge.domain.UserFeedback; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Service接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-12-26 |
|||
*/ |
|||
public interface IUserFeedbackService { |
|||
/** |
|||
* 查询 |
|||
* |
|||
* @param guid ID |
|||
* @return |
|||
*/ |
|||
public UserFeedback selectUserFeedbackById(String guid); |
|||
|
|||
/** |
|||
* 查询列表 |
|||
* |
|||
* @param userFeedback |
|||
* @return 集合 |
|||
*/ |
|||
public List<UserFeedback> selectUserFeedbackList(UserFeedback userFeedback); |
|||
|
|||
/** |
|||
* 新增 |
|||
* |
|||
* @param userFeedback |
|||
* @return 结果 |
|||
*/ |
|||
public int insertUserFeedback(UserFeedback userFeedback); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param guids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteUserFeedbackByIds(String guids); |
|||
} |
|||
@ -0,0 +1,92 @@ |
|||
package com.zdxt.knowledge.service.impl; |
|||
|
|||
import com.zdxt.auth.dto.UserBean; |
|||
import com.zdxt.auth.feign.UserApi; |
|||
import com.zdxt.common.util.Convert; |
|||
import com.zdxt.common.util.DateUtils; |
|||
import com.zdxt.common.util.StringUtils; |
|||
import com.zdxt.knowledge.domain.SceneText; |
|||
import com.zdxt.knowledge.mapper.SceneTextMapper; |
|||
import com.zdxt.knowledge.service.ISceneTextService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
import java.util.Objects; |
|||
|
|||
/** |
|||
* Service业务层处理 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-12-26 |
|||
*/ |
|||
@Service |
|||
public class SceneTextServiceImpl implements ISceneTextService { |
|||
@Autowired |
|||
private SceneTextMapper sceneTextMapper; |
|||
@Autowired |
|||
private UserApi userApi; |
|||
|
|||
/** |
|||
* 查询 |
|||
* |
|||
* @param guid ID |
|||
* @return |
|||
*/ |
|||
@Override |
|||
public SceneText selectSceneTextById(String guid) { |
|||
return sceneTextMapper.selectSceneTextById(guid); |
|||
} |
|||
|
|||
/** |
|||
* 查询列表 |
|||
* |
|||
* @param sceneText |
|||
* @return |
|||
*/ |
|||
@Override |
|||
public List<SceneText> selectSceneTextList(SceneText sceneText) { |
|||
return sceneTextMapper.selectSceneTextList(sceneText); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 新增 |
|||
* |
|||
* @param sceneText |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertSceneText(SceneText sceneText) { |
|||
UserBean userBean = userApi.getCurrentUser(); |
|||
if (Objects.nonNull(userBean)) { |
|||
sceneText.setCreator(userBean.getUserName()); |
|||
sceneText.setCreateTime(DateUtils.getNowDate()); |
|||
} |
|||
sceneText.setGuid(StringUtils.getUUID()); |
|||
return sceneTextMapper.insertSceneText(sceneText); |
|||
} |
|||
|
|||
/** |
|||
* 修改 |
|||
* |
|||
* @param sceneText |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateSceneText(SceneText sceneText) { |
|||
return sceneTextMapper.updateSceneText(sceneText); |
|||
} |
|||
|
|||
/** |
|||
* 删除对象 |
|||
* |
|||
* @param guids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteSceneTextByIds(String guids) { |
|||
return sceneTextMapper.deleteSceneTextByIds(Convert.toStrArray(guids)); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,92 @@ |
|||
package com.zdxt.knowledge.service.impl; |
|||
|
|||
import com.zdxt.auth.dto.UserBean; |
|||
import com.zdxt.auth.feign.UserApi; |
|||
import com.zdxt.common.util.Convert; |
|||
import com.zdxt.common.util.DateUtils; |
|||
import com.zdxt.common.util.StringUtils; |
|||
import com.zdxt.knowledge.domain.UserAddress; |
|||
import com.zdxt.knowledge.mapper.UserAddressMapper; |
|||
import com.zdxt.knowledge.service.IUserAddressService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
import java.util.Objects; |
|||
|
|||
/** |
|||
* Service业务层处理 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-12-26 |
|||
*/ |
|||
@Service |
|||
public class UserAddressServiceImpl implements IUserAddressService { |
|||
@Autowired |
|||
private UserAddressMapper userAddressMapper; |
|||
@Autowired |
|||
private UserApi userApi; |
|||
|
|||
/** |
|||
* 查询 |
|||
* |
|||
* @param guid ID |
|||
* @return |
|||
*/ |
|||
@Override |
|||
public UserAddress selectUserAddressById(String guid) { |
|||
return userAddressMapper.selectUserAddressById(guid); |
|||
} |
|||
|
|||
/** |
|||
* 查询列表 |
|||
* |
|||
* @param userAddress |
|||
* @return |
|||
*/ |
|||
@Override |
|||
public List<UserAddress> selectUserAddressList(UserAddress userAddress) { |
|||
return userAddressMapper.selectUserAddressList(userAddress); |
|||
} |
|||
|
|||
/** |
|||
* 新增 |
|||
* |
|||
* @param userAddress |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertUserAddress(UserAddress userAddress) { |
|||
UserBean userBean = userApi.getCurrentUser(); |
|||
if (Objects.nonNull(userBean)) { |
|||
userAddress.setCreator(userBean.getUserName()); |
|||
userAddress.setCreateTime(DateUtils.getNowDate()); |
|||
} |
|||
userAddress.setGuid(StringUtils.getUUID()); |
|||
return userAddressMapper.insertUserAddress(userAddress); |
|||
} |
|||
|
|||
/** |
|||
* 修改 |
|||
* |
|||
* @param userAddress |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateUserAddress(UserAddress userAddress) { |
|||
int result = userAddressMapper.updateUserAddress(userAddress); |
|||
return result; |
|||
} |
|||
|
|||
/** |
|||
* 删除对象 |
|||
* |
|||
* @param guids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteUserAddressByIds(String guids) { |
|||
return userAddressMapper.deleteUserAddressByIds(Convert.toStrArray(guids)); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,72 @@ |
|||
package com.zdxt.knowledge.service.impl; |
|||
|
|||
import com.zdxt.common.util.Convert; |
|||
import com.zdxt.common.util.DateUtils; |
|||
import com.zdxt.common.util.StringUtils; |
|||
import com.zdxt.knowledge.domain.UserFeedback; |
|||
import com.zdxt.knowledge.mapper.UserFeedbackMapper; |
|||
import com.zdxt.knowledge.service.IUserFeedbackService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Service业务层处理 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-12-26 |
|||
*/ |
|||
@Service |
|||
public class UserFeedbackServiceImpl implements IUserFeedbackService { |
|||
@Autowired |
|||
private UserFeedbackMapper userFeedbackMapper; |
|||
|
|||
/** |
|||
* 查询 |
|||
* |
|||
* @param guid ID |
|||
* @return |
|||
*/ |
|||
@Override |
|||
public UserFeedback selectUserFeedbackById(String guid) { |
|||
return userFeedbackMapper.selectUserFeedbackById(guid); |
|||
} |
|||
|
|||
/** |
|||
* 查询列表 |
|||
* |
|||
* @param userFeedback |
|||
* @return |
|||
*/ |
|||
@Override |
|||
public List<UserFeedback> selectUserFeedbackList(UserFeedback userFeedback) { |
|||
return userFeedbackMapper.selectUserFeedbackList(userFeedback); |
|||
} |
|||
|
|||
/** |
|||
* 新增 |
|||
* |
|||
* @param userFeedback |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertUserFeedback(UserFeedback userFeedback) { |
|||
userFeedback.setCreator(userFeedback.getNickname()); |
|||
userFeedback.setGuid(StringUtils.getUUID()); |
|||
userFeedback.setCreateTime(DateUtils.getNowDate()); |
|||
return userFeedbackMapper.insertUserFeedback(userFeedback); |
|||
} |
|||
|
|||
/** |
|||
* 删除对象 |
|||
* |
|||
* @param guids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteUserFeedbackByIds(String guids) { |
|||
return userFeedbackMapper.deleteUserFeedbackByIds(Convert.toStrArray(guids)); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,87 @@ |
|||
<?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.zdxt.knowledge.mapper.SceneTextMapper"> |
|||
|
|||
<resultMap type="com.zdxt.knowledge.domain.SceneText" id="SceneTextResult"> |
|||
<result property="guid" column="guid"/> |
|||
<result property="content" column="content"/> |
|||
<result property="type" column="type"/> |
|||
<result property="creator" column="creator"/> |
|||
<result property="createTime" column="create_time"/> |
|||
<result property="updateBy" column="update_by"/> |
|||
<result property="updateTime" column="update_time"/> |
|||
</resultMap> |
|||
|
|||
<sql id="selectSceneTextVo"> |
|||
select guid, |
|||
content, |
|||
type, |
|||
creator, |
|||
create_time, |
|||
update_by, |
|||
update_time |
|||
from scene_text |
|||
</sql> |
|||
|
|||
<select id="selectSceneTextList" parameterType="SceneText" resultMap="SceneTextResult"> |
|||
<include refid="selectSceneTextVo"/> |
|||
<where> |
|||
<if test="type != null and type != ''">and `type` like concat('%', #{type}, '%')</if> |
|||
<if test="creator != null and creator != ''">and creator = #{creator}</if> |
|||
</where> |
|||
order by create_time desc |
|||
</select> |
|||
|
|||
<select id="selectSceneTextById" parameterType="String" resultMap="SceneTextResult"> |
|||
<include refid="selectSceneTextVo"/> |
|||
where guid = #{guid} |
|||
</select> |
|||
|
|||
<insert id="insertSceneText" parameterType="SceneText"> |
|||
insert into scene_text |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="guid != null ">guid,</if> |
|||
<if test="content != null and content != ''">`content`,</if> |
|||
<if test="type != null and type != ''">`type`,</if> |
|||
<if test="creator != null and creator != ''">creator,</if> |
|||
<if test="createTime != null ">create_time,</if> |
|||
<if test="updateBy != null and updateBy != ''">update_by,</if> |
|||
<if test="updateTime != null ">updateTime,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="guid != null ">#{guid},</if> |
|||
<if test="content != null and content != ''">#{content},</if> |
|||
<if test="type != null and type != ''">#{type},</if> |
|||
<if test="creator != null and creator != ''">#{creator},</if> |
|||
<if test="createTime != null ">#{createTime},</if> |
|||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if> |
|||
<if test="updateTime != null ">#{updateTime},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateSceneText" parameterType="SceneText"> |
|||
update scene_text |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="content != null and content != ''">content = #{content},</if> |
|||
<if test="type != null ">`type` = #{type},</if> |
|||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
|||
<if test="updateTime != null ">update_time = #{updateTime},</if> |
|||
</trim> |
|||
where guid = #{guid} |
|||
</update> |
|||
|
|||
<delete id="deleteSceneTextById" parameterType="String"> |
|||
delete |
|||
from scene_text |
|||
where guid = #{guid} |
|||
</delete> |
|||
|
|||
<delete id="deleteSceneTextByIds" parameterType="String"> |
|||
delete from scene_text where guid in |
|||
<foreach item="guid" collection="array" open="(" separator="," close=")"> |
|||
#{guid} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
</mapper> |
|||
@ -0,0 +1,87 @@ |
|||
<?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.zdxt.knowledge.mapper.UserAddressMapper"> |
|||
|
|||
<resultMap type="com.zdxt.knowledge.domain.UserAddress" id="UserAddressResult"> |
|||
<result property="guid" column="guid"/> |
|||
<result property="userId" column="user_id"/> |
|||
<result property="name" column="name"/> |
|||
<result property="address" column="address"/> |
|||
<result property="mobile" column="mobile"/> |
|||
<result property="creator" column="creator"/> |
|||
<result property="createTime" column="create_time"/> |
|||
</resultMap> |
|||
|
|||
<sql id="selectUserAddressVo"> |
|||
select guid, |
|||
user_id, |
|||
name, |
|||
address, |
|||
mobile, |
|||
creator, |
|||
create_time |
|||
from user_address |
|||
</sql> |
|||
|
|||
<select id="selectUserAddressList" parameterType="UserAddress" resultMap="UserAddressResult"> |
|||
<include refid="selectUserAddressVo"/> |
|||
<where> |
|||
<if test="name != null and name != ''">and `name` like concat('%', #{name}, '%')</if> |
|||
<if test="address != null and address != ''">and `address` like concat('%', #{address}, '%')</if> |
|||
<if test="creator != null and creator != ''">and creator = #{creator}</if> |
|||
</where> |
|||
order by create_time desc |
|||
</select> |
|||
|
|||
<select id="selectUserAddressById" parameterType="String" resultMap="UserAddressResult"> |
|||
<include refid="selectUserAddressVo"/> |
|||
where guid = #{guid} |
|||
</select> |
|||
|
|||
<insert id="insertUserAddress" parameterType="UserAddress"> |
|||
insert into user_address |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="guid != null ">guid,</if> |
|||
<if test="userId != null and userId != ''">`user_id`,</if> |
|||
<if test="name != null and name != ''">`name`,</if> |
|||
<if test="address != null and address != ''">`address`,</if> |
|||
<if test="mobile != null and mobile != ''">`mobile`,</if> |
|||
<if test="creator != null and creator != ''">creator,</if> |
|||
<if test="createTime != null ">create_time,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="guid != null ">#{guid},</if> |
|||
<if test="userId != null and userId != ''">#{userId},</if> |
|||
<if test="name != null and name != ''">#{name},</if> |
|||
<if test="address != null and address != ''">#{address},</if> |
|||
<if test="mobile != null and mobile != ''">#{mobile},</if> |
|||
<if test="creator != null and creator != ''">#{creator},</if> |
|||
<if test="createTime != null ">#{createTime},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateUserAddress" parameterType="UserAddress"> |
|||
update user_address |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="address != null and address != ''">address = #{address},</if> |
|||
<if test="name != null and name != ''">`name` = #{name},</if> |
|||
<if test="mobile != null and mobile != ''">mobile = #{mobile},</if> |
|||
</trim> |
|||
where guid = #{guid} |
|||
</update> |
|||
|
|||
<delete id="deleteUserAddressById" parameterType="String"> |
|||
delete |
|||
from user_address |
|||
where guid = #{guid} |
|||
</delete> |
|||
|
|||
<delete id="deleteUserAddressByIds" parameterType="String"> |
|||
delete from user_address where guid in |
|||
<foreach item="guid" collection="array" open="(" separator="," close=")"> |
|||
#{guid} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
</mapper> |
|||
@ -0,0 +1,74 @@ |
|||
<?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.zdxt.knowledge.mapper.UserFeedbackMapper"> |
|||
|
|||
<resultMap type="com.zdxt.knowledge.domain.UserFeedback" id="UserFeedbackResult"> |
|||
<result property="guid" column="guid"/> |
|||
<result property="content" column="content"/> |
|||
<result property="userId" column="user_id"/> |
|||
<result property="nickname" column="nickname"/> |
|||
<result property="city" column="city"/> |
|||
<result property="mobile" column="mobile"/> |
|||
<result property="creator" column="creator"/> |
|||
<result property="createTime" column="create_time"/> |
|||
</resultMap> |
|||
|
|||
<sql id="selectUserFeedbackVo"> |
|||
select guid, |
|||
content, |
|||
user_id, |
|||
nickname, |
|||
city, |
|||
mobile, |
|||
creator, |
|||
create_time |
|||
from user_feedback |
|||
</sql> |
|||
|
|||
<select id="selectUserFeedbackList" parameterType="UserFeedback" resultMap="UserFeedbackResult"> |
|||
<include refid="selectUserFeedbackVo"/> |
|||
<where> |
|||
<if test="content != null and content != ''">and `content` like concat('%', #{content}, '%')</if> |
|||
<if test="nickname != null and nickname != ''">and nickname = #{nickname}</if> |
|||
</where> |
|||
order by create_time desc |
|||
</select> |
|||
|
|||
<select id="selectUserFeedbackById" parameterType="String" resultMap="UserFeedbackResult"> |
|||
<include refid="selectUserFeedbackVo"/> |
|||
where guid = #{guid} |
|||
</select> |
|||
|
|||
<insert id="insertUserFeedback" parameterType="UserFeedback"> |
|||
insert into user_feedback |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="guid != null ">guid,</if> |
|||
<if test="content != null and content != ''">`content`,</if> |
|||
<if test="userId != null and userId != ''">`user_id`,</if> |
|||
<if test="nickname != null and nickname != ''">`nickname`,</if> |
|||
<if test="city != null and city != ''">`city`,</if> |
|||
<if test="mobile != null and mobile != ''">`mobile`,</if> |
|||
<if test="creator != null and creator != ''">creator,</if> |
|||
<if test="createTime != null ">create_time,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="guid != null ">#{guid},</if> |
|||
<if test="content != null and content != ''">#{content},</if> |
|||
<if test="userId != null and userId != ''">#{userId},</if> |
|||
<if test="nickname != null and nickname != ''">#{nickname},</if> |
|||
<if test="city != null and city != ''">#{city},</if> |
|||
<if test="mobile != null and mobile != ''">#{mobile},</if> |
|||
<if test="creator != null and creator != ''">#{creator},</if> |
|||
<if test="createTime != null ">#{createTime},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<delete id="deleteUserFeedbackByIds" parameterType="String"> |
|||
delete from user_feedback where guid in |
|||
<foreach item="guid" collection="array" open="(" separator="," close=")"> |
|||
#{guid} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
</mapper> |
|||
Loading…
Reference in new issue