20200726-入园申请
This commit is contained in:
parent
0e4dc26da8
commit
5cafc37152
53
ruoyi-ui/src/api/benyi/experience.js
Normal file
53
ruoyi-ui/src/api/benyi/experience.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询入班体验申请列表
|
||||
export function listExperience(query) {
|
||||
return request({
|
||||
url: '/benyi/experience/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询入班体验申请详细
|
||||
export function getExperience(id) {
|
||||
return request({
|
||||
url: '/benyi/experience/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增入班体验申请
|
||||
export function addExperience(data) {
|
||||
return request({
|
||||
url: '/benyi/experience',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改入班体验申请
|
||||
export function updateExperience(data) {
|
||||
return request({
|
||||
url: '/benyi/experience',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除入班体验申请
|
||||
export function delExperience(id) {
|
||||
return request({
|
||||
url: '/benyi/experience/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出入班体验申请
|
||||
export function exportExperience(query) {
|
||||
return request({
|
||||
url: '/benyi/experience/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
@ -32,25 +32,43 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: '/redirect/:path(.*)',
|
||||
component: () =>
|
||||
import ('@/views/redirect')
|
||||
import('@/views/redirect')
|
||||
}]
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
component: () =>
|
||||
import ('@/views/login'),
|
||||
import('@/views/login'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '/404',
|
||||
component: () =>
|
||||
import ('@/views/error/404'),
|
||||
import('@/views/error/404'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '/401',
|
||||
component: () =>
|
||||
import ('@/views/error/401'),
|
||||
import('@/views/error/401'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '/experience/choose/:id(\\d+)',
|
||||
component: () =>
|
||||
import('@/views/benyi/experience/choose'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '/experience/apply/:id(\\d+)',
|
||||
component: () =>
|
||||
import('@/views/benyi/experience/apply'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '/experience/result/:id(\\d+)',
|
||||
component: () =>
|
||||
import('@/views/benyi/experience/result'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
@ -60,9 +78,14 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: 'index',
|
||||
component: () =>
|
||||
import ('@/views/index'),
|
||||
import('@/views/index'),
|
||||
name: '首页',
|
||||
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
|
||||
meta: {
|
||||
title: '首页',
|
||||
icon: 'dashboard',
|
||||
noCache: true,
|
||||
affix: true
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -73,9 +96,12 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: 'profile',
|
||||
component: () =>
|
||||
import ('@/views/system/user/profile/index'),
|
||||
import('@/views/system/user/profile/index'),
|
||||
name: 'Profile',
|
||||
meta: { title: '个人中心', icon: 'user' }
|
||||
meta: {
|
||||
title: '个人中心',
|
||||
icon: 'user'
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -86,9 +112,12 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: 'dept',
|
||||
component: () =>
|
||||
import ('@/views/system/user/change/dept/index'),
|
||||
import('@/views/system/user/change/dept/index'),
|
||||
name: 'Changedept',
|
||||
meta: { title: '切换岗位', icon: 'user' }
|
||||
meta: {
|
||||
title: '切换岗位',
|
||||
icon: 'user'
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -98,9 +127,12 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: 'type/data/:dictId(\\d+)',
|
||||
component: () =>
|
||||
import ('@/views/system/dict/data'),
|
||||
import('@/views/system/dict/data'),
|
||||
name: 'Data',
|
||||
meta: { title: '字典数据', icon: '' }
|
||||
meta: {
|
||||
title: '字典数据',
|
||||
icon: ''
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -110,9 +142,12 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: 'dayflowmanger/dayflowtask/:id(\\d+)',
|
||||
component: () =>
|
||||
import ('@/views/benyi/dayflow/task'),
|
||||
import('@/views/benyi/dayflow/task'),
|
||||
name: 'Task',
|
||||
meta: { title: '一日流程任务', icon: '' }
|
||||
meta: {
|
||||
title: '一日流程任务',
|
||||
icon: ''
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -122,9 +157,12 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: 'dayflowtask/standard/:code(\\d+)',
|
||||
component: () =>
|
||||
import ('@/views/benyi/dayflow/standard'),
|
||||
import('@/views/benyi/dayflow/standard'),
|
||||
name: 'Standard',
|
||||
meta: { title: '一日流程标准', icon: '' }
|
||||
meta: {
|
||||
title: '一日流程标准',
|
||||
icon: ''
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -134,9 +172,12 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: 'standard/unscramble/:id(\\d+)',
|
||||
component: () =>
|
||||
import ('@/views/benyi/dayflow/unscramble'),
|
||||
import('@/views/benyi/dayflow/unscramble'),
|
||||
name: 'unscramble',
|
||||
meta: { title: '一日流程标准解读', icon: '' }
|
||||
meta: {
|
||||
title: '一日流程标准解读',
|
||||
icon: ''
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -146,9 +187,12 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: 'study/detail/:id(\\d+)',
|
||||
component: () =>
|
||||
import ('@/views/benyi_train/video_study/detail'),
|
||||
import('@/views/benyi_train/video_study/detail'),
|
||||
name: 'Detail',
|
||||
meta: { title: '培训视频详情', icon: '' }
|
||||
meta: {
|
||||
title: '培训视频详情',
|
||||
icon: ''
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -158,9 +202,12 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: 'activity/:id(\\d+)',
|
||||
component: () =>
|
||||
import ('@/views/benyi/theme/activity'),
|
||||
import('@/views/benyi/theme/activity'),
|
||||
name: 'Theme1',
|
||||
meta: { title: '主题整合内容', icon: '' }
|
||||
meta: {
|
||||
title: '主题整合内容',
|
||||
icon: ''
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -170,9 +217,12 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: 'plan/:id(\\d+)',
|
||||
component: () =>
|
||||
import ('@/views/benyi/math/plan'),
|
||||
import('@/views/benyi/math/plan'),
|
||||
name: 'Math1',
|
||||
meta: { title: '游戏数学方案', icon: '' }
|
||||
meta: {
|
||||
title: '游戏数学方案',
|
||||
icon: ''
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -182,9 +232,11 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: 'log',
|
||||
component: () =>
|
||||
import ('@/views/monitor/job/log'),
|
||||
import('@/views/monitor/job/log'),
|
||||
name: 'JobLog',
|
||||
meta: { title: '调度日志' }
|
||||
meta: {
|
||||
title: '调度日志'
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -194,15 +246,19 @@ export const constantRoutes = [{
|
||||
children: [{
|
||||
path: 'edit',
|
||||
component: () =>
|
||||
import ('@/views/tool/gen/editTable'),
|
||||
import('@/views/tool/gen/editTable'),
|
||||
name: 'GenEdit',
|
||||
meta: { title: '修改生成配置' }
|
||||
meta: {
|
||||
title: '修改生成配置'
|
||||
}
|
||||
}]
|
||||
}
|
||||
]
|
||||
|
||||
export default new Router({
|
||||
mode: 'history', // 去掉url中的#
|
||||
scrollBehavior: () => ({ y: 0 }),
|
||||
scrollBehavior: () => ({
|
||||
y: 0
|
||||
}),
|
||||
routes: constantRoutes
|
||||
})
|
165
ruoyi-ui/src/views/benyi/experience/apply.vue
Normal file
165
ruoyi-ui/src/views/benyi/experience/apply.vue
Normal file
@ -0,0 +1,165 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="家长姓名" prop="jzxm">
|
||||
<el-input v-model="form.jzxm" placeholder="请输入家长姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="幼儿姓名" prop="yexm">
|
||||
<el-input v-model="form.yexm" placeholder="请输入幼儿姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="幼儿出生日期" prop="csrq">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.csrq"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择幼儿出生日期"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="联系方式" prop="lxfs">
|
||||
<el-input v-model="form.lxfs" placeholder="请输入联系方式" />
|
||||
</el-form-item>
|
||||
<el-form-item label="拟入园时间" prop="nrysj">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.nrysj"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择拟入园时间"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="申请体验时间" prop="sqtysj">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.sqtysj"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择申请体验时间"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="上午或下午" prop="swxw">
|
||||
<el-input v-model="form.swxw" placeholder="请输入上午或下午" />
|
||||
</el-form-item>
|
||||
<el-form-item label="体验学校" prop="schoolid">
|
||||
<el-input v-model="form.schoolid" placeholder="请输入体验学校" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否回复" prop="sfhf">
|
||||
<el-input v-model="form.sfhf" placeholder="请输入是否回复" />
|
||||
</el-form-item>
|
||||
<el-form-item label="回复内容" prop="hfrn">
|
||||
<el-input v-model="form.hfrn" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="回复人" prop="hfuserid">
|
||||
<el-input v-model="form.hfuserid" placeholder="请输入回复人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="回复时间" prop="fhsj">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.fhsj"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择回复时间"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="园长指示" prop="yzzs">
|
||||
<el-input v-model="form.yzzs" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="体验结果
|
||||
0不入园
|
||||
1入园" prop="tyjg">
|
||||
<el-input v-model="form.tyjg" placeholder="请输入体验结果
|
||||
0不入园
|
||||
1入园" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入园时间" prop="rysj">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.rysj"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择入园时间"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { addExperience } from "@/api/benyi/experience";
|
||||
|
||||
export default {
|
||||
name: "Experience",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {},
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
methods: {
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: undefined,
|
||||
jzxm: undefined,
|
||||
yexm: undefined,
|
||||
csrq: undefined,
|
||||
lxfs: undefined,
|
||||
nrysj: undefined,
|
||||
sqtysj: undefined,
|
||||
swxw: undefined,
|
||||
schoolid: undefined,
|
||||
sfhf: undefined,
|
||||
hfrn: undefined,
|
||||
hfuserid: undefined,
|
||||
fhsj: undefined,
|
||||
yzzs: undefined,
|
||||
tyjg: undefined,
|
||||
rysj: undefined,
|
||||
createTime: undefined,
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
|
||||
/** 提交按钮 */
|
||||
submitForm: function () {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != undefined) {
|
||||
updateExperience(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addExperience(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
20
ruoyi-ui/src/views/benyi/experience/choose.vue
Normal file
20
ruoyi-ui/src/views/benyi/experience/choose.vue
Normal file
@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-link type="primary" :href="'/experience/apply/{{schoolId}}'">入班半日体验申请</el-link>
|
||||
<el-link type="success" :href="'/experience/result/{{schoolId}}'">申请结果查询</el-link>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "Choose",
|
||||
data() {
|
||||
return {
|
||||
schoolId: "",
|
||||
};
|
||||
},
|
||||
created() {
|
||||
const sid = this.$route.params && this.$route.params.id;
|
||||
this.schoolId = sid;
|
||||
},
|
||||
};
|
||||
</script>
|
414
ruoyi-ui/src/views/benyi/experience/index.vue
Normal file
414
ruoyi-ui/src/views/benyi/experience/index.vue
Normal file
@ -0,0 +1,414 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
|
||||
<el-form-item label="家长姓名" prop="jzxm">
|
||||
<el-input
|
||||
v-model="queryParams.jzxm"
|
||||
placeholder="请输入家长姓名"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="幼儿姓名" prop="yexm">
|
||||
<el-input
|
||||
v-model="queryParams.yexm"
|
||||
placeholder="请输入幼儿姓名"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="联系方式" prop="lxfs">
|
||||
<el-input
|
||||
v-model="queryParams.lxfs"
|
||||
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:experience: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:experience: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:experience:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="experienceList" @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="jzxm" />
|
||||
<el-table-column label="幼儿姓名" align="center" prop="yexm" />
|
||||
<el-table-column label="幼儿出生日期" align="center" prop="csrq" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.csrq, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="联系方式" align="center" prop="lxfs" />
|
||||
<el-table-column label="拟入园时间" align="center" prop="nrysj" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.nrysj, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="申请体验时间" align="center" prop="sqtysj" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.sqtysj, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="上午或下午" align="center" prop="swxw" />
|
||||
<el-table-column label="体验学校" align="center" prop="schoolid" />
|
||||
<el-table-column label="是否回复" align="center" prop="sfhf" />
|
||||
<el-table-column label="回复内容" align="center" prop="hfrn" />
|
||||
<el-table-column label="回复人" align="center" prop="hfuserid" />
|
||||
<el-table-column label="回复时间" align="center" prop="fhsj" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.fhsj, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="园长指示" align="center" prop="yzzs" />
|
||||
<el-table-column label="体验结果
|
||||
0不入园
|
||||
1入园" align="center" prop="tyjg" />
|
||||
<el-table-column label="入园时间" align="center" prop="rysj" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.rysj, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<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:experience:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['benyi:experience: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="jzxm">
|
||||
<el-input v-model="form.jzxm" placeholder="请输入家长姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="幼儿姓名" prop="yexm">
|
||||
<el-input v-model="form.yexm" placeholder="请输入幼儿姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="幼儿出生日期" prop="csrq">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.csrq"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择幼儿出生日期"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="联系方式" prop="lxfs">
|
||||
<el-input v-model="form.lxfs" placeholder="请输入联系方式" />
|
||||
</el-form-item>
|
||||
<el-form-item label="拟入园时间" prop="nrysj">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.nrysj"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择拟入园时间"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="申请体验时间" prop="sqtysj">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.sqtysj"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择申请体验时间"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="上午或下午" prop="swxw">
|
||||
<el-input v-model="form.swxw" placeholder="请输入上午或下午" />
|
||||
</el-form-item>
|
||||
<el-form-item label="体验学校" prop="schoolid">
|
||||
<el-input v-model="form.schoolid" placeholder="请输入体验学校" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否回复" prop="sfhf">
|
||||
<el-input v-model="form.sfhf" placeholder="请输入是否回复" />
|
||||
</el-form-item>
|
||||
<el-form-item label="回复内容" prop="hfrn">
|
||||
<el-input v-model="form.hfrn" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="回复人" prop="hfuserid">
|
||||
<el-input v-model="form.hfuserid" placeholder="请输入回复人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="回复时间" prop="fhsj">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.fhsj"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择回复时间"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="园长指示" prop="yzzs">
|
||||
<el-input v-model="form.yzzs" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="体验结果
|
||||
0不入园
|
||||
1入园" prop="tyjg">
|
||||
<el-input v-model="form.tyjg" placeholder="请输入体验结果
|
||||
0不入园
|
||||
1入园" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入园时间" prop="rysj">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.rysj"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择入园时间"
|
||||
></el-date-picker>
|
||||
</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 {
|
||||
listExperience,
|
||||
getExperience,
|
||||
delExperience,
|
||||
addExperience,
|
||||
updateExperience,
|
||||
exportExperience,
|
||||
} from "@/api/benyi/experience";
|
||||
|
||||
export default {
|
||||
name: "Experience",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 入班体验申请表格数据
|
||||
experienceList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
jzxm: undefined,
|
||||
yexm: undefined,
|
||||
csrq: undefined,
|
||||
lxfs: undefined,
|
||||
nrysj: undefined,
|
||||
sqtysj: undefined,
|
||||
swxw: undefined,
|
||||
schoolid: undefined,
|
||||
sfhf: undefined,
|
||||
hfrn: undefined,
|
||||
hfuserid: undefined,
|
||||
fhsj: undefined,
|
||||
yzzs: undefined,
|
||||
tyjg: undefined,
|
||||
rysj: undefined,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询入班体验申请列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listExperience(this.queryParams).then((response) => {
|
||||
this.experienceList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: undefined,
|
||||
jzxm: undefined,
|
||||
yexm: undefined,
|
||||
csrq: undefined,
|
||||
lxfs: undefined,
|
||||
nrysj: undefined,
|
||||
sqtysj: undefined,
|
||||
swxw: undefined,
|
||||
schoolid: undefined,
|
||||
sfhf: undefined,
|
||||
hfrn: undefined,
|
||||
hfuserid: undefined,
|
||||
fhsj: undefined,
|
||||
yzzs: undefined,
|
||||
tyjg: undefined,
|
||||
rysj: 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;
|
||||
getExperience(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) {
|
||||
updateExperience(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addExperience(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 delExperience(ids);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(function () {});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
0
ruoyi-ui/src/views/benyi/experience/result.vue
Normal file
0
ruoyi-ui/src/views/benyi/experience/result.vue
Normal file
@ -73,13 +73,9 @@
|
||||
<script>
|
||||
import { treeselect, getMath } from "@/api/benyi/math";
|
||||
import { listPlan } from "@/api/benyi/plan";
|
||||
import Editor from "@/components/Editor";
|
||||
|
||||
export default {
|
||||
name: "Detail",
|
||||
components: {
|
||||
Editor
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 游戏数学名称
|
||||
|
@ -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.ByExperience;
|
||||
import com.ruoyi.project.benyi.service.IByExperienceService;
|
||||
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-07-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/benyi/experience")
|
||||
public class ByExperienceController extends BaseController {
|
||||
@Autowired
|
||||
private IByExperienceService byExperienceService;
|
||||
|
||||
/**
|
||||
* 查询入班体验申请列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:experience:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ByExperience byExperience) {
|
||||
startPage();
|
||||
List<ByExperience> list = byExperienceService.selectByExperienceList(byExperience);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出入班体验申请列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:experience:export')")
|
||||
@Log(title = "入班体验申请", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ByExperience byExperience) {
|
||||
List<ByExperience> list = byExperienceService.selectByExperienceList(byExperience);
|
||||
ExcelUtil<ByExperience> util = new ExcelUtil<ByExperience>(ByExperience.class);
|
||||
return util.exportExcel(list, "experience");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取入班体验申请详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:experience:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(byExperienceService.selectByExperienceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入班体验申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:experience:add')")
|
||||
@Log(title = "入班体验申请", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ByExperience byExperience) {
|
||||
return toAjax(byExperienceService.insertByExperience(byExperience));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改入班体验申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:experience:edit')")
|
||||
@Log(title = "入班体验申请", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ByExperience byExperience) {
|
||||
return toAjax(byExperienceService.updateByExperience(byExperience));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入班体验申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:experience:remove')")
|
||||
@Log(title = "入班体验申请", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(byExperienceService.deleteByExperienceByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,272 @@
|
||||
package com.ruoyi.project.benyi.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
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_experience
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-07-26
|
||||
*/
|
||||
public class ByExperience extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 家长姓名
|
||||
*/
|
||||
@Excel(name = "家长姓名")
|
||||
private String jzxm;
|
||||
|
||||
/**
|
||||
* 幼儿姓名
|
||||
*/
|
||||
@Excel(name = "幼儿姓名")
|
||||
private String yexm;
|
||||
|
||||
/**
|
||||
* 幼儿出生日期
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "幼儿出生日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date csrq;
|
||||
|
||||
/**
|
||||
* 联系方式
|
||||
*/
|
||||
@Excel(name = "联系方式")
|
||||
private String lxfs;
|
||||
|
||||
/**
|
||||
* 拟入园时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "拟入园时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date nrysj;
|
||||
|
||||
/**
|
||||
* 申请体验时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "申请体验时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date sqtysj;
|
||||
|
||||
/**
|
||||
* 上午或下午
|
||||
*/
|
||||
@Excel(name = "上午或下午")
|
||||
private String swxw;
|
||||
|
||||
/**
|
||||
* 体验学校
|
||||
*/
|
||||
@Excel(name = "体验学校")
|
||||
private Long schoolid;
|
||||
|
||||
/**
|
||||
* 是否回复
|
||||
*/
|
||||
@Excel(name = "是否回复")
|
||||
private String sfhf;
|
||||
|
||||
/**
|
||||
* 回复内容
|
||||
*/
|
||||
@Excel(name = "回复内容")
|
||||
private String hfrn;
|
||||
|
||||
/**
|
||||
* 回复人
|
||||
*/
|
||||
@Excel(name = "回复人")
|
||||
private Long hfuserid;
|
||||
|
||||
/**
|
||||
* 回复时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date fhsj;
|
||||
|
||||
/**
|
||||
* 园长指示
|
||||
*/
|
||||
@Excel(name = "园长指示")
|
||||
private String yzzs;
|
||||
|
||||
/**
|
||||
* 体验结果
|
||||
* 0不入园
|
||||
* 1入园
|
||||
*/
|
||||
@Excel(name = "体验结果 0不入园 1入园")
|
||||
private String tyjg;
|
||||
|
||||
/**
|
||||
* 入园时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "入园时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date rysj;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setJzxm(String jzxm) {
|
||||
this.jzxm = jzxm;
|
||||
}
|
||||
|
||||
public String getJzxm() {
|
||||
return jzxm;
|
||||
}
|
||||
|
||||
public void setYexm(String yexm) {
|
||||
this.yexm = yexm;
|
||||
}
|
||||
|
||||
public String getYexm() {
|
||||
return yexm;
|
||||
}
|
||||
|
||||
public void setCsrq(Date csrq) {
|
||||
this.csrq = csrq;
|
||||
}
|
||||
|
||||
public Date getCsrq() {
|
||||
return csrq;
|
||||
}
|
||||
|
||||
public void setLxfs(String lxfs) {
|
||||
this.lxfs = lxfs;
|
||||
}
|
||||
|
||||
public String getLxfs() {
|
||||
return lxfs;
|
||||
}
|
||||
|
||||
public void setNrysj(Date nrysj) {
|
||||
this.nrysj = nrysj;
|
||||
}
|
||||
|
||||
public Date getNrysj() {
|
||||
return nrysj;
|
||||
}
|
||||
|
||||
public void setSqtysj(Date sqtysj) {
|
||||
this.sqtysj = sqtysj;
|
||||
}
|
||||
|
||||
public Date getSqtysj() {
|
||||
return sqtysj;
|
||||
}
|
||||
|
||||
public void setSwxw(String swxw) {
|
||||
this.swxw = swxw;
|
||||
}
|
||||
|
||||
public String getSwxw() {
|
||||
return swxw;
|
||||
}
|
||||
|
||||
public void setSchoolid(Long schoolid) {
|
||||
this.schoolid = schoolid;
|
||||
}
|
||||
|
||||
public Long getSchoolid() {
|
||||
return schoolid;
|
||||
}
|
||||
|
||||
public void setSfhf(String sfhf) {
|
||||
this.sfhf = sfhf;
|
||||
}
|
||||
|
||||
public String getSfhf() {
|
||||
return sfhf;
|
||||
}
|
||||
|
||||
public void setHfrn(String hfrn) {
|
||||
this.hfrn = hfrn;
|
||||
}
|
||||
|
||||
public String getHfrn() {
|
||||
return hfrn;
|
||||
}
|
||||
|
||||
public void setHfuserid(Long hfuserid) {
|
||||
this.hfuserid = hfuserid;
|
||||
}
|
||||
|
||||
public Long getHfuserid() {
|
||||
return hfuserid;
|
||||
}
|
||||
|
||||
public void setFhsj(Date fhsj) {
|
||||
this.fhsj = fhsj;
|
||||
}
|
||||
|
||||
public Date getFhsj() {
|
||||
return fhsj;
|
||||
}
|
||||
|
||||
public void setYzzs(String yzzs) {
|
||||
this.yzzs = yzzs;
|
||||
}
|
||||
|
||||
public String getYzzs() {
|
||||
return yzzs;
|
||||
}
|
||||
|
||||
public void setTyjg(String tyjg) {
|
||||
this.tyjg = tyjg;
|
||||
}
|
||||
|
||||
public String getTyjg() {
|
||||
return tyjg;
|
||||
}
|
||||
|
||||
public void setRysj(Date rysj) {
|
||||
this.rysj = rysj;
|
||||
}
|
||||
|
||||
public Date getRysj() {
|
||||
return rysj;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("jzxm", getJzxm())
|
||||
.append("yexm", getYexm())
|
||||
.append("csrq", getCsrq())
|
||||
.append("lxfs", getLxfs())
|
||||
.append("nrysj", getNrysj())
|
||||
.append("sqtysj", getSqtysj())
|
||||
.append("swxw", getSwxw())
|
||||
.append("schoolid", getSchoolid())
|
||||
.append("sfhf", getSfhf())
|
||||
.append("hfrn", getHfrn())
|
||||
.append("hfuserid", getHfuserid())
|
||||
.append("fhsj", getFhsj())
|
||||
.append("yzzs", getYzzs())
|
||||
.append("tyjg", getTyjg())
|
||||
.append("rysj", getRysj())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByExperience;
|
||||
|
||||
/**
|
||||
* 入班体验申请Mapper接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-07-26
|
||||
*/
|
||||
public interface ByExperienceMapper {
|
||||
/**
|
||||
* 查询入班体验申请
|
||||
*
|
||||
* @param id 入班体验申请ID
|
||||
* @return 入班体验申请
|
||||
*/
|
||||
public ByExperience selectByExperienceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询入班体验申请列表
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 入班体验申请集合
|
||||
*/
|
||||
public List<ByExperience> selectByExperienceList(ByExperience byExperience);
|
||||
|
||||
/**
|
||||
* 新增入班体验申请
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByExperience(ByExperience byExperience);
|
||||
|
||||
/**
|
||||
* 修改入班体验申请
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByExperience(ByExperience byExperience);
|
||||
|
||||
/**
|
||||
* 删除入班体验申请
|
||||
*
|
||||
* @param id 入班体验申请ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByExperienceById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除入班体验申请
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByExperienceByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByExperience;
|
||||
|
||||
/**
|
||||
* 入班体验申请Service接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-07-26
|
||||
*/
|
||||
public interface IByExperienceService {
|
||||
/**
|
||||
* 查询入班体验申请
|
||||
*
|
||||
* @param id 入班体验申请ID
|
||||
* @return 入班体验申请
|
||||
*/
|
||||
public ByExperience selectByExperienceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询入班体验申请列表
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 入班体验申请集合
|
||||
*/
|
||||
public List<ByExperience> selectByExperienceList(ByExperience byExperience);
|
||||
|
||||
/**
|
||||
* 新增入班体验申请
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByExperience(ByExperience byExperience);
|
||||
|
||||
/**
|
||||
* 修改入班体验申请
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByExperience(ByExperience byExperience);
|
||||
|
||||
/**
|
||||
* 批量删除入班体验申请
|
||||
*
|
||||
* @param ids 需要删除的入班体验申请ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByExperienceByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除入班体验申请信息
|
||||
*
|
||||
* @param id 入班体验申请ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByExperienceById(Long id);
|
||||
}
|
@ -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.ByExperienceMapper;
|
||||
import com.ruoyi.project.benyi.domain.ByExperience;
|
||||
import com.ruoyi.project.benyi.service.IByExperienceService;
|
||||
|
||||
/**
|
||||
* 入班体验申请Service业务层处理
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-07-26
|
||||
*/
|
||||
@Service
|
||||
public class ByExperienceServiceImpl implements IByExperienceService {
|
||||
@Autowired
|
||||
private ByExperienceMapper byExperienceMapper;
|
||||
|
||||
/**
|
||||
* 查询入班体验申请
|
||||
*
|
||||
* @param id 入班体验申请ID
|
||||
* @return 入班体验申请
|
||||
*/
|
||||
@Override
|
||||
public ByExperience selectByExperienceById(Long id) {
|
||||
return byExperienceMapper.selectByExperienceById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询入班体验申请列表
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 入班体验申请
|
||||
*/
|
||||
@Override
|
||||
public List<ByExperience> selectByExperienceList(ByExperience byExperience) {
|
||||
return byExperienceMapper.selectByExperienceList(byExperience);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入班体验申请
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertByExperience(ByExperience byExperience) {
|
||||
byExperience.setCreateTime(DateUtils.getNowDate());
|
||||
return byExperienceMapper.insertByExperience(byExperience);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改入班体验申请
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateByExperience(ByExperience byExperience) {
|
||||
return byExperienceMapper.updateByExperience(byExperience);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除入班体验申请
|
||||
*
|
||||
* @param ids 需要删除的入班体验申请ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByExperienceByIds(Long[] ids) {
|
||||
return byExperienceMapper.deleteByExperienceByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入班体验申请信息
|
||||
*
|
||||
* @param id 入班体验申请ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByExperienceById(Long id) {
|
||||
return byExperienceMapper.deleteByExperienceById(id);
|
||||
}
|
||||
}
|
131
ruoyi/src/main/resources/mybatis/benyi/ByExperienceMapper.xml
Normal file
131
ruoyi/src/main/resources/mybatis/benyi/ByExperienceMapper.xml
Normal file
@ -0,0 +1,131 @@
|
||||
<?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.ByExperienceMapper">
|
||||
|
||||
<resultMap type="ByExperience" id="ByExperienceResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="jzxm" column="jzxm" />
|
||||
<result property="yexm" column="yexm" />
|
||||
<result property="csrq" column="csrq" />
|
||||
<result property="lxfs" column="lxfs" />
|
||||
<result property="nrysj" column="nrysj" />
|
||||
<result property="sqtysj" column="sqtysj" />
|
||||
<result property="swxw" column="swxw" />
|
||||
<result property="schoolid" column="schoolid" />
|
||||
<result property="sfhf" column="sfhf" />
|
||||
<result property="hfrn" column="hfrn" />
|
||||
<result property="hfuserid" column="hfuserid" />
|
||||
<result property="fhsj" column="fhsj" />
|
||||
<result property="yzzs" column="yzzs" />
|
||||
<result property="tyjg" column="tyjg" />
|
||||
<result property="rysj" column="rysj" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByExperienceVo">
|
||||
select id, jzxm, yexm, csrq, lxfs, nrysj, sqtysj, swxw, schoolid, sfhf, hfrn, hfuserid, fhsj, yzzs, tyjg, rysj, create_time from by_experience
|
||||
</sql>
|
||||
|
||||
<select id="selectByExperienceList" parameterType="ByExperience" resultMap="ByExperienceResult">
|
||||
<include refid="selectByExperienceVo"/>
|
||||
<where>
|
||||
<if test="jzxm != null and jzxm != ''"> and jzxm = #{jzxm}</if>
|
||||
<if test="yexm != null and yexm != ''"> and yexm = #{yexm}</if>
|
||||
<if test="csrq != null "> and csrq = #{csrq}</if>
|
||||
<if test="lxfs != null and lxfs != ''"> and lxfs = #{lxfs}</if>
|
||||
<if test="nrysj != null "> and nrysj = #{nrysj}</if>
|
||||
<if test="sqtysj != null "> and sqtysj = #{sqtysj}</if>
|
||||
<if test="swxw != null and swxw != ''"> and swxw = #{swxw}</if>
|
||||
<if test="schoolid != null "> and schoolid = #{schoolid}</if>
|
||||
<if test="sfhf != null and sfhf != ''"> and sfhf = #{sfhf}</if>
|
||||
<if test="hfrn != null and hfrn != ''"> and hfrn = #{hfrn}</if>
|
||||
<if test="hfuserid != null "> and hfuserid = #{hfuserid}</if>
|
||||
<if test="fhsj != null "> and fhsj = #{fhsj}</if>
|
||||
<if test="yzzs != null and yzzs != ''"> and yzzs = #{yzzs}</if>
|
||||
<if test="tyjg != null and tyjg != ''"> and tyjg = #{tyjg}</if>
|
||||
<if test="rysj != null "> and rysj = #{rysj}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByExperienceById" parameterType="Long" resultMap="ByExperienceResult">
|
||||
<include refid="selectByExperienceVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByExperience" parameterType="ByExperience" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into by_experience
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="jzxm != null and jzxm != ''">jzxm,</if>
|
||||
<if test="yexm != null and yexm != ''">yexm,</if>
|
||||
<if test="csrq != null ">csrq,</if>
|
||||
<if test="lxfs != null and lxfs != ''">lxfs,</if>
|
||||
<if test="nrysj != null ">nrysj,</if>
|
||||
<if test="sqtysj != null ">sqtysj,</if>
|
||||
<if test="swxw != null and swxw != ''">swxw,</if>
|
||||
<if test="schoolid != null ">schoolid,</if>
|
||||
<if test="sfhf != null and sfhf != ''">sfhf,</if>
|
||||
<if test="hfrn != null and hfrn != ''">hfrn,</if>
|
||||
<if test="hfuserid != null ">hfuserid,</if>
|
||||
<if test="fhsj != null ">fhsj,</if>
|
||||
<if test="yzzs != null and yzzs != ''">yzzs,</if>
|
||||
<if test="tyjg != null and tyjg != ''">tyjg,</if>
|
||||
<if test="rysj != null ">rysj,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="jzxm != null and jzxm != ''">#{jzxm},</if>
|
||||
<if test="yexm != null and yexm != ''">#{yexm},</if>
|
||||
<if test="csrq != null ">#{csrq},</if>
|
||||
<if test="lxfs != null and lxfs != ''">#{lxfs},</if>
|
||||
<if test="nrysj != null ">#{nrysj},</if>
|
||||
<if test="sqtysj != null ">#{sqtysj},</if>
|
||||
<if test="swxw != null and swxw != ''">#{swxw},</if>
|
||||
<if test="schoolid != null ">#{schoolid},</if>
|
||||
<if test="sfhf != null and sfhf != ''">#{sfhf},</if>
|
||||
<if test="hfrn != null and hfrn != ''">#{hfrn},</if>
|
||||
<if test="hfuserid != null ">#{hfuserid},</if>
|
||||
<if test="fhsj != null ">#{fhsj},</if>
|
||||
<if test="yzzs != null and yzzs != ''">#{yzzs},</if>
|
||||
<if test="tyjg != null and tyjg != ''">#{tyjg},</if>
|
||||
<if test="rysj != null ">#{rysj},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByExperience" parameterType="ByExperience">
|
||||
update by_experience
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="jzxm != null and jzxm != ''">jzxm = #{jzxm},</if>
|
||||
<if test="yexm != null and yexm != ''">yexm = #{yexm},</if>
|
||||
<if test="csrq != null ">csrq = #{csrq},</if>
|
||||
<if test="lxfs != null and lxfs != ''">lxfs = #{lxfs},</if>
|
||||
<if test="nrysj != null ">nrysj = #{nrysj},</if>
|
||||
<if test="sqtysj != null ">sqtysj = #{sqtysj},</if>
|
||||
<if test="swxw != null and swxw != ''">swxw = #{swxw},</if>
|
||||
<if test="schoolid != null ">schoolid = #{schoolid},</if>
|
||||
<if test="sfhf != null and sfhf != ''">sfhf = #{sfhf},</if>
|
||||
<if test="hfrn != null and hfrn != ''">hfrn = #{hfrn},</if>
|
||||
<if test="hfuserid != null ">hfuserid = #{hfuserid},</if>
|
||||
<if test="fhsj != null ">fhsj = #{fhsj},</if>
|
||||
<if test="yzzs != null and yzzs != ''">yzzs = #{yzzs},</if>
|
||||
<if test="tyjg != null and tyjg != ''">tyjg = #{tyjg},</if>
|
||||
<if test="rysj != null ">rysj = #{rysj},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByExperienceById" parameterType="Long">
|
||||
delete from by_experience where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByExperienceByIds" parameterType="String">
|
||||
delete from by_experience where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Loading…
x
Reference in New Issue
Block a user