周计划

This commit is contained in:
sk1551 2020-08-27 19:45:50 +08:00
parent 54d4dffe5b
commit 893a520a48
16 changed files with 1103 additions and 528 deletions

View File

@ -2,52 +2,60 @@ import request from '@/utils/request'
// 查询周计划(家长和教育部门)列表 // 查询周计划(家长和教育部门)列表
export function listPlanweek(query) { export function listPlanweek(query) {
return request({ return request({
url: '/benyi/planweek/list', url: '/benyi/planweek/list',
method: 'get', method: 'get',
params: query params: query
}) })
} }
// 查询周计划(家长和教育部门)详细 // 查询周计划(家长和教育部门)详细
export function getPlanweek(id) { export function getPlanweek(id) {
return request({ return request({
url: '/benyi/planweek/' + id, url: '/benyi/planweek/' + id,
method: 'get' method: 'get'
}) })
} }
// 新增周计划(家长和教育部门) // 新增周计划(家长和教育部门)
export function addPlanweek(data) { export function addPlanweek(data) {
return request({ return request({
url: '/benyi/planweek', url: '/benyi/planweek',
method: 'post', method: 'post',
data: data data: data
}) })
} }
// 修改周计划(家长和教育部门) // 修改周计划(家长和教育部门)
export function updatePlanweek(data) { export function updatePlanweek(data) {
return request({ return request({
url: '/benyi/planweek', url: '/benyi/planweek',
method: 'put', method: 'put',
data: data data: data
}) })
} }
// 删除周计划(家长和教育部门) // 删除周计划(家长和教育部门)
export function delPlanweek(id) { export function delPlanweek(id) {
return request({ return request({
url: '/benyi/planweek/' + id, url: '/benyi/planweek/' + id,
method: 'delete' method: 'delete'
}) })
}
// 提交周计划(家长和教育部门)
export function checkPlanweek(id) {
return request({
url: '/benyi/planweek/check/' + id,
method: 'post'
})
} }
// 导出周计划(家长和教育部门) // 导出周计划(家长和教育部门)
export function exportPlanweek(query) { export function exportPlanweek(query) {
return request({ return request({
url: '/benyi/planweek/export', url: '/benyi/planweek/export',
method: 'get', method: 'get',
params: query params: query
}) })
} }

View File

@ -26,291 +26,306 @@ import Layout from '@/layout'
// 公共路由 // 公共路由
export const constantRoutes = [{ export const constantRoutes = [{
path: '/redirect', path: '/redirect',
component: Layout, component: Layout,
hidden: true, hidden: true,
children: [{ children: [{
path: '/redirect/:path(.*)', path: '/redirect/:path(.*)',
component: () => component: () =>
import('@/views/redirect') import ('@/views/redirect')
}] }]
}, },
{ {
path: '/login', path: '/login',
component: () => component: () =>
import('@/views/login'), import ('@/views/login'),
hidden: true hidden: true
}, },
{ {
path: '/404', path: '/404',
component: () => component: () =>
import('@/views/error/404'), import ('@/views/error/404'),
hidden: true hidden: true
}, },
{ {
path: '/401', path: '/401',
component: () => component: () =>
import('@/views/error/401'), import ('@/views/error/401'),
hidden: true hidden: true
}, },
{ {
path: '/experience/content/:id', path: '/experience/content/:id',
component: () => component: () =>
import('@/views/benyi/experience/content'), import ('@/views/benyi/experience/content'),
hidden: true hidden: true
}, },
{ {
path: '/experience/apply/:id(\\d+)',
component: () =>
import('@/views/benyi/experience/choose'),
hidden: true,
children: [{
path: '/experience/apply/:id(\\d+)', path: '/experience/apply/:id(\\d+)',
component: () => component: () =>
import('@/views/benyi/experience/apply'), import ('@/views/benyi/experience/choose'),
hidden: true hidden: true,
}, children: [{
{ path: '/experience/apply/:id(\\d+)',
path: '/experience/result/:id(\\d+)', component: () =>
component: () => import ('@/views/benyi/experience/apply'),
import('@/views/benyi/experience/result'), hidden: true
hidden: true },
} {
] path: '/experience/result/:id(\\d+)',
}, component: () =>
{ import ('@/views/benyi/experience/result'),
path: '', hidden: true
component: Layout, }
redirect: 'index', ]
children: [{ },
path: 'index', {
component: () => path: '',
import('@/views/index'), component: Layout,
name: '首页', redirect: 'index',
meta: { children: [{
title: '首页', path: 'index',
icon: 'dashboard', component: () =>
noCache: true, import ('@/views/index'),
affix: true name: '首页',
} meta: {
}] title: '首页',
}, icon: 'dashboard',
{ noCache: true,
path: '/user', affix: true
component: Layout, }
hidden: true, }]
redirect: 'noredirect', },
children: [{ {
path: 'profile', path: '/user',
component: () => component: Layout,
import('@/views/system/user/profile/index'), hidden: true,
name: 'Profile', redirect: 'noredirect',
meta: { children: [{
title: '个人中心', path: 'profile',
icon: 'user' component: () =>
} import ('@/views/system/user/profile/index'),
}] name: 'Profile',
}, meta: {
{ title: '个人中心',
path: '/user/change', icon: 'user'
component: Layout, }
hidden: true, }]
redirect: 'noredirect', },
children: [{ {
path: 'dept', path: '/user/change',
component: () => component: Layout,
import('@/views/system/user/change/dept/index'), hidden: true,
name: 'Changedept', redirect: 'noredirect',
meta: { children: [{
title: '切换岗位', path: 'dept',
icon: 'user' component: () =>
} import ('@/views/system/user/change/dept/index'),
}] name: 'Changedept',
}, meta: {
{ title: '切换岗位',
path: '/dict', icon: 'user'
component: Layout, }
hidden: true, }]
children: [{ },
path: 'type/data/:dictId(\\d+)', {
component: () => path: '/dict',
import('@/views/system/dict/data'), component: Layout,
name: 'Data', hidden: true,
meta: { children: [{
title: '字典数据', path: 'type/data/:dictId(\\d+)',
icon: '' component: () =>
} import ('@/views/system/dict/data'),
}] name: 'Data',
}, meta: {
{ title: '字典数据',
path: '/dayflow', icon: ''
component: Layout, }
hidden: true, }]
children: [{ },
path: 'dayflowmanger/dayflowtask/:id(\\d+)', {
component: () => path: '/dayflow',
import('@/views/benyi/dayflow/task'), component: Layout,
name: 'Task', hidden: true,
meta: { children: [{
title: '一日流程任务', path: 'dayflowmanger/dayflowtask/:id(\\d+)',
icon: '' component: () =>
} import ('@/views/benyi/dayflow/task'),
}] name: 'Task',
}, meta: {
{ title: '一日流程任务',
path: '/dayflow/dayflowmanger', icon: ''
component: Layout, }
hidden: true, }]
children: [{ },
path: 'dayflowtask/standard/:code(\\d+)', {
component: () => path: '/dayflow/dayflowmanger',
import('@/views/benyi/dayflow/standard'), component: Layout,
name: 'Standard', hidden: true,
meta: { children: [{
title: '一日流程标准', path: 'dayflowtask/standard/:code(\\d+)',
icon: '' component: () =>
} import ('@/views/benyi/dayflow/standard'),
}] name: 'Standard',
}, meta: {
{ title: '一日流程标准',
path: '/dayflow/dayflowmanger/dayflowtask', icon: ''
component: Layout, }
hidden: true, }]
children: [{ },
path: 'standard/unscramble/:id(\\d+)', {
component: () => path: '/dayflow/dayflowmanger/dayflowtask',
import('@/views/benyi/dayflow/unscramble'), component: Layout,
name: 'unscramble', hidden: true,
meta: { children: [{
title: '一日流程标准解读', path: 'standard/unscramble/:id(\\d+)',
icon: '' component: () =>
} import ('@/views/benyi/dayflow/unscramble'),
}] name: 'unscramble',
}, meta: {
{ title: '一日流程标准解读',
path: '/video_study', icon: ''
component: Layout, }
hidden: true, }]
children: [{ },
path: 'study/detail/:id(\\d+)', {
component: () => path: '/video_study',
import('@/views/benyi_train/video_study/detail'), component: Layout,
name: 'Detail', hidden: true,
meta: { children: [{
title: '培训视频详情', path: 'study/detail/:id(\\d+)',
icon: '' component: () =>
} import ('@/views/benyi_train/video_study/detail'),
}] name: 'Detail',
}, meta: {
{ title: '培训视频详情',
path: '/benyi_course/theme', icon: ''
component: Layout, }
hidden: true, }]
children: [{ },
path: 'activity/:id(\\d+)', {
component: () => path: '/benyi_course/planweek',
import('@/views/benyi/theme/activity'), component: Layout,
name: 'Theme1', hidden: true,
meta: { children: [{
title: '主题整合内容', path: 'data/:id',
icon: '' component: () =>
} import ('@/views/benyi/planweek/data'),
}] name: 'planweek1',
}, meta: {
{ title: '周计划(明细)',
path: '/benyi_course/themetermplan', icon: ''
component: Layout, }
hidden: true, }]
children: [{ },
path: 'data/:id', {
component: () => path: '/benyi_course/theme',
import('@/views/benyi/themetermplan/data'), component: Layout,
name: 'Themetermplan1', hidden: true,
meta: { children: [{
title: '主题整合学期计划(明细)', path: 'activity/:id(\\d+)',
icon: '' component: () =>
} import ('@/views/benyi/theme/activity'),
}] name: 'Theme1',
}, meta: {
{ title: '主题整合内容',
path: '/benyi_course/thememonthplan', icon: ''
component: Layout, }
hidden: true, }]
children: [{ },
path: 'data/:id', {
component: () => path: '/benyi_course/themetermplan',
import('@/views/benyi/thememonthplan/data'), component: Layout,
name: 'Thememonthplan1', hidden: true,
meta: { children: [{
title: '主题整合月计划(明细)', path: 'data/:id',
icon: '' component: () =>
} import ('@/views/benyi/themetermplan/data'),
}] name: 'Themetermplan1',
}, meta: {
{ title: '主题整合学期计划(明细)',
path: '/benyi_course/themeweekplan', icon: ''
component: Layout, }
hidden: true, }]
children: [{ },
path: 'data/:id', {
component: () => path: '/benyi_course/thememonthplan',
import('@/views/benyi/themeweekplan/data'), component: Layout,
name: 'Themeweekplan1', hidden: true,
meta: { children: [{
title: '主题整合周计划(明细)', path: 'data/:id',
icon: '' component: () =>
} import ('@/views/benyi/thememonthplan/data'),
}] name: 'Thememonthplan1',
}, meta: {
{ title: '主题整合月计划(明细)',
path: '/benyi_course/math', icon: ''
component: Layout, }
hidden: true, }]
children: [{ },
path: 'plan/:id(\\d+)', {
component: () => path: '/benyi_course/themeweekplan',
import('@/views/benyi/math/plan'), component: Layout,
name: 'Math1', hidden: true,
meta: { children: [{
title: '游戏数学方案', path: 'data/:id',
icon: '' component: () =>
} import ('@/views/benyi/themeweekplan/data'),
}] name: 'Themeweekplan1',
}, meta: {
{ title: '主题整合周计划(明细)',
path: '/job', icon: ''
component: Layout, }
hidden: true, }]
children: [{ },
path: 'log', {
component: () => path: '/benyi_course/math',
import('@/views/monitor/job/log'), component: Layout,
name: 'JobLog', hidden: true,
meta: { children: [{
title: '调度日志' path: 'plan/:id(\\d+)',
} component: () =>
}] import ('@/views/benyi/math/plan'),
}, name: 'Math1',
{ meta: {
path: '/gen', title: '游戏数学方案',
component: Layout, icon: ''
hidden: true, }
children: [{ }]
path: 'edit', },
component: () => {
import('@/views/tool/gen/editTable'), path: '/job',
name: 'GenEdit', component: Layout,
meta: { hidden: true,
title: '修改生成配置' children: [{
} path: 'log',
}] component: () =>
} import ('@/views/monitor/job/log'),
name: 'JobLog',
meta: {
title: '调度日志'
}
}]
},
{
path: '/gen',
component: Layout,
hidden: true,
children: [{
path: 'edit',
component: () =>
import ('@/views/tool/gen/editTable'),
name: 'GenEdit',
meta: {
title: '修改生成配置'
}
}]
}
] ]
export default new Router({ export default new Router({
mode: 'history', // 去掉url中的# mode: 'history', // 去掉url中的#
scrollBehavior: () => ({ scrollBehavior: () => ({
y: 0 y: 0
}), }),
routes: constantRoutes routes: constantRoutes
}) })

View File

@ -0,0 +1,430 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
<el-form-item label="周计划" prop="wid">
<el-select v-model="queryParams.wid" size="small">
<el-option
v-for="item in planweekOptions"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
<el-form-item label="活动类型" prop="activitytype">
<el-select v-model="queryParams.activitytype" placeholder="请选择活动类型" clearable size="small">
<el-option
v-for="dict in activitytypeOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
/>
</el-select>
</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 label="活动时间" prop="activitytime">
<el-date-picker
clearable
size="small"
style="width: 200px"
v-model="queryParams.activitytime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择活动时间"
></el-date-picker>
</el-form-item>
<!-- <el-form-item label="创建人" prop="createuserid">
<el-input
v-model="queryParams.createuserid"
placeholder="请输入创建人"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="修改人" prop="updateuserid">
<el-input
v-model="queryParams.updateuserid"
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:planweekitem: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:planweekitem: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:planweekitem: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:planweekitem:export']"
>导出</el-button>
</el-col>
</el-row>
<el-table
v-loading="loading"
:data="planweekitemList"
@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="wid" />
<el-table-column
label="活动类型"
align="center"
prop="activitytype"
:formatter="activitytypeFormat"
/>
<el-table-column label="活动内容" align="center" prop="content" />
<el-table-column label="活动时间" align="center" prop="activitytime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.activitytime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="创建人" align="center" prop="createuserid" />
<el-table-column label="修改人" align="center" prop="updateuserid" />
<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:planweekitem:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['benyi:planweekitem: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="wid">
<el-select v-model="form.wid" size="small" :disabled="true">
<el-option
v-for="item in planweekOptions"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
<el-form-item label="活动类型">
<el-select v-model="form.activitytype" placeholder="请选择活动类型">
<el-option
v-for="dict in activitytypeOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="活动内容" prop="content">
<el-input v-model="form.content" placeholder="请输入活动内容" />
</el-form-item>
<el-form-item label="活动时间" prop="activitytime">
<el-date-picker
clearable
size="small"
style="width: 200px"
v-model="form.activitytime"
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 {
listPlanweekitem,
getPlanweekitem,
delPlanweekitem,
addPlanweekitem,
updatePlanweekitem,
exportPlanweekitem
} from "@/api/benyi/planweekitem";
import { getPlanweek, listPlanweek } from "@/api/benyi/planweek";
export default {
name: "Planweekitem",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
total: 0,
// ()
planweekitemList: [],
//
planweekOptions: [],
//
defaultWeekType: "",
//
title: "",
//
open: false,
//
activitytypeOptions: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
wid: undefined,
activitytype: undefined,
content: undefined,
activitytime: undefined,
createuserid: undefined,
updateuserid: undefined
},
//
form: {},
//
rules: {}
};
},
created() {
const planweekid = this.$route.params && this.$route.params.id;
this.getPlanweek2(planweekid);
this.getPlanWeekList();
this.getDicts("sys_math_type").then(response => {
this.activitytypeOptions = response.data;
});
},
methods: {
//
getPlanweek2(planweekid) {
getPlanweek(planweekid).then((response) => {
this.queryParams.wid = response.data.id;
this.defaultWeekType = response.data.id;
this.getList();
});
},
/** 查询周计划(家长和教育部门细化)列表 */
getList() {
this.loading = true;
listPlanweekitem(this.queryParams).then(response => {
this.planweekitemList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
getPlanWeekList() {
listPlanweek().then((response) => {
this.planweekOptions = response.rows;
});
},
//
themePlanFormat(row, column) {
// return this.selectDictLabel(this.classOptions, row.classid);
var actions = [];
var datas = this.planweekOptions;
Object.keys(datas).map((key) => {
if (datas[key].id == "" + row.wid) {
actions.push(datas[key].name);
return false;
}
});
return actions.join("");
},
//
activitytypeFormat(row, column) {
return this.selectDictLabel(this.activitytypeOptions, row.activitytype);
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: undefined,
wid: undefined,
activitytype: undefined,
content: undefined,
activitytime: undefined,
createuserid: undefined,
createTime: undefined,
updateuserid: undefined,
updateTime: undefined
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.queryParams.wid = this.defaultWeekType;
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 = "添加周计划(家长和教育部门细化)";
this.form.wid = this.queryParams.wid;
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getPlanweekitem(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) {
updatePlanweekitem(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
}
});
} else {
addPlanweekitem(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 delPlanweekitem(ids);
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
})
.catch(function() {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm(
"是否确认导出所有周计划(家长和教育部门细化)数据项?",
"警告",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}
)
.then(function() {
return exportPlanweekitem(queryParams);
})
.then(response => {
this.download(response.msg);
})
.catch(function() {});
}
}
};
</script>

View File

@ -1,24 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px"> <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
<el-form-item label="学校id" prop="schoolid">
<el-input
v-model="queryParams.schoolid"
placeholder="请输入学校id"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="班级id" prop="classid">
<el-input
v-model="queryParams.classid"
placeholder="请输入班级id"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="计划名称" prop="name"> <el-form-item label="计划名称" prop="name">
<el-input <el-input
v-model="queryParams.name" v-model="queryParams.name"
@ -28,6 +10,16 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="当前状态" prop="status">
<el-select v-model="queryParams.status" placeholder="请选择当前状态" clearable size="small">
<el-option
v-for="dict in statusOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item label="开始时间" prop="starttime"> <el-form-item label="开始时间" prop="starttime">
<el-date-picker <el-date-picker
clearable clearable
@ -59,46 +51,29 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="教学目标(社会)" prop="jxmbSh"> <el-form-item label="审核人" prop="shrid">
<el-input <el-input
v-model="queryParams.jxmbSh" v-model="queryParams.shrid"
placeholder="请输入教学目标(社会)" placeholder="请输入审核人"
clearable clearable
size="small" size="small"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="教学目标(语言)" prop="jxmbYy"> <!--
<el-form-item label="学校id" prop="schoolid">
<el-input <el-input
v-model="queryParams.jxmbYy" v-model="queryParams.schoolid"
placeholder="请输入教学目标(语言)" placeholder="请输入学校id"
clearable clearable
size="small" size="small"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="教学目标(健康)" prop="jxmbJk"> <el-form-item label="班级id" prop="classid">
<el-input <el-input
v-model="queryParams.jxmbJk" v-model="queryParams.classid"
placeholder="请输入教学目标(健康)" placeholder="请输入班级id"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="教学目标(科学)" prop="jxmbKx">
<el-input
v-model="queryParams.jxmbKx"
placeholder="请输入教学目标(科学)"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="教学目标(艺术)" prop="jxmbYs">
<el-input
v-model="queryParams.jxmbYs"
placeholder="请输入教学目标(艺术)"
clearable clearable
size="small" size="small"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
@ -112,22 +87,9 @@
size="small" size="small"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>-->
<el-form-item label="当前状态" prop="status">
<el-select v-model="queryParams.status" placeholder="请选择当前状态" clearable size="small"> <!-- <el-form-item label="审核时间" prop="shtime">
<el-option label="请选择字典生成" value />
</el-select>
</el-form-item>
<el-form-item label="审核人" prop="shrid">
<el-input
v-model="queryParams.shrid"
placeholder="请输入审核人"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="审核时间" prop="shtime">
<el-date-picker <el-date-picker
clearable clearable
size="small" size="small"
@ -137,7 +99,7 @@
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择审核时间" placeholder="选择审核时间"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <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-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@ -188,9 +150,14 @@
<el-table v-loading="loading" :data="planweekList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="planweekList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="编号" align="center" prop="id" /> <el-table-column label="编号" align="center" prop="id" />
<el-table-column label="学校id" align="center" prop="schoolid" /> <el-table-column label="班级id" align="center" prop="classid" :formatter="classFormat" />
<el-table-column label="班级id" align="center" prop="classid" /> <el-table-column label="计划名称" align="center" prop="name" :show-overflow-tooltip="true">
<el-table-column label="计划名称" align="center" prop="name" /> <template slot-scope="scope">
<router-link :to="'/benyi_course/planweek/data/' + scope.row.id" class="link-type">
<span>{{ scope.row.name }}</span>
</router-link>
</template>
</el-table-column>
<el-table-column label="开始时间" align="center" prop="starttime" width="180"> <el-table-column label="开始时间" align="center" prop="starttime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.starttime, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.starttime, '{y}-{m}-{d}') }}</span>
@ -202,19 +169,15 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="本周主题" align="center" prop="themeofweek" /> <el-table-column label="本周主题" align="center" prop="themeofweek" />
<el-table-column label="教学目标(社会)" align="center" prop="jxmbSh" /> <el-table-column label="当前状态" align="center" prop="status" :formatter="statusFormat" />
<el-table-column label="教学目标(语言)" align="center" prop="jxmbYy" />
<el-table-column label="教学目标(健康)" align="center" prop="jxmbJk" />
<el-table-column label="教学目标(科学)" align="center" prop="jxmbKx" />
<el-table-column label="教学目标(艺术)" align="center" prop="jxmbYs" />
<el-table-column label="创建人" align="center" prop="createuserid" />
<el-table-column label="当前状态" align="center" prop="status" />
<el-table-column label="审核人" align="center" prop="shrid" /> <el-table-column label="审核人" align="center" prop="shrid" />
<el-table-column label="审核时间" align="center" prop="shtime" width="180"> <!-- <el-table-column label="审核时间" align="center" prop="shtime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.shtime, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.shtime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<!-- <el-table-column label="学校id" align="center" prop="schoolid" />
-->
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -224,6 +187,14 @@
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['system:planweek:edit']" v-hasPermi="['system:planweek:edit']"
>修改</el-button> >修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-check"
@click="handleCheck(scope.row)"
v-hasPermi="['system:planweek:edit']"
v-show="isShow(scope.row)"
>提交</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -246,12 +217,6 @@
<!-- 添加或修改周计划(家长和教育部门)对话框 --> <!-- 添加或修改周计划(家长和教育部门)对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <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 ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="学校id" prop="schoolid">
<el-input v-model="form.schoolid" placeholder="请输入学校id" />
</el-form-item>
<el-form-item label="班级id" prop="classid">
<el-input v-model="form.classid" placeholder="请输入班级id" />
</el-form-item>
<el-form-item label="计划名称" prop="name"> <el-form-item label="计划名称" prop="name">
<el-input v-model="form.name" placeholder="请输入计划名称" /> <el-input v-model="form.name" placeholder="请输入计划名称" />
</el-form-item> </el-form-item>
@ -295,18 +260,26 @@
<el-form-item label="教学目标(艺术)" prop="jxmbYs"> <el-form-item label="教学目标(艺术)" prop="jxmbYs">
<el-input v-model="form.jxmbYs" placeholder="请输入教学目标(艺术)" /> <el-input v-model="form.jxmbYs" placeholder="请输入教学目标(艺术)" />
</el-form-item> </el-form-item>
<el-form-item label="创建人" prop="createuserid"> <!-- <el-form-item label="当前状态">
<el-input v-model="form.createuserid" placeholder="请输入创建人" /> <el-select v-model="form.status" placeholder="请选择当前状态">
</el-form-item> <el-option
<el-form-item label="当前状态"> v-for="dict in statusOptions"
<el-radio-group v-model="form.status"> :key="dict.dictValue"
<el-radio label="1">请选择字典生成</el-radio> :label="dict.dictLabel"
</el-radio-group> :value="dict.dictValue"
</el-form-item> ></el-option>
<el-form-item label="审核人" prop="shrid"> </el-select>
</el-form-item> -->
<!-- <el-form-item label="审核人" prop="shrid">
<el-input v-model="form.shrid" placeholder="请输入审核人" /> <el-input v-model="form.shrid" placeholder="请输入审核人" />
</el-form-item> -->
<!-- <el-form-item label="学校id" prop="schoolid">
<el-input v-model="form.schoolid" placeholder="请输入学校id" />
</el-form-item> </el-form-item>
<el-form-item label="审核时间" prop="shtime"> <el-form-item label="班级id" prop="classid">
<el-input v-model="form.classid" placeholder="请输入班级id" />
</el-form-item>-->
<!-- <el-form-item label="审核时间" prop="shtime">
<el-date-picker <el-date-picker
clearable clearable
size="small" size="small"
@ -316,7 +289,7 @@
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择审核时间" placeholder="选择审核时间"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item> -->
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
@ -334,8 +307,11 @@ import {
addPlanweek, addPlanweek,
updatePlanweek, updatePlanweek,
exportPlanweek, exportPlanweek,
checkPlanweek
} from "@/api/benyi/planweek"; } from "@/api/benyi/planweek";
import { listClass } from "@/api/system/class";
export default { export default {
name: "Planweek", name: "Planweek",
data() { data() {
@ -352,6 +328,10 @@ export default {
total: 0, total: 0,
// () // ()
planweekList: [], planweekList: [],
//
statusOptions: [],
//
classOptions: [],
// //
title: "", title: "",
// //
@ -374,27 +354,66 @@ export default {
createuserid: undefined, createuserid: undefined,
status: undefined, status: undefined,
shrid: undefined, shrid: undefined,
shtime: undefined, shtime: undefined
}, },
// //
form: {}, form: {},
// //
rules: {}, rules: {}
}; };
}, },
created() { created() {
this.getList(); this.getList();
this.getClassList();
//
this.getDicts("sys_dm_planweekstatus").then(response => {
this.statusOptions = response.data;
});
}, },
methods: { methods: {
/** 查询周计划(家长和教育部门)列表 */ /** 查询周计划(家长和教育部门)列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listPlanweek(this.queryParams).then((response) => { listPlanweek(this.queryParams).then(response => {
this.planweekList = response.rows; this.planweekList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });
}, },
//
getClassList() {
listClass(null).then((response) => {
this.classOptions = response.rows;
});
},
// //
// getClassName(val) {
// //locationsv-fordatas
// let obj = {};
// obj = this.classOptions.find((item) => {
// return item.bjbh === val;
// });
// let getName = "";
// getName = obj.bjmc;
// this.form.name = getName;
// },
//
statusFormat(row, column) {
return this.selectDictLabel(this.statusOptions, row.status);
},
//
classFormat(row, column) {
// return this.selectDictLabel(this.classOptions, row.classid);
var actions = [];
var datas = this.classOptions;
Object.keys(datas).map((key) => {
if (datas[key].bjbh == "" + row.classid) {
actions.push(datas[key].bjmc);
return false;
}
});
return actions.join("");
},
// //
cancel() { cancel() {
this.open = false; this.open = false;
@ -419,7 +438,7 @@ export default {
createTime: undefined, createTime: undefined,
status: "0", status: "0",
shrid: undefined, shrid: undefined,
shtime: undefined, shtime: undefined
}; };
this.resetForm("form"); this.resetForm("form");
}, },
@ -435,7 +454,7 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id); this.ids = selection.map(item => item.id);
this.single = selection.length != 1; this.single = selection.length != 1;
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
@ -449,18 +468,46 @@ export default {
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids; const id = row.id || this.ids;
getPlanweek(id).then((response) => { getPlanweek(id).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改周计划(家长和教育部门)"; this.title = "修改周计划(家长和教育部门)";
}); });
}, },
/** 审核提交按钮操作 */
handleCheck(row) {
const ids = row.id || this.ids;
this.$confirm(
'确认提交周计划编号为"' + ids + '"的数据项?',
"警告",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}
)
.then(function () {
return checkPlanweek(ids);
})
.then(() => {
this.getList();
this.msgSuccess("提交成功");
})
.catch(function () {});
},
isShow(row) {
if (row.status == "1" || row.status == "2") {
return false;
} else {
return true;
}
},
/** 提交按钮 */ /** 提交按钮 */
submitForm: function () { submitForm: function() {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.id != undefined) { if (this.form.id != undefined) {
updatePlanweek(this.form).then((response) => { updatePlanweek(this.form).then(response => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess("修改成功"); this.msgSuccess("修改成功");
this.open = false; this.open = false;
@ -468,7 +515,7 @@ export default {
} }
}); });
} else { } else {
addPlanweek(this.form).then((response) => { addPlanweek(this.form).then(response => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess("新增成功"); this.msgSuccess("新增成功");
this.open = false; this.open = false;
@ -488,17 +535,17 @@ export default {
{ {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning"
} }
) )
.then(function () { .then(function() {
return delPlanweek(ids); return delPlanweek(ids);
}) })
.then(() => { .then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) })
.catch(function () {}); .catch(function() {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -506,16 +553,16 @@ export default {
this.$confirm("是否确认导出所有周计划(家长和教育部门)数据项?", "警告", { this.$confirm("是否确认导出所有周计划(家长和教育部门)数据项?", "警告", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning"
}) })
.then(function () { .then(function() {
return exportPlanweek(queryParams); return exportPlanweek(queryParams);
}) })
.then((response) => { .then(response => {
this.download(response.msg); this.download(response.msg);
}) })
.catch(function () {}); .catch(function() {});
}, }
}, }
}; };
</script> </script>

View File

@ -2,6 +2,8 @@ package com.ruoyi.project.benyi.controller;
import java.util.List; import java.util.List;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.project.common.SchoolCommon;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -32,6 +34,8 @@ import com.ruoyi.framework.web.page.TableDataInfo;
public class ByPlanweekController extends BaseController { public class ByPlanweekController extends BaseController {
@Autowired @Autowired
private IByPlanweekService byPlanweekService; private IByPlanweekService byPlanweekService;
@Autowired
private SchoolCommon schoolCommon;
/** /**
* 查询周计划(家长和教育部门)列表 * 查询周计划(家长和教育部门)列表
@ -61,7 +65,7 @@ public class ByPlanweekController extends BaseController {
*/ */
@PreAuthorize("@ss.hasPermi('benyi:planweek:query')") @PreAuthorize("@ss.hasPermi('benyi:planweek:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) { public AjaxResult getInfo(@PathVariable("id") String id) {
return AjaxResult.success(byPlanweekService.selectByPlanweekById(id)); return AjaxResult.success(byPlanweekService.selectByPlanweekById(id));
} }
@ -72,7 +76,22 @@ public class ByPlanweekController extends BaseController {
@Log(title = "周计划(家长和教育部门)", businessType = BusinessType.INSERT) @Log(title = "周计划(家长和教育部门)", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody ByPlanweek byPlanweek) { public AjaxResult add(@RequestBody ByPlanweek byPlanweek) {
return toAjax(byPlanweekService.insertByPlanweek(byPlanweek)); String classId = schoolCommon.getClassId();
//首先判断当前账户是否为幼儿园账号
//if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
String uuid = schoolCommon.getUuid();
byPlanweek.setId(uuid);
//学校id
byPlanweek.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
//创建人id
byPlanweek.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
//班级id
byPlanweek.setClassid(classId);
byPlanweek.setStatus("0");
return toAjax(byPlanweekService.insertByPlanweek(byPlanweek));
// } else {
// return AjaxResult.error("当前用户非幼儿园,无法添加计划");
// }
} }
/** /**
@ -85,13 +104,33 @@ public class ByPlanweekController extends BaseController {
return toAjax(byPlanweekService.updateByPlanweek(byPlanweek)); return toAjax(byPlanweekService.updateByPlanweek(byPlanweek));
} }
/**
* 提交审核周计划(家长和教育部门)
*/
@PreAuthorize("@ss.hasPermi('benyi:planweek:edit')")
@Log(title = "周计划(家长和教育部门)", businessType = BusinessType.UPDATE)
@PostMapping("/check/{ids}")
public AjaxResult check(@PathVariable String[] ids) {
int iCount = 0;
ByPlanweek byPlanweek = null;
for (int i = 0; i < ids.length; i++) {
byPlanweek = new ByPlanweek();
byPlanweek.setId(ids[i]);
byPlanweek.setStatus("1");
//byPlanweek.setShrid(SecurityUtils.getLoginUser().getUser().getUserId());
iCount = iCount + byPlanweekService.updateByPlanweek(byPlanweek);
}
return toAjax(iCount);
}
/** /**
* 删除周计划(家长和教育部门) * 删除周计划(家长和教育部门)
*/ */
@PreAuthorize("@ss.hasPermi('benyi:planweek:remove')") @PreAuthorize("@ss.hasPermi('benyi:planweek:remove')")
@Log(title = "周计划(家长和教育部门)", businessType = BusinessType.DELETE) @Log(title = "周计划(家长和教育部门)", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable String[] ids) {
return toAjax(byPlanweekService.deleteByPlanweekByIds(ids)); return toAjax(byPlanweekService.deleteByPlanweekByIds(ids));
} }
} }

View File

@ -1,7 +1,6 @@
package com.ruoyi.project.benyi.controller; package com.ruoyi.project.benyi.controller;
import java.util.List; import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -25,32 +24,35 @@ import com.ruoyi.framework.web.page.TableDataInfo;
* 周计划(家长和教育部门细化)Controller * 周计划(家长和教育部门细化)Controller
* *
* @author tsbz * @author tsbz
* @date 2020-08-24 * @date 2020-08-27
*/ */
@RestController @RestController
@RequestMapping("/benyi/planweekitem") @RequestMapping("/benyi/planweekitem")
public class ByPlanweekitemController extends BaseController { public class ByPlanweekitemController extends BaseController
{
@Autowired @Autowired
private IByPlanweekitemService byPlanweekitemService; private IByPlanweekitemService byPlanweekitemService;
/** /**
* 查询周计划(家长和教育部门细化)列表 * 查询周计划(家长和教育部门细化)列表
*/ */
@PreAuthorize("@ss.hasPermi('benyi:planweek:list')") @PreAuthorize("@ss.hasPermi('benyi:planweekitem:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(ByPlanweekitem byPlanweekitem) { public TableDataInfo list(ByPlanweekitem byPlanweekitem)
{
startPage(); startPage();
List<ByPlanweekitem> list = byPlanweekitemService.selectByPlanweekitemList(byPlanweekitem); List<ByPlanweekitem> list = byPlanweekitemService.selectByPlanweekitemList(byPlanweekitem);
return getDataTable(list); return getDataTable(list);
} }
/** /**
* 导出周计划(家长和教育部门细化)列表 * 导出周计划(家长和教育部门细化)列表
*/ */
@PreAuthorize("@ss.hasPermi('benyi:planweek:export')") @PreAuthorize("@ss.hasPermi('benyi:planweekitem:export')")
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.EXPORT) @Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.EXPORT)
@GetMapping("/export") @GetMapping("/export")
public AjaxResult export(ByPlanweekitem byPlanweekitem) { public AjaxResult export(ByPlanweekitem byPlanweekitem)
{
List<ByPlanweekitem> list = byPlanweekitemService.selectByPlanweekitemList(byPlanweekitem); List<ByPlanweekitem> list = byPlanweekitemService.selectByPlanweekitemList(byPlanweekitem);
ExcelUtil<ByPlanweekitem> util = new ExcelUtil<ByPlanweekitem>(ByPlanweekitem.class); ExcelUtil<ByPlanweekitem> util = new ExcelUtil<ByPlanweekitem>(ByPlanweekitem.class);
return util.exportExcel(list, "planweekitem"); return util.exportExcel(list, "planweekitem");
@ -59,39 +61,43 @@ public class ByPlanweekitemController extends BaseController {
/** /**
* 获取周计划(家长和教育部门细化)详细信息 * 获取周计划(家长和教育部门细化)详细信息
*/ */
@PreAuthorize("@ss.hasPermi('benyi:planweek:query')") @PreAuthorize("@ss.hasPermi('benyi:planweekitem:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) { public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(byPlanweekitemService.selectByPlanweekitemById(id)); return AjaxResult.success(byPlanweekitemService.selectByPlanweekitemById(id));
} }
/** /**
* 新增周计划(家长和教育部门细化) * 新增周计划(家长和教育部门细化)
*/ */
@PreAuthorize("@ss.hasPermi('benyi:planweek:add')") @PreAuthorize("@ss.hasPermi('benyi:planweekitem:add')")
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.INSERT) @Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody ByPlanweekitem byPlanweekitem) { public AjaxResult add(@RequestBody ByPlanweekitem byPlanweekitem)
{
return toAjax(byPlanweekitemService.insertByPlanweekitem(byPlanweekitem)); return toAjax(byPlanweekitemService.insertByPlanweekitem(byPlanweekitem));
} }
/** /**
* 修改周计划(家长和教育部门细化) * 修改周计划(家长和教育部门细化)
*/ */
@PreAuthorize("@ss.hasPermi('benyi:planweek:edit')") @PreAuthorize("@ss.hasPermi('benyi:planweekitem:edit')")
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.UPDATE) @Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody ByPlanweekitem byPlanweekitem) { public AjaxResult edit(@RequestBody ByPlanweekitem byPlanweekitem)
{
return toAjax(byPlanweekitemService.updateByPlanweekitem(byPlanweekitem)); return toAjax(byPlanweekitemService.updateByPlanweekitem(byPlanweekitem));
} }
/** /**
* 删除周计划(家长和教育部门细化) * 删除周计划(家长和教育部门细化)
*/ */
@PreAuthorize("@ss.hasPermi('benyi:planweek:remove')") @PreAuthorize("@ss.hasPermi('benyi:planweekitem:remove')")
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.DELETE) @Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(byPlanweekitemService.deleteByPlanweekitemByIds(ids)); return toAjax(byPlanweekitemService.deleteByPlanweekitemByIds(ids));
} }
} }

View File

@ -20,7 +20,7 @@ public class ByPlanweek extends BaseEntity {
/** /**
* 编号 * 编号
*/ */
private Long id; private String id;
/** /**
* 学校id * 学校id
@ -115,11 +115,19 @@ public class ByPlanweek extends BaseEntity {
@Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date shtime; private Date shtime;
public void setId(Long id) { /**
* 审核意见
*/
@Excel(name = "审核意见")
private String shyj;
public void setId(String id) {
this.id = id; this.id = id;
} }
public Long getId() { public String getId() {
return id; return id;
} }
@ -263,6 +271,15 @@ public class ByPlanweek extends BaseEntity {
.append("status", getStatus()) .append("status", getStatus())
.append("shrid", getShrid()) .append("shrid", getShrid())
.append("shtime", getShtime()) .append("shtime", getShtime())
.append("shyj", getShyj())
.toString(); .toString();
} }
public String getShyj() {
return shyj;
}
public void setShyj(String shyj) {
this.shyj = shyj;
}
} }

View File

@ -12,7 +12,7 @@ import com.ruoyi.framework.web.domain.BaseEntity;
* 周计划(家长和教育部门细化)对象 by_planweekitem * 周计划(家长和教育部门细化)对象 by_planweekitem
* *
* @author tsbz * @author tsbz
* @date 2020-08-24 * @date 2020-08-27
*/ */
public class ByPlanweekitem extends BaseEntity { public class ByPlanweekitem extends BaseEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -26,7 +26,7 @@ public class ByPlanweekitem extends BaseEntity {
* 所属计划 * 所属计划
*/ */
@Excel(name = "所属计划") @Excel(name = "所属计划")
private Long wid; private String wid;
/** /**
* 活动类型 * 活动类型
@ -67,11 +67,11 @@ public class ByPlanweekitem extends BaseEntity {
return id; return id;
} }
public void setWid(Long wid) { public void setWid(String wid) {
this.wid = wid; this.wid = wid;
} }
public Long getWid() { public String getWid() {
return wid; return wid;
} }

View File

@ -17,7 +17,7 @@ public interface ByPlanweekMapper
* @param id 周计划(家长和教育部门)ID * @param id 周计划(家长和教育部门)ID
* @return 周计划(家长和教育部门) * @return 周计划(家长和教育部门)
*/ */
public ByPlanweek selectByPlanweekById(Long id); public ByPlanweek selectByPlanweekById(String id);
/** /**
* 查询周计划(家长和教育部门)列表 * 查询周计划(家长和教育部门)列表
@ -49,7 +49,7 @@ public interface ByPlanweekMapper
* @param id 周计划(家长和教育部门)ID * @param id 周计划(家长和教育部门)ID
* @return 结果 * @return 结果
*/ */
public int deleteByPlanweekById(Long id); public int deleteByPlanweekById(String id);
/** /**
* 批量删除周计划(家长和教育部门) * 批量删除周计划(家长和教育部门)
@ -57,5 +57,5 @@ public interface ByPlanweekMapper
* @param ids 需要删除的数据ID * @param ids 需要删除的数据ID
* @return 结果 * @return 结果
*/ */
public int deleteByPlanweekByIds(Long[] ids); public int deleteByPlanweekByIds(String[] ids);
} }

View File

@ -7,7 +7,7 @@ import com.ruoyi.project.benyi.domain.ByPlanweekitem;
* 周计划(家长和教育部门细化)Mapper接口 * 周计划(家长和教育部门细化)Mapper接口
* *
* @author tsbz * @author tsbz
* @date 2020-08-24 * @date 2020-08-27
*/ */
public interface ByPlanweekitemMapper public interface ByPlanweekitemMapper
{ {

View File

@ -17,7 +17,7 @@ public interface IByPlanweekService {
* @param id 周计划(家长和教育部门)ID * @param id 周计划(家长和教育部门)ID
* @return 周计划(家长和教育部门) * @return 周计划(家长和教育部门)
*/ */
public ByPlanweek selectByPlanweekById(Long id); public ByPlanweek selectByPlanweekById(String id);
/** /**
* 查询周计划(家长和教育部门)列表 * 查询周计划(家长和教育部门)列表
@ -49,7 +49,7 @@ public interface IByPlanweekService {
* @param ids 需要删除的周计划(家长和教育部门)ID * @param ids 需要删除的周计划(家长和教育部门)ID
* @return 结果 * @return 结果
*/ */
public int deleteByPlanweekByIds(Long[] ids); public int deleteByPlanweekByIds(String[] ids);
/** /**
* 删除周计划(家长和教育部门)信息 * 删除周计划(家长和教育部门)信息
@ -57,5 +57,5 @@ public interface IByPlanweekService {
* @param id 周计划(家长和教育部门)ID * @param id 周计划(家长和教育部门)ID
* @return 结果 * @return 结果
*/ */
public int deleteByPlanweekById(Long id); public int deleteByPlanweekById(String id);
} }

View File

@ -1,16 +1,16 @@
package com.ruoyi.project.benyi.service; package com.ruoyi.project.benyi.service;
import java.util.List; import java.util.List;
import com.ruoyi.project.benyi.domain.ByPlanweekitem; import com.ruoyi.project.benyi.domain.ByPlanweekitem;
/** /**
* 周计划(家长和教育部门细化)Service接口 * 周计划(家长和教育部门细化)Service接口
* *
* @author tsbz * @author tsbz
* @date 2020-08-24 * @date 2020-08-27
*/ */
public interface IByPlanweekitemService { public interface IByPlanweekitemService
{
/** /**
* 查询周计划(家长和教育部门细化) * 查询周计划(家长和教育部门细化)
* *

View File

@ -27,7 +27,7 @@ public class ByPlanweekServiceImpl implements IByPlanweekService {
* @return 周计划(家长和教育部门) * @return 周计划(家长和教育部门)
*/ */
@Override @Override
public ByPlanweek selectByPlanweekById(Long id) { public ByPlanweek selectByPlanweekById(String id) {
return byPlanweekMapper.selectByPlanweekById(id); return byPlanweekMapper.selectByPlanweekById(id);
} }
@ -72,7 +72,7 @@ public class ByPlanweekServiceImpl implements IByPlanweekService {
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deleteByPlanweekByIds(Long[] ids) { public int deleteByPlanweekByIds(String[] ids) {
return byPlanweekMapper.deleteByPlanweekByIds(ids); return byPlanweekMapper.deleteByPlanweekByIds(ids);
} }
@ -83,7 +83,7 @@ public class ByPlanweekServiceImpl implements IByPlanweekService {
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deleteByPlanweekById(Long id) { public int deleteByPlanweekById(String id) {
return byPlanweekMapper.deleteByPlanweekById(id); return byPlanweekMapper.deleteByPlanweekById(id);
} }
} }

View File

@ -1,9 +1,8 @@
package com.ruoyi.project.benyi.service.impl; package com.ruoyi.project.benyi.service.impl;
import java.util.List; import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.DateUtils; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.ruoyi.project.benyi.mapper.ByPlanweekitemMapper; import com.ruoyi.project.benyi.mapper.ByPlanweekitemMapper;
import com.ruoyi.project.benyi.domain.ByPlanweekitem; import com.ruoyi.project.benyi.domain.ByPlanweekitem;
@ -13,10 +12,11 @@ import com.ruoyi.project.benyi.service.IByPlanweekitemService;
* 周计划(家长和教育部门细化)Service业务层处理 * 周计划(家长和教育部门细化)Service业务层处理
* *
* @author tsbz * @author tsbz
* @date 2020-08-24 * @date 2020-08-27
*/ */
@Service @Service
public class ByPlanweekitemServiceImpl implements IByPlanweekitemService { public class ByPlanweekitemServiceImpl implements IByPlanweekitemService
{
@Autowired @Autowired
private ByPlanweekitemMapper byPlanweekitemMapper; private ByPlanweekitemMapper byPlanweekitemMapper;
@ -27,7 +27,8 @@ public class ByPlanweekitemServiceImpl implements IByPlanweekitemService {
* @return 周计划(家长和教育部门细化) * @return 周计划(家长和教育部门细化)
*/ */
@Override @Override
public ByPlanweekitem selectByPlanweekitemById(Long id) { public ByPlanweekitem selectByPlanweekitemById(Long id)
{
return byPlanweekitemMapper.selectByPlanweekitemById(id); return byPlanweekitemMapper.selectByPlanweekitemById(id);
} }
@ -38,7 +39,8 @@ public class ByPlanweekitemServiceImpl implements IByPlanweekitemService {
* @return 周计划(家长和教育部门细化) * @return 周计划(家长和教育部门细化)
*/ */
@Override @Override
public List<ByPlanweekitem> selectByPlanweekitemList(ByPlanweekitem byPlanweekitem) { public List<ByPlanweekitem> selectByPlanweekitemList(ByPlanweekitem byPlanweekitem)
{
return byPlanweekitemMapper.selectByPlanweekitemList(byPlanweekitem); return byPlanweekitemMapper.selectByPlanweekitemList(byPlanweekitem);
} }
@ -49,9 +51,10 @@ public class ByPlanweekitemServiceImpl implements IByPlanweekitemService {
* @return 结果 * @return 结果
*/ */
@Override @Override
public int insertByPlanweekitem(ByPlanweekitem byPlanweekitem) { public int insertByPlanweekitem(ByPlanweekitem byPlanweekitem)
byPlanweekitem.setCreateTime(DateUtils.getNowDate()); {
return byPlanweekitemMapper.insertByPlanweekitem(byPlanweekitem); byPlanweekitem.setCreateTime(DateUtils.getNowDate());
return byPlanweekitemMapper.insertByPlanweekitem(byPlanweekitem);
} }
/** /**
@ -61,9 +64,10 @@ public class ByPlanweekitemServiceImpl implements IByPlanweekitemService {
* @return 结果 * @return 结果
*/ */
@Override @Override
public int updateByPlanweekitem(ByPlanweekitem byPlanweekitem) { public int updateByPlanweekitem(ByPlanweekitem byPlanweekitem)
byPlanweekitem.setUpdateTime(DateUtils.getNowDate()); {
return byPlanweekitemMapper.updateByPlanweekitem(byPlanweekitem); byPlanweekitem.setUpdateTime(DateUtils.getNowDate());
return byPlanweekitemMapper.updateByPlanweekitem(byPlanweekitem);
} }
/** /**
@ -73,7 +77,8 @@ public class ByPlanweekitemServiceImpl implements IByPlanweekitemService {
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deleteByPlanweekitemByIds(Long[] ids) { public int deleteByPlanweekitemByIds(Long[] ids)
{
return byPlanweekitemMapper.deleteByPlanweekitemByIds(ids); return byPlanweekitemMapper.deleteByPlanweekitemByIds(ids);
} }
@ -84,7 +89,8 @@ public class ByPlanweekitemServiceImpl implements IByPlanweekitemService {
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deleteByPlanweekitemById(Long id) { public int deleteByPlanweekitemById(Long id)
{
return byPlanweekitemMapper.deleteByPlanweekitemById(id); return byPlanweekitemMapper.deleteByPlanweekitemById(id);
} }
} }

View File

@ -22,10 +22,11 @@
<result property="status" column="status"/> <result property="status" column="status"/>
<result property="shrid" column="shrid"/> <result property="shrid" column="shrid"/>
<result property="shtime" column="shtime"/> <result property="shtime" column="shtime"/>
<result property="shyj" column="shyj" />
</resultMap> </resultMap>
<sql id="selectByPlanweekVo"> <sql id="selectByPlanweekVo">
select id, schoolid, classid, name, starttime, endtime, themeofweek, jxmb_sh, jxmb_yy, jxmb_jk, jxmb_kx, jxmb_ys, createuserid, create_time, status, shrid, shtime from by_planweek select id, schoolid, classid, name, starttime, endtime, themeofweek, jxmb_sh, jxmb_yy, jxmb_jk, jxmb_kx, jxmb_ys, createuserid, create_time, status, shrid, shtime, shyj from by_planweek
</sql> </sql>
<select id="selectByPlanweekList" parameterType="ByPlanweek" resultMap="ByPlanweekResult"> <select id="selectByPlanweekList" parameterType="ByPlanweek" resultMap="ByPlanweekResult">
@ -46,17 +47,19 @@
<if test="status != null and status != ''">and status = #{status}</if> <if test="status != null and status != ''">and status = #{status}</if>
<if test="shrid != null ">and shrid = #{shrid}</if> <if test="shrid != null ">and shrid = #{shrid}</if>
<if test="shtime != null ">and shtime = #{shtime}</if> <if test="shtime != null ">and shtime = #{shtime}</if>
<if test="shyj != null and shyj != ''"> and shyj = #{shyj}</if>
</where> </where>
</select> </select>
<select id="selectByPlanweekById" parameterType="Long" resultMap="ByPlanweekResult"> <select id="selectByPlanweekById" parameterType="String" resultMap="ByPlanweekResult">
<include refid="selectByPlanweekVo"/> <include refid="selectByPlanweekVo"/>
where id = #{id} where id = #{id}
</select> </select>
<insert id="insertByPlanweek" parameterType="ByPlanweek" useGeneratedKeys="true" keyProperty="id"> <insert id="insertByPlanweek" parameterType="ByPlanweek" >
insert into by_planweek insert into by_planweek
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">id,</if>
<if test="schoolid != null ">schoolid,</if> <if test="schoolid != null ">schoolid,</if>
<if test="classid != null and classid != ''">classid,</if> <if test="classid != null and classid != ''">classid,</if>
<if test="name != null and name != ''">name,</if> <if test="name != null and name != ''">name,</if>
@ -73,8 +76,10 @@
<if test="status != null and status != ''">status,</if> <if test="status != null and status != ''">status,</if>
<if test="shrid != null ">shrid,</if> <if test="shrid != null ">shrid,</if>
<if test="shtime != null ">shtime,</if> <if test="shtime != null ">shtime,</if>
<if test="shyj != null and shyj != ''">shyj,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">#{id},</if>
<if test="schoolid != null ">#{schoolid},</if> <if test="schoolid != null ">#{schoolid},</if>
<if test="classid != null and classid != ''">#{classid},</if> <if test="classid != null and classid != ''">#{classid},</if>
<if test="name != null and name != ''">#{name},</if> <if test="name != null and name != ''">#{name},</if>
@ -91,6 +96,7 @@
<if test="status != null and status != ''">#{status},</if> <if test="status != null and status != ''">#{status},</if>
<if test="shrid != null ">#{shrid},</if> <if test="shrid != null ">#{shrid},</if>
<if test="shtime != null ">#{shtime},</if> <if test="shtime != null ">#{shtime},</if>
<if test="shyj != null and shyj != ''">#{shyj},</if>
</trim> </trim>
</insert> </insert>
@ -113,11 +119,12 @@
<if test="status != null and status != ''">status = #{status},</if> <if test="status != null and status != ''">status = #{status},</if>
<if test="shrid != null ">shrid = #{shrid},</if> <if test="shrid != null ">shrid = #{shrid},</if>
<if test="shtime != null ">shtime = #{shtime},</if> <if test="shtime != null ">shtime = #{shtime},</if>
<if test="shyj != null and shyj != ''">shyj = #{shyj},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
<delete id="deleteByPlanweekById" parameterType="Long"> <delete id="deleteByPlanweekById" parameterType="String">
delete from by_planweek where id = #{id} delete from by_planweek where id = #{id}
</delete> </delete>

View File

@ -5,16 +5,16 @@
<mapper namespace="com.ruoyi.project.benyi.mapper.ByPlanweekitemMapper"> <mapper namespace="com.ruoyi.project.benyi.mapper.ByPlanweekitemMapper">
<resultMap type="ByPlanweekitem" id="ByPlanweekitemResult"> <resultMap type="ByPlanweekitem" id="ByPlanweekitemResult">
<result property="id" column="id"/> <result property="id" column="id" />
<result property="wid" column="wid"/> <result property="wid" column="wid" />
<result property="activitytype" column="activitytype"/> <result property="activitytype" column="activitytype" />
<result property="content" column="content"/> <result property="content" column="content" />
<result property="activitytime" column="activitytime"/> <result property="activitytime" column="activitytime" />
<result property="createuserid" column="createuserid"/> <result property="createuserid" column="createuserid" />
<result property="createTime" column="create_time"/> <result property="createTime" column="create_time" />
<result property="updateuserid" column="updateuserid"/> <result property="updateuserid" column="updateuserid" />
<result property="updateTime" column="update_time"/> <result property="updateTime" column="update_time" />
</resultMap> </resultMap>
<sql id="selectByPlanweekitemVo"> <sql id="selectByPlanweekitemVo">
select id, wid, activitytype, content, activitytime, createuserid, create_time, updateuserid, update_time from by_planweekitem select id, wid, activitytype, content, activitytime, createuserid, create_time, updateuserid, update_time from by_planweekitem
@ -23,13 +23,13 @@
<select id="selectByPlanweekitemList" parameterType="ByPlanweekitem" resultMap="ByPlanweekitemResult"> <select id="selectByPlanweekitemList" parameterType="ByPlanweekitem" resultMap="ByPlanweekitemResult">
<include refid="selectByPlanweekitemVo"/> <include refid="selectByPlanweekitemVo"/>
<where> <where>
<if test="wid != null ">and wid = #{wid}</if> <if test="wid != null and wid != ''"> and wid = #{wid}</if>
<if test="activitytype != null and activitytype != ''">and activitytype = #{activitytype}</if> <if test="activitytype != null and activitytype != ''"> and activitytype = #{activitytype}</if>
<if test="content != null and content != ''">and content = #{content}</if> <if test="content != null and content != ''"> and content = #{content}</if>
<if test="activitytime != null ">and activitytime = #{activitytime}</if> <if test="activitytime != null "> and activitytime = #{activitytime}</if>
<if test="createuserid != null ">and createuserid = #{createuserid}</if> <if test="createuserid != null "> and createuserid = #{createuserid}</if>
<if test="updateuserid != null ">and updateuserid = #{updateuserid}</if> <if test="updateuserid != null "> and updateuserid = #{updateuserid}</if>
</where> </where>
</select> </select>
<select id="selectByPlanweekitemById" parameterType="Long" resultMap="ByPlanweekitemResult"> <select id="selectByPlanweekitemById" parameterType="Long" resultMap="ByPlanweekitemResult">
@ -40,39 +40,39 @@
<insert id="insertByPlanweekitem" parameterType="ByPlanweekitem" useGeneratedKeys="true" keyProperty="id"> <insert id="insertByPlanweekitem" parameterType="ByPlanweekitem" useGeneratedKeys="true" keyProperty="id">
insert into by_planweekitem insert into by_planweekitem
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="wid != null ">wid,</if> <if test="wid != null and wid != ''">wid,</if>
<if test="activitytype != null and activitytype != ''">activitytype,</if> <if test="activitytype != null and activitytype != ''">activitytype,</if>
<if test="content != null and content != ''">content,</if> <if test="content != null and content != ''">content,</if>
<if test="activitytime != null ">activitytime,</if> <if test="activitytime != null ">activitytime,</if>
<if test="createuserid != null ">createuserid,</if> <if test="createuserid != null ">createuserid,</if>
<if test="createTime != null ">create_time,</if> <if test="createTime != null ">create_time,</if>
<if test="updateuserid != null ">updateuserid,</if> <if test="updateuserid != null ">updateuserid,</if>
<if test="updateTime != null ">update_time,</if> <if test="updateTime != null ">update_time,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="wid != null ">#{wid},</if> <if test="wid != null and wid != ''">#{wid},</if>
<if test="activitytype != null and activitytype != ''">#{activitytype},</if> <if test="activitytype != null and activitytype != ''">#{activitytype},</if>
<if test="content != null and content != ''">#{content},</if> <if test="content != null and content != ''">#{content},</if>
<if test="activitytime != null ">#{activitytime},</if> <if test="activitytime != null ">#{activitytime},</if>
<if test="createuserid != null ">#{createuserid},</if> <if test="createuserid != null ">#{createuserid},</if>
<if test="createTime != null ">#{createTime},</if> <if test="createTime != null ">#{createTime},</if>
<if test="updateuserid != null ">#{updateuserid},</if> <if test="updateuserid != null ">#{updateuserid},</if>
<if test="updateTime != null ">#{updateTime},</if> <if test="updateTime != null ">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<update id="updateByPlanweekitem" parameterType="ByPlanweekitem"> <update id="updateByPlanweekitem" parameterType="ByPlanweekitem">
update by_planweekitem update by_planweekitem
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="wid != null ">wid = #{wid},</if> <if test="wid != null and wid != ''">wid = #{wid},</if>
<if test="activitytype != null and activitytype != ''">activitytype = #{activitytype},</if> <if test="activitytype != null and activitytype != ''">activitytype = #{activitytype},</if>
<if test="content != null and content != ''">content = #{content},</if> <if test="content != null and content != ''">content = #{content},</if>
<if test="activitytime != null ">activitytime = #{activitytime},</if> <if test="activitytime != null ">activitytime = #{activitytime},</if>
<if test="createuserid != null ">createuserid = #{createuserid},</if> <if test="createuserid != null ">createuserid = #{createuserid},</if>
<if test="createTime != null ">create_time = #{createTime},</if> <if test="createTime != null ">create_time = #{createTime},</if>
<if test="updateuserid != null ">updateuserid = #{updateuserid},</if> <if test="updateuserid != null ">updateuserid = #{updateuserid},</if>
<if test="updateTime != null ">update_time = #{updateTime},</if> <if test="updateTime != null ">update_time = #{updateTime},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>