评估内容
This commit is contained in:
parent
22ff730161
commit
400ebd01dc
ruoyi-ui/src
api/benyi
views/benyi
ruoyi/src/main
java/com/ruoyi/project/benyi
controller
domain
mapper
service
resources/mybatis/benyi
53
ruoyi-ui/src/api/benyi/assessmentcontent.js
Normal file
53
ruoyi-ui/src/api/benyi/assessmentcontent.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询评估内容列表
|
||||
export function listAssessmentcontent(query) {
|
||||
return request({
|
||||
url: '/benyi/assessmentcontent/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询评估内容详细
|
||||
export function getAssessmentcontent(id) {
|
||||
return request({
|
||||
url: '/benyi/assessmentcontent/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增评估内容
|
||||
export function addAssessmentcontent(data) {
|
||||
return request({
|
||||
url: '/benyi/assessmentcontent',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改评估内容
|
||||
export function updateAssessmentcontent(data) {
|
||||
return request({
|
||||
url: '/benyi/assessmentcontent',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除评估内容
|
||||
export function delAssessmentcontent(id) {
|
||||
return request({
|
||||
url: '/benyi/assessmentcontent/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出评估内容
|
||||
export function exportAssessmentcontent(query) {
|
||||
return request({
|
||||
url: '/benyi/assessmentcontent/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
53
ruoyi-ui/src/api/benyi/assessmentintroduce.js
Normal file
53
ruoyi-ui/src/api/benyi/assessmentintroduce.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询评估体系介绍列表
|
||||
export function listAssessmentintroduce(query) {
|
||||
return request({
|
||||
url: '/benyi/assessmentintroduce/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询评估体系介绍详细
|
||||
export function getAssessmentintroduce(id) {
|
||||
return request({
|
||||
url: '/benyi/assessmentintroduce/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增评估体系介绍
|
||||
export function addAssessmentintroduce(data) {
|
||||
return request({
|
||||
url: '/benyi/assessmentintroduce',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改评估体系介绍
|
||||
export function updateAssessmentintroduce(data) {
|
||||
return request({
|
||||
url: '/benyi/assessmentintroduce',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除评估体系介绍
|
||||
export function delAssessmentintroduce(id) {
|
||||
return request({
|
||||
url: '/benyi/assessmentintroduce/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出评估体系介绍
|
||||
export function exportAssessmentintroduce(query) {
|
||||
return request({
|
||||
url: '/benyi/assessmentintroduce/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
348
ruoyi-ui/src/views/benyi/assessmentcontent/index.vue
Normal file
348
ruoyi-ui/src/views/benyi/assessmentcontent/index.vue
Normal file
@ -0,0 +1,348 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
:inline="true"
|
||||
label-width="68px"
|
||||
>
|
||||
<el-form-item label="父id" prop="parentid">
|
||||
<el-input
|
||||
v-model="queryParams.parentid"
|
||||
placeholder="请输入父id"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否元素" prop="iselement">
|
||||
<el-input
|
||||
v-model="queryParams.iselement"
|
||||
placeholder="请输入是否元素"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="元素才有适用范围;应该以幼儿的岁数为准" prop="scope">
|
||||
<el-input
|
||||
v-model="queryParams.scope"
|
||||
placeholder="请输入元素才有适用范围;应该以幼儿的岁数为准"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||
>重置</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['benyi:assessmentcontent:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['benyi:assessmentcontent:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['benyi:assessmentcontent:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['benyi:assessmentcontent:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="assessmentcontentList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="编号" align="center" prop="id" />
|
||||
<el-table-column label="父id" align="center" prop="parentid" />
|
||||
<el-table-column label="名称" align="center" prop="name" />
|
||||
<el-table-column label="是否元素" align="center" prop="iselement" />
|
||||
<el-table-column
|
||||
label="元素才有适用范围;应该以幼儿的岁数为准"
|
||||
align="center"
|
||||
prop="scope"
|
||||
/>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
class-name="small-padding fixed-width"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['benyi:assessmentcontent:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['benyi:assessmentcontent:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改评估内容对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="父id" prop="parentid">
|
||||
<el-input v-model="form.parentid" placeholder="请输入父id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="名称" prop="name">
|
||||
<el-input
|
||||
v-model="form.name"
|
||||
type="textarea"
|
||||
placeholder="请输入内容"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否元素" prop="iselement">
|
||||
<el-input v-model="form.iselement" placeholder="请输入是否元素" />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="元素才有适用范围;应该以幼儿的岁数为准"
|
||||
prop="scope"
|
||||
>
|
||||
<el-input
|
||||
v-model="form.scope"
|
||||
placeholder="请输入元素才有适用范围;应该以幼儿的岁数为准"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listAssessmentcontent,
|
||||
getAssessmentcontent,
|
||||
delAssessmentcontent,
|
||||
addAssessmentcontent,
|
||||
updateAssessmentcontent,
|
||||
exportAssessmentcontent,
|
||||
} from "@/api/benyi/assessmentcontent";
|
||||
|
||||
export default {
|
||||
name: "Assessmentcontent",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 评估内容表格数据
|
||||
assessmentcontentList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
parentid: undefined,
|
||||
name: undefined,
|
||||
iselement: undefined,
|
||||
scope: undefined,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询评估内容列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listAssessmentcontent(this.queryParams).then((response) => {
|
||||
this.assessmentcontentList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: undefined,
|
||||
parentid: undefined,
|
||||
name: undefined,
|
||||
iselement: undefined,
|
||||
scope: undefined,
|
||||
createTime: undefined,
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length != 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加评估内容";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
getAssessmentcontent(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改评估内容";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm: function () {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != undefined) {
|
||||
updateAssessmentcontent(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addAssessmentcontent(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$confirm(
|
||||
'是否确认删除评估内容编号为"' + ids + '"的数据项?',
|
||||
"警告",
|
||||
{
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
}
|
||||
)
|
||||
.then(function () {
|
||||
return delAssessmentcontent(ids);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(function () {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
const queryParams = this.queryParams;
|
||||
this.$confirm("是否确认导出所有评估内容数据项?", "警告", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
})
|
||||
.then(function () {
|
||||
return exportAssessmentcontent(queryParams);
|
||||
})
|
||||
.then((response) => {
|
||||
this.download(response.msg);
|
||||
})
|
||||
.catch(function () {});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
313
ruoyi-ui/src/views/benyi/assessmentintroduce/index.vue
Normal file
313
ruoyi-ui/src/views/benyi/assessmentintroduce/index.vue
Normal file
@ -0,0 +1,313 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
:inline="true"
|
||||
label-width="68px"
|
||||
>
|
||||
<el-form-item label="标题" prop="title">
|
||||
<el-input
|
||||
v-model="queryParams.title"
|
||||
placeholder="请输入标题"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="内容" prop="content">
|
||||
<el-input
|
||||
v-model="queryParams.content"
|
||||
placeholder="请输入内容"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||
>重置</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['benyi:assessmentintroduce:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['benyi:assessmentintroduce:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['benyi:assessmentintroduce:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['benyi:assessmentintroduce:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="assessmentintroduceList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="编号" align="center" prop="id" />
|
||||
<el-table-column label="标题" align="center" prop="title" />
|
||||
<el-table-column label="内容" align="center" prop="content" />
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
class-name="small-padding fixed-width"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['benyi:assessmentintroduce:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['benyi:assessmentintroduce:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改评估体系介绍对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="标题" prop="title">
|
||||
<el-input v-model="form.title" placeholder="请输入标题" />
|
||||
</el-form-item>
|
||||
<el-form-item label="内容" prop="content">
|
||||
<el-input v-model="form.content" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listAssessmentintroduce,
|
||||
getAssessmentintroduce,
|
||||
delAssessmentintroduce,
|
||||
addAssessmentintroduce,
|
||||
updateAssessmentintroduce,
|
||||
exportAssessmentintroduce,
|
||||
} from "@/api/benyi/assessmentintroduce";
|
||||
|
||||
export default {
|
||||
name: "Assessmentintroduce",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 评估体系介绍表格数据
|
||||
assessmentintroduceList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
title: undefined,
|
||||
content: undefined,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询评估体系介绍列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listAssessmentintroduce(this.queryParams).then((response) => {
|
||||
this.assessmentintroduceList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: undefined,
|
||||
title: undefined,
|
||||
content: undefined,
|
||||
createTime: undefined,
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length != 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加评估体系介绍";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
getAssessmentintroduce(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改评估体系介绍";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm: function () {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != undefined) {
|
||||
updateAssessmentintroduce(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addAssessmentintroduce(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$confirm(
|
||||
'是否确认删除评估体系介绍编号为"' + ids + '"的数据项?',
|
||||
"警告",
|
||||
{
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
}
|
||||
)
|
||||
.then(function () {
|
||||
return delAssessmentintroduce(ids);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(function () {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
const queryParams = this.queryParams;
|
||||
this.$confirm("是否确认导出所有评估体系介绍数据项?", "警告", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
})
|
||||
.then(function () {
|
||||
return exportAssessmentintroduce(queryParams);
|
||||
})
|
||||
.then((response) => {
|
||||
this.download(response.msg);
|
||||
})
|
||||
.catch(function () {});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
103
ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByAssessmentcontentController.java
Normal file
103
ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByAssessmentcontentController.java
Normal file
@ -0,0 +1,103 @@
|
||||
package com.ruoyi.project.benyi.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
||||
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentcontent;
|
||||
import com.ruoyi.project.benyi.service.IByAssessmentcontentService;
|
||||
import com.ruoyi.framework.web.controller.BaseController;
|
||||
import com.ruoyi.framework.web.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 评估内容Controller
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/benyi/assessmentcontent")
|
||||
public class ByAssessmentcontentController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IByAssessmentcontentService byAssessmentcontentService;
|
||||
|
||||
/**
|
||||
* 查询评估内容列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentcontent:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ByAssessmentcontent byAssessmentcontent)
|
||||
{
|
||||
startPage();
|
||||
List<ByAssessmentcontent> list = byAssessmentcontentService.selectByAssessmentcontentList(byAssessmentcontent);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出评估内容列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentcontent:export')")
|
||||
@Log(title = "评估内容", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ByAssessmentcontent byAssessmentcontent)
|
||||
{
|
||||
List<ByAssessmentcontent> list = byAssessmentcontentService.selectByAssessmentcontentList(byAssessmentcontent);
|
||||
ExcelUtil<ByAssessmentcontent> util = new ExcelUtil<ByAssessmentcontent>(ByAssessmentcontent.class);
|
||||
return util.exportExcel(list, "assessmentcontent");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取评估内容详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentcontent:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(byAssessmentcontentService.selectByAssessmentcontentById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增评估内容
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentcontent:add')")
|
||||
@Log(title = "评估内容", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ByAssessmentcontent byAssessmentcontent)
|
||||
{
|
||||
return toAjax(byAssessmentcontentService.insertByAssessmentcontent(byAssessmentcontent));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改评估内容
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentcontent:edit')")
|
||||
@Log(title = "评估内容", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ByAssessmentcontent byAssessmentcontent)
|
||||
{
|
||||
return toAjax(byAssessmentcontentService.updateByAssessmentcontent(byAssessmentcontent));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除评估内容
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentcontent:remove')")
|
||||
@Log(title = "评估内容", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(byAssessmentcontentService.deleteByAssessmentcontentByIds(ids));
|
||||
}
|
||||
}
|
97
ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByAssessmentintroduceController.java
Normal file
97
ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByAssessmentintroduceController.java
Normal file
@ -0,0 +1,97 @@
|
||||
package com.ruoyi.project.benyi.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
||||
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentintroduce;
|
||||
import com.ruoyi.project.benyi.service.IByAssessmentintroduceService;
|
||||
import com.ruoyi.framework.web.controller.BaseController;
|
||||
import com.ruoyi.framework.web.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 评估体系介绍Controller
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/benyi/assessmentintroduce")
|
||||
public class ByAssessmentintroduceController extends BaseController {
|
||||
@Autowired
|
||||
private IByAssessmentintroduceService byAssessmentintroduceService;
|
||||
|
||||
/**
|
||||
* 查询评估体系介绍列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentintroduce:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ByAssessmentintroduce byAssessmentintroduce) {
|
||||
startPage();
|
||||
List<ByAssessmentintroduce> list = byAssessmentintroduceService.selectByAssessmentintroduceList(byAssessmentintroduce);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出评估体系介绍列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentintroduce:export')")
|
||||
@Log(title = "评估体系介绍", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ByAssessmentintroduce byAssessmentintroduce) {
|
||||
List<ByAssessmentintroduce> list = byAssessmentintroduceService.selectByAssessmentintroduceList(byAssessmentintroduce);
|
||||
ExcelUtil<ByAssessmentintroduce> util = new ExcelUtil<ByAssessmentintroduce>(ByAssessmentintroduce.class);
|
||||
return util.exportExcel(list, "assessmentintroduce");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取评估体系介绍详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentintroduce:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(byAssessmentintroduceService.selectByAssessmentintroduceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增评估体系介绍
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentintroduce:add')")
|
||||
@Log(title = "评估体系介绍", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ByAssessmentintroduce byAssessmentintroduce) {
|
||||
return toAjax(byAssessmentintroduceService.insertByAssessmentintroduce(byAssessmentintroduce));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改评估体系介绍
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentintroduce:edit')")
|
||||
@Log(title = "评估体系介绍", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ByAssessmentintroduce byAssessmentintroduce) {
|
||||
return toAjax(byAssessmentintroduceService.updateByAssessmentintroduce(byAssessmentintroduce));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除评估体系介绍
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentintroduce:remove')")
|
||||
@Log(title = "评估体系介绍", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(byAssessmentintroduceService.deleteByAssessmentintroduceByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package com.ruoyi.project.benyi.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
||||
import com.ruoyi.framework.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 评估内容对象 by_assessmentcontent
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-09
|
||||
*/
|
||||
public class ByAssessmentcontent extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 父id
|
||||
*/
|
||||
@Excel(name = "父id")
|
||||
private Long parentid;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 是否元素
|
||||
*/
|
||||
@Excel(name = "是否元素")
|
||||
private String iselement;
|
||||
|
||||
/**
|
||||
* 元素才有适用范围;应该以幼儿的岁数为准
|
||||
*/
|
||||
@Excel(name = "元素才有适用范围;应该以幼儿的岁数为准")
|
||||
private String scope;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setParentid(Long parentid) {
|
||||
this.parentid = parentid;
|
||||
}
|
||||
|
||||
public Long getParentid() {
|
||||
return parentid;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setIselement(String iselement) {
|
||||
this.iselement = iselement;
|
||||
}
|
||||
|
||||
public String getIselement() {
|
||||
return iselement;
|
||||
}
|
||||
|
||||
public void setScope(String scope) {
|
||||
this.scope = scope;
|
||||
}
|
||||
|
||||
public String getScope() {
|
||||
return scope;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("parentid", getParentid())
|
||||
.append("name", getName())
|
||||
.append("iselement", getIselement())
|
||||
.append("scope", getScope())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.ruoyi.project.benyi.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
||||
import com.ruoyi.framework.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 评估体系介绍对象 by_assessmentintroduce
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-09
|
||||
*/
|
||||
public class ByAssessmentintroduce extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
@Excel(name = "内容")
|
||||
private String content;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("content", getContent())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentcontent;
|
||||
|
||||
/**
|
||||
* 评估内容Mapper接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-09
|
||||
*/
|
||||
public interface ByAssessmentcontentMapper {
|
||||
/**
|
||||
* 查询评估内容
|
||||
*
|
||||
* @param id 评估内容ID
|
||||
* @return 评估内容
|
||||
*/
|
||||
public ByAssessmentcontent selectByAssessmentcontentById(Long id);
|
||||
|
||||
/**
|
||||
* 查询评估内容列表
|
||||
*
|
||||
* @param byAssessmentcontent 评估内容
|
||||
* @return 评估内容集合
|
||||
*/
|
||||
public List<ByAssessmentcontent> selectByAssessmentcontentList(ByAssessmentcontent byAssessmentcontent);
|
||||
|
||||
/**
|
||||
* 新增评估内容
|
||||
*
|
||||
* @param byAssessmentcontent 评估内容
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByAssessmentcontent(ByAssessmentcontent byAssessmentcontent);
|
||||
|
||||
/**
|
||||
* 修改评估内容
|
||||
*
|
||||
* @param byAssessmentcontent 评估内容
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByAssessmentcontent(ByAssessmentcontent byAssessmentcontent);
|
||||
|
||||
/**
|
||||
* 删除评估内容
|
||||
*
|
||||
* @param id 评估内容ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentcontentById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除评估内容
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentcontentByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentintroduce;
|
||||
|
||||
/**
|
||||
* 评估体系介绍Mapper接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-09
|
||||
*/
|
||||
public interface ByAssessmentintroduceMapper {
|
||||
/**
|
||||
* 查询评估体系介绍
|
||||
*
|
||||
* @param id 评估体系介绍ID
|
||||
* @return 评估体系介绍
|
||||
*/
|
||||
public ByAssessmentintroduce selectByAssessmentintroduceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询评估体系介绍列表
|
||||
*
|
||||
* @param byAssessmentintroduce 评估体系介绍
|
||||
* @return 评估体系介绍集合
|
||||
*/
|
||||
public List<ByAssessmentintroduce> selectByAssessmentintroduceList(ByAssessmentintroduce byAssessmentintroduce);
|
||||
|
||||
/**
|
||||
* 新增评估体系介绍
|
||||
*
|
||||
* @param byAssessmentintroduce 评估体系介绍
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByAssessmentintroduce(ByAssessmentintroduce byAssessmentintroduce);
|
||||
|
||||
/**
|
||||
* 修改评估体系介绍
|
||||
*
|
||||
* @param byAssessmentintroduce 评估体系介绍
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByAssessmentintroduce(ByAssessmentintroduce byAssessmentintroduce);
|
||||
|
||||
/**
|
||||
* 删除评估体系介绍
|
||||
*
|
||||
* @param id 评估体系介绍ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentintroduceById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除评估体系介绍
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentintroduceByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentcontent;
|
||||
|
||||
/**
|
||||
* 评估内容Service接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-09
|
||||
*/
|
||||
public interface IByAssessmentcontentService {
|
||||
/**
|
||||
* 查询评估内容
|
||||
*
|
||||
* @param id 评估内容ID
|
||||
* @return 评估内容
|
||||
*/
|
||||
public ByAssessmentcontent selectByAssessmentcontentById(Long id);
|
||||
|
||||
/**
|
||||
* 查询评估内容列表
|
||||
*
|
||||
* @param byAssessmentcontent 评估内容
|
||||
* @return 评估内容集合
|
||||
*/
|
||||
public List<ByAssessmentcontent> selectByAssessmentcontentList(ByAssessmentcontent byAssessmentcontent);
|
||||
|
||||
/**
|
||||
* 新增评估内容
|
||||
*
|
||||
* @param byAssessmentcontent 评估内容
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByAssessmentcontent(ByAssessmentcontent byAssessmentcontent);
|
||||
|
||||
/**
|
||||
* 修改评估内容
|
||||
*
|
||||
* @param byAssessmentcontent 评估内容
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByAssessmentcontent(ByAssessmentcontent byAssessmentcontent);
|
||||
|
||||
/**
|
||||
* 批量删除评估内容
|
||||
*
|
||||
* @param ids 需要删除的评估内容ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentcontentByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除评估内容信息
|
||||
*
|
||||
* @param id 评估内容ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentcontentById(Long id);
|
||||
}
|
61
ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByAssessmentintroduceService.java
Normal file
61
ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByAssessmentintroduceService.java
Normal file
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentintroduce;
|
||||
|
||||
/**
|
||||
* 评估体系介绍Service接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-09
|
||||
*/
|
||||
public interface IByAssessmentintroduceService {
|
||||
/**
|
||||
* 查询评估体系介绍
|
||||
*
|
||||
* @param id 评估体系介绍ID
|
||||
* @return 评估体系介绍
|
||||
*/
|
||||
public ByAssessmentintroduce selectByAssessmentintroduceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询评估体系介绍列表
|
||||
*
|
||||
* @param byAssessmentintroduce 评估体系介绍
|
||||
* @return 评估体系介绍集合
|
||||
*/
|
||||
public List<ByAssessmentintroduce> selectByAssessmentintroduceList(ByAssessmentintroduce byAssessmentintroduce);
|
||||
|
||||
/**
|
||||
* 新增评估体系介绍
|
||||
*
|
||||
* @param byAssessmentintroduce 评估体系介绍
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByAssessmentintroduce(ByAssessmentintroduce byAssessmentintroduce);
|
||||
|
||||
/**
|
||||
* 修改评估体系介绍
|
||||
*
|
||||
* @param byAssessmentintroduce 评估体系介绍
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByAssessmentintroduce(ByAssessmentintroduce byAssessmentintroduce);
|
||||
|
||||
/**
|
||||
* 批量删除评估体系介绍
|
||||
*
|
||||
* @param ids 需要删除的评估体系介绍ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentintroduceByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除评估体系介绍信息
|
||||
*
|
||||
* @param id 评估体系介绍ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentintroduceById(Long id);
|
||||
}
|
89
ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByAssessmentcontentServiceImpl.java
Normal file
89
ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByAssessmentcontentServiceImpl.java
Normal file
@ -0,0 +1,89 @@
|
||||
package com.ruoyi.project.benyi.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.project.benyi.mapper.ByAssessmentcontentMapper;
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentcontent;
|
||||
import com.ruoyi.project.benyi.service.IByAssessmentcontentService;
|
||||
|
||||
/**
|
||||
* 评估内容Service业务层处理
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-09
|
||||
*/
|
||||
@Service
|
||||
public class ByAssessmentcontentServiceImpl implements IByAssessmentcontentService {
|
||||
@Autowired
|
||||
private ByAssessmentcontentMapper byAssessmentcontentMapper;
|
||||
|
||||
/**
|
||||
* 查询评估内容
|
||||
*
|
||||
* @param id 评估内容ID
|
||||
* @return 评估内容
|
||||
*/
|
||||
@Override
|
||||
public ByAssessmentcontent selectByAssessmentcontentById(Long id) {
|
||||
return byAssessmentcontentMapper.selectByAssessmentcontentById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询评估内容列表
|
||||
*
|
||||
* @param byAssessmentcontent 评估内容
|
||||
* @return 评估内容
|
||||
*/
|
||||
@Override
|
||||
public List<ByAssessmentcontent> selectByAssessmentcontentList(ByAssessmentcontent byAssessmentcontent) {
|
||||
return byAssessmentcontentMapper.selectByAssessmentcontentList(byAssessmentcontent);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增评估内容
|
||||
*
|
||||
* @param byAssessmentcontent 评估内容
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertByAssessmentcontent(ByAssessmentcontent byAssessmentcontent) {
|
||||
byAssessmentcontent.setCreateTime(DateUtils.getNowDate());
|
||||
return byAssessmentcontentMapper.insertByAssessmentcontent(byAssessmentcontent);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改评估内容
|
||||
*
|
||||
* @param byAssessmentcontent 评估内容
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateByAssessmentcontent(ByAssessmentcontent byAssessmentcontent) {
|
||||
return byAssessmentcontentMapper.updateByAssessmentcontent(byAssessmentcontent);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除评估内容
|
||||
*
|
||||
* @param ids 需要删除的评估内容ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByAssessmentcontentByIds(Long[] ids) {
|
||||
return byAssessmentcontentMapper.deleteByAssessmentcontentByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除评估内容信息
|
||||
*
|
||||
* @param id 评估内容ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByAssessmentcontentById(Long id) {
|
||||
return byAssessmentcontentMapper.deleteByAssessmentcontentById(id);
|
||||
}
|
||||
}
|
89
ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByAssessmentintroduceServiceImpl.java
Normal file
89
ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByAssessmentintroduceServiceImpl.java
Normal file
@ -0,0 +1,89 @@
|
||||
package com.ruoyi.project.benyi.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.project.benyi.mapper.ByAssessmentintroduceMapper;
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentintroduce;
|
||||
import com.ruoyi.project.benyi.service.IByAssessmentintroduceService;
|
||||
|
||||
/**
|
||||
* 评估体系介绍Service业务层处理
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-09
|
||||
*/
|
||||
@Service
|
||||
public class ByAssessmentintroduceServiceImpl implements IByAssessmentintroduceService {
|
||||
@Autowired
|
||||
private ByAssessmentintroduceMapper byAssessmentintroduceMapper;
|
||||
|
||||
/**
|
||||
* 查询评估体系介绍
|
||||
*
|
||||
* @param id 评估体系介绍ID
|
||||
* @return 评估体系介绍
|
||||
*/
|
||||
@Override
|
||||
public ByAssessmentintroduce selectByAssessmentintroduceById(Long id) {
|
||||
return byAssessmentintroduceMapper.selectByAssessmentintroduceById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询评估体系介绍列表
|
||||
*
|
||||
* @param byAssessmentintroduce 评估体系介绍
|
||||
* @return 评估体系介绍
|
||||
*/
|
||||
@Override
|
||||
public List<ByAssessmentintroduce> selectByAssessmentintroduceList(ByAssessmentintroduce byAssessmentintroduce) {
|
||||
return byAssessmentintroduceMapper.selectByAssessmentintroduceList(byAssessmentintroduce);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增评估体系介绍
|
||||
*
|
||||
* @param byAssessmentintroduce 评估体系介绍
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertByAssessmentintroduce(ByAssessmentintroduce byAssessmentintroduce) {
|
||||
byAssessmentintroduce.setCreateTime(DateUtils.getNowDate());
|
||||
return byAssessmentintroduceMapper.insertByAssessmentintroduce(byAssessmentintroduce);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改评估体系介绍
|
||||
*
|
||||
* @param byAssessmentintroduce 评估体系介绍
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateByAssessmentintroduce(ByAssessmentintroduce byAssessmentintroduce) {
|
||||
return byAssessmentintroduceMapper.updateByAssessmentintroduce(byAssessmentintroduce);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除评估体系介绍
|
||||
*
|
||||
* @param ids 需要删除的评估体系介绍ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByAssessmentintroduceByIds(Long[] ids) {
|
||||
return byAssessmentintroduceMapper.deleteByAssessmentintroduceByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除评估体系介绍信息
|
||||
*
|
||||
* @param id 评估体系介绍ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByAssessmentintroduceById(Long id) {
|
||||
return byAssessmentintroduceMapper.deleteByAssessmentintroduceById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
<?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.ruoyi.project.benyi.mapper.ByAssessmentcontentMapper">
|
||||
|
||||
<resultMap type="ByAssessmentcontent" id="ByAssessmentcontentResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="parentid" column="parentId"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="iselement" column="iselement"/>
|
||||
<result property="scope" column="scope"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByAssessmentcontentVo">
|
||||
select id, parentId, name, iselement, scope, create_time from by_assessmentcontent
|
||||
</sql>
|
||||
|
||||
<select id="selectByAssessmentcontentList" parameterType="ByAssessmentcontent"
|
||||
resultMap="ByAssessmentcontentResult">
|
||||
<include refid="selectByAssessmentcontentVo"/>
|
||||
<where>
|
||||
<if test="parentid != null ">and parentId = #{parentid}</if>
|
||||
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
||||
<if test="iselement != null and iselement != ''">and iselement = #{iselement}</if>
|
||||
<if test="scope != null and scope != ''">and scope = #{scope}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByAssessmentcontentById" parameterType="Long" resultMap="ByAssessmentcontentResult">
|
||||
<include refid="selectByAssessmentcontentVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByAssessmentcontent" parameterType="ByAssessmentcontent" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into by_assessmentcontent
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="parentid != null ">parentId,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="iselement != null and iselement != ''">iselement,</if>
|
||||
<if test="scope != null and scope != ''">scope,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="parentid != null ">#{parentid},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="iselement != null and iselement != ''">#{iselement},</if>
|
||||
<if test="scope != null and scope != ''">#{scope},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByAssessmentcontent" parameterType="ByAssessmentcontent">
|
||||
update by_assessmentcontent
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="parentid != null ">parentId = #{parentid},</if>
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="iselement != null and iselement != ''">iselement = #{iselement},</if>
|
||||
<if test="scope != null and scope != ''">scope = #{scope},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByAssessmentcontentById" parameterType="Long">
|
||||
delete from by_assessmentcontent where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByAssessmentcontentByIds" parameterType="String">
|
||||
delete from by_assessmentcontent where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,68 @@
|
||||
<?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.ruoyi.project.benyi.mapper.ByAssessmentintroduceMapper">
|
||||
|
||||
<resultMap type="ByAssessmentintroduce" id="ByAssessmentintroduceResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="title" column="title"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByAssessmentintroduceVo">
|
||||
select id, title, content, create_time from by_assessmentintroduce
|
||||
</sql>
|
||||
|
||||
<select id="selectByAssessmentintroduceList" parameterType="ByAssessmentintroduce"
|
||||
resultMap="ByAssessmentintroduceResult">
|
||||
<include refid="selectByAssessmentintroduceVo"/>
|
||||
<where>
|
||||
<if test="title != null and title != ''">and title = #{title}</if>
|
||||
<if test="content != null and content != ''">and content = #{content}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByAssessmentintroduceById" parameterType="Long" resultMap="ByAssessmentintroduceResult">
|
||||
<include refid="selectByAssessmentintroduceVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByAssessmentintroduce" parameterType="ByAssessmentintroduce" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into by_assessmentintroduce
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="title != null and title != ''">title,</if>
|
||||
<if test="content != null and content != ''">content,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="title != null and title != ''">#{title},</if>
|
||||
<if test="content != null and content != ''">#{content},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByAssessmentintroduce" parameterType="ByAssessmentintroduce">
|
||||
update by_assessmentintroduce
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="title != null and title != ''">title = #{title},</if>
|
||||
<if test="content != null and content != ''">content = #{content},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByAssessmentintroduceById" parameterType="Long">
|
||||
delete from by_assessmentintroduce where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByAssessmentintroduceByIds" parameterType="String">
|
||||
delete from by_assessmentintroduce where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Loading…
x
Reference in New Issue
Block a user