周计划

This commit is contained in:
paidaxing444
2020-08-24 14:46:17 +08:00
parent 0c2953c36b
commit 357c498b01
15 changed files with 1865 additions and 0 deletions

View File

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

View File

@ -0,0 +1,53 @@
import request from '@/utils/request'
// 查询周计划(家长和教育部门细化)列表
export function listPlanweekitem(query) {
return request({
url: '/benyi/planweekitem/list',
method: 'get',
params: query
})
}
// 查询周计划(家长和教育部门细化)详细
export function getPlanweekitem(id) {
return request({
url: '/benyi/planweekitem/' + id,
method: 'get'
})
}
// 新增周计划(家长和教育部门细化)
export function addPlanweekitem(data) {
return request({
url: '/benyi/planweekitem',
method: 'post',
data: data
})
}
// 修改周计划(家长和教育部门细化)
export function updatePlanweekitem(data) {
return request({
url: '/benyi/planweekitem',
method: 'put',
data: data
})
}
// 删除周计划(家长和教育部门细化)
export function delPlanweekitem(id) {
return request({
url: '/benyi/planweekitem/' + id,
method: 'delete'
})
}
// 导出周计划(家长和教育部门细化)
export function exportPlanweekitem(query) {
return request({
url: '/benyi/planweekitem/export',
method: 'get',
params: query
})
}

View File

@ -0,0 +1,521 @@
<template>
<div class="app-container">
<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-input
v-model="queryParams.name"
placeholder="请输入计划名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="开始时间" prop="starttime">
<el-date-picker
clearable
size="small"
style="width: 200px"
v-model="queryParams.starttime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择开始时间"
></el-date-picker>
</el-form-item>
<el-form-item label="结束时间" prop="endtime">
<el-date-picker
clearable
size="small"
style="width: 200px"
v-model="queryParams.endtime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择结束时间"
></el-date-picker>
</el-form-item>
<el-form-item label="本周主题" prop="themeofweek">
<el-input
v-model="queryParams.themeofweek"
placeholder="请输入本周主题"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="教学目标(社会)" prop="jxmbSh">
<el-input
v-model="queryParams.jxmbSh"
placeholder="请输入教学目标(社会)"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="教学目标(语言)" prop="jxmbYy">
<el-input
v-model="queryParams.jxmbYy"
placeholder="请输入教学目标(语言)"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="教学目标(健康)" prop="jxmbJk">
<el-input
v-model="queryParams.jxmbJk"
placeholder="请输入教学目标(健康)"
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
size="small"
@keyup.enter.native="handleQuery"
/>
</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="status">
<el-select v-model="queryParams.status" placeholder="请选择当前状态" clearable size="small">
<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
clearable
size="small"
style="width: 200px"
v-model="queryParams.shtime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择审核时间"
></el-date-picker>
</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="['system:planweek: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="['system:planweek: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="['system:planweek:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['system:planweek:export']"
>导出</el-button>
</el-col>
</el-row>
<el-table v-loading="loading" :data="planweekList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="编号" align="center" prop="id" />
<el-table-column label="学校id" align="center" prop="schoolid" />
<el-table-column label="班级id" align="center" prop="classid" />
<el-table-column label="计划名称" align="center" prop="name" />
<el-table-column label="开始时间" align="center" prop="starttime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.starttime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="结束时间" align="center" prop="endtime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.endtime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="本周主题" align="center" prop="themeofweek" />
<el-table-column label="教学目标(社会)" align="center" prop="jxmbSh" />
<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="shtime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.shtime, '{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="['system:planweek:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:planweek:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改周计划(家长和教育部门)对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="学校id" prop="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-input v-model="form.name" placeholder="请输入计划名称" />
</el-form-item>
<el-form-item label="开始时间" prop="starttime">
<el-date-picker
clearable
size="small"
style="width: 200px"
v-model="form.starttime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择开始时间"
></el-date-picker>
</el-form-item>
<el-form-item label="结束时间" prop="endtime">
<el-date-picker
clearable
size="small"
style="width: 200px"
v-model="form.endtime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择结束时间"
></el-date-picker>
</el-form-item>
<el-form-item label="本周主题" prop="themeofweek">
<el-input v-model="form.themeofweek" placeholder="请输入本周主题" />
</el-form-item>
<el-form-item label="教学目标(社会)" prop="jxmbSh">
<el-input v-model="form.jxmbSh" placeholder="请输入教学目标(社会)" />
</el-form-item>
<el-form-item label="教学目标(语言)" prop="jxmbYy">
<el-input v-model="form.jxmbYy" placeholder="请输入教学目标(语言)" />
</el-form-item>
<el-form-item label="教学目标(健康)" prop="jxmbJk">
<el-input v-model="form.jxmbJk" placeholder="请输入教学目标(健康)" />
</el-form-item>
<el-form-item label="教学目标(科学)" prop="jxmbKx">
<el-input v-model="form.jxmbKx" placeholder="请输入教学目标(科学)" />
</el-form-item>
<el-form-item label="教学目标(艺术)" prop="jxmbYs">
<el-input v-model="form.jxmbYs" placeholder="请输入教学目标(艺术)" />
</el-form-item>
<el-form-item label="创建人" prop="createuserid">
<el-input v-model="form.createuserid" placeholder="请输入创建人" />
</el-form-item>
<el-form-item label="当前状态">
<el-radio-group v-model="form.status">
<el-radio label="1">请选择字典生成</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="审核人" prop="shrid">
<el-input v-model="form.shrid" placeholder="请输入审核人" />
</el-form-item>
<el-form-item label="审核时间" prop="shtime">
<el-date-picker
clearable
size="small"
style="width: 200px"
v-model="form.shtime"
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 {
listPlanweek,
getPlanweek,
delPlanweek,
addPlanweek,
updatePlanweek,
exportPlanweek,
} from "@/api/benyi/planweek";
export default {
name: "Planweek",
data() {
return {
// 遮罩层
loading: true,
// 选中数组
ids: [],
// 非单个禁用
single: true,
// 非多个禁用
multiple: true,
// 总条数
total: 0,
// 周计划(家长和教育部门)表格数据
planweekList: [],
// 弹出层标题
title: "",
// 是否显示弹出层
open: false,
// 查询参数
queryParams: {
pageNum: 1,
pageSize: 10,
schoolid: undefined,
classid: undefined,
name: undefined,
starttime: undefined,
endtime: undefined,
themeofweek: undefined,
jxmbSh: undefined,
jxmbYy: undefined,
jxmbJk: undefined,
jxmbKx: undefined,
jxmbYs: undefined,
createuserid: undefined,
status: undefined,
shrid: undefined,
shtime: undefined,
},
// 表单参数
form: {},
// 表单校验
rules: {},
};
},
created() {
this.getList();
},
methods: {
/** 查询周计划(家长和教育部门)列表 */
getList() {
this.loading = true;
listPlanweek(this.queryParams).then((response) => {
this.planweekList = response.rows;
this.total = response.total;
this.loading = false;
});
},
// 取消按钮
cancel() {
this.open = false;
this.reset();
},
// 表单重置
reset() {
this.form = {
id: undefined,
schoolid: undefined,
classid: undefined,
name: undefined,
starttime: undefined,
endtime: undefined,
themeofweek: undefined,
jxmbSh: undefined,
jxmbYy: undefined,
jxmbJk: undefined,
jxmbKx: undefined,
jxmbYs: undefined,
createuserid: undefined,
createTime: undefined,
status: "0",
shrid: undefined,
shtime: 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;
getPlanweek(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) {
updatePlanweek(this.form).then((response) => {
if (response.code === 200) {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
}
});
} else {
addPlanweek(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 delPlanweek(ids);
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
})
.catch(function () {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm("是否确认导出所有周计划(家长和教育部门)数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return exportPlanweek(queryParams);
})
.then((response) => {
this.download(response.msg);
})
.catch(function () {});
},
},
};
</script>

View File

@ -0,0 +1,97 @@
package com.ruoyi.project.benyi.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.project.benyi.domain.ByPlanweek;
import com.ruoyi.project.benyi.service.IByPlanweekService;
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-08-24
*/
@RestController
@RequestMapping("/benyi/planweek")
public class ByPlanweekController extends BaseController {
@Autowired
private IByPlanweekService byPlanweekService;
/**
* 查询周计划(家长和教育部门)列表
*/
@PreAuthorize("@ss.hasPermi('benyi:planweek:list')")
@GetMapping("/list")
public TableDataInfo list(ByPlanweek byPlanweek) {
startPage();
List<ByPlanweek> list = byPlanweekService.selectByPlanweekList(byPlanweek);
return getDataTable(list);
}
/**
* 导出周计划(家长和教育部门)列表
*/
@PreAuthorize("@ss.hasPermi('benyi:planweek:export')")
@Log(title = "周计划(家长和教育部门)", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(ByPlanweek byPlanweek) {
List<ByPlanweek> list = byPlanweekService.selectByPlanweekList(byPlanweek);
ExcelUtil<ByPlanweek> util = new ExcelUtil<ByPlanweek>(ByPlanweek.class);
return util.exportExcel(list, "planweek");
}
/**
* 获取周计划(家长和教育部门)详细信息
*/
@PreAuthorize("@ss.hasPermi('benyi:planweek:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return AjaxResult.success(byPlanweekService.selectByPlanweekById(id));
}
/**
* 新增周计划(家长和教育部门)
*/
@PreAuthorize("@ss.hasPermi('benyi:planweek:add')")
@Log(title = "周计划(家长和教育部门)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ByPlanweek byPlanweek) {
return toAjax(byPlanweekService.insertByPlanweek(byPlanweek));
}
/**
* 修改周计划(家长和教育部门)
*/
@PreAuthorize("@ss.hasPermi('benyi:planweek:edit')")
@Log(title = "周计划(家长和教育部门)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ByPlanweek byPlanweek) {
return toAjax(byPlanweekService.updateByPlanweek(byPlanweek));
}
/**
* 删除周计划(家长和教育部门)
*/
@PreAuthorize("@ss.hasPermi('benyi:planweek:remove')")
@Log(title = "周计划(家长和教育部门)", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(byPlanweekService.deleteByPlanweekByIds(ids));
}
}

View File

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

View File

@ -0,0 +1,268 @@
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_planweek
*
* @author tsbz
* @date 2020-08-24
*/
public class ByPlanweek extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 编号
*/
private Long id;
/**
* 学校id
*/
@Excel(name = "学校id")
private Long schoolid;
/**
* 班级id
*/
@Excel(name = "班级id")
private String classid;
/**
* 计划名称
*/
@Excel(name = "计划名称")
private String name;
/**
* 开始时间
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date starttime;
/**
* 结束时间
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date endtime;
/**
* 本周主题
*/
@Excel(name = "本周主题")
private String themeofweek;
/**
* 教学目标(社会)
*/
@Excel(name = "教学目标(社会)")
private String jxmbSh;
/**
* 教学目标(语言)
*/
@Excel(name = "教学目标(语言)")
private String jxmbYy;
/**
* 教学目标(健康)
*/
@Excel(name = "教学目标(健康)")
private String jxmbJk;
/**
* 教学目标(科学)
*/
@Excel(name = "教学目标(科学)")
private String jxmbKx;
/**
* 教学目标(艺术)
*/
@Excel(name = "教学目标(艺术)")
private String jxmbYs;
/**
* 创建人
*/
@Excel(name = "创建人")
private Long createuserid;
/**
* 当前状态
*/
@Excel(name = "当前状态")
private String status;
/**
* 审核人
*/
@Excel(name = "审核人")
private Long shrid;
/**
* 审核时间
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date shtime;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setSchoolid(Long schoolid) {
this.schoolid = schoolid;
}
public Long getSchoolid() {
return schoolid;
}
public void setClassid(String classid) {
this.classid = classid;
}
public String getClassid() {
return classid;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setStarttime(Date starttime) {
this.starttime = starttime;
}
public Date getStarttime() {
return starttime;
}
public void setEndtime(Date endtime) {
this.endtime = endtime;
}
public Date getEndtime() {
return endtime;
}
public void setThemeofweek(String themeofweek) {
this.themeofweek = themeofweek;
}
public String getThemeofweek() {
return themeofweek;
}
public void setJxmbSh(String jxmbSh) {
this.jxmbSh = jxmbSh;
}
public String getJxmbSh() {
return jxmbSh;
}
public void setJxmbYy(String jxmbYy) {
this.jxmbYy = jxmbYy;
}
public String getJxmbYy() {
return jxmbYy;
}
public void setJxmbJk(String jxmbJk) {
this.jxmbJk = jxmbJk;
}
public String getJxmbJk() {
return jxmbJk;
}
public void setJxmbKx(String jxmbKx) {
this.jxmbKx = jxmbKx;
}
public String getJxmbKx() {
return jxmbKx;
}
public void setJxmbYs(String jxmbYs) {
this.jxmbYs = jxmbYs;
}
public String getJxmbYs() {
return jxmbYs;
}
public void setCreateuserid(Long createuserid) {
this.createuserid = createuserid;
}
public Long getCreateuserid() {
return createuserid;
}
public void setStatus(String status) {
this.status = status;
}
public String getStatus() {
return status;
}
public void setShrid(Long shrid) {
this.shrid = shrid;
}
public Long getShrid() {
return shrid;
}
public void setShtime(Date shtime) {
this.shtime = shtime;
}
public Date getShtime() {
return shtime;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("schoolid", getSchoolid())
.append("classid", getClassid())
.append("name", getName())
.append("starttime", getStarttime())
.append("endtime", getEndtime())
.append("themeofweek", getThemeofweek())
.append("jxmbSh", getJxmbSh())
.append("jxmbYy", getJxmbYy())
.append("jxmbJk", getJxmbJk())
.append("jxmbKx", getJxmbKx())
.append("jxmbYs", getJxmbYs())
.append("createuserid", getCreateuserid())
.append("createTime", getCreateTime())
.append("status", getStatus())
.append("shrid", getShrid())
.append("shtime", getShtime())
.toString();
}
}

View File

@ -0,0 +1,132 @@
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_planweekitem
*
* @author tsbz
* @date 2020-08-24
*/
public class ByPlanweekitem extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 编号
*/
private Long id;
/**
* 所属计划
*/
@Excel(name = "所属计划")
private Long wid;
/**
* 活动类型
*/
@Excel(name = "活动类型")
private String activitytype;
/**
* 活动内容
*/
@Excel(name = "活动内容")
private String content;
/**
* 活动时间
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "活动时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date activitytime;
/**
* 创建人
*/
@Excel(name = "创建人")
private Long createuserid;
/**
* 修改人
*/
@Excel(name = "修改人")
private Long updateuserid;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setWid(Long wid) {
this.wid = wid;
}
public Long getWid() {
return wid;
}
public void setActivitytype(String activitytype) {
this.activitytype = activitytype;
}
public String getActivitytype() {
return activitytype;
}
public void setContent(String content) {
this.content = content;
}
public String getContent() {
return content;
}
public void setActivitytime(Date activitytime) {
this.activitytime = activitytime;
}
public Date getActivitytime() {
return activitytime;
}
public void setCreateuserid(Long createuserid) {
this.createuserid = createuserid;
}
public Long getCreateuserid() {
return createuserid;
}
public void setUpdateuserid(Long updateuserid) {
this.updateuserid = updateuserid;
}
public Long getUpdateuserid() {
return updateuserid;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("wid", getWid())
.append("activitytype", getActivitytype())
.append("content", getContent())
.append("activitytime", getActivitytime())
.append("createuserid", getCreateuserid())
.append("createTime", getCreateTime())
.append("updateuserid", getUpdateuserid())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.project.benyi.mapper;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByPlanweek;
/**
* 周计划(家长和教育部门)Mapper接口
*
* @author tsbz
* @date 2020-08-24
*/
public interface ByPlanweekMapper
{
/**
* 查询周计划(家长和教育部门)
*
* @param id 周计划(家长和教育部门)ID
* @return 周计划(家长和教育部门)
*/
public ByPlanweek selectByPlanweekById(Long id);
/**
* 查询周计划(家长和教育部门)列表
*
* @param byPlanweek 周计划(家长和教育部门)
* @return 周计划(家长和教育部门)集合
*/
public List<ByPlanweek> selectByPlanweekList(ByPlanweek byPlanweek);
/**
* 新增周计划(家长和教育部门)
*
* @param byPlanweek 周计划(家长和教育部门)
* @return 结果
*/
public int insertByPlanweek(ByPlanweek byPlanweek);
/**
* 修改周计划(家长和教育部门)
*
* @param byPlanweek 周计划(家长和教育部门)
* @return 结果
*/
public int updateByPlanweek(ByPlanweek byPlanweek);
/**
* 删除周计划(家长和教育部门)
*
* @param id 周计划(家长和教育部门)ID
* @return 结果
*/
public int deleteByPlanweekById(Long id);
/**
* 批量删除周计划(家长和教育部门)
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteByPlanweekByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.project.benyi.mapper;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByPlanweekitem;
/**
* 周计划(家长和教育部门细化)Mapper接口
*
* @author tsbz
* @date 2020-08-24
*/
public interface ByPlanweekitemMapper
{
/**
* 查询周计划(家长和教育部门细化)
*
* @param id 周计划(家长和教育部门细化)ID
* @return 周计划(家长和教育部门细化)
*/
public ByPlanweekitem selectByPlanweekitemById(Long id);
/**
* 查询周计划(家长和教育部门细化)列表
*
* @param byPlanweekitem 周计划(家长和教育部门细化)
* @return 周计划(家长和教育部门细化)集合
*/
public List<ByPlanweekitem> selectByPlanweekitemList(ByPlanweekitem byPlanweekitem);
/**
* 新增周计划(家长和教育部门细化)
*
* @param byPlanweekitem 周计划(家长和教育部门细化)
* @return 结果
*/
public int insertByPlanweekitem(ByPlanweekitem byPlanweekitem);
/**
* 修改周计划(家长和教育部门细化)
*
* @param byPlanweekitem 周计划(家长和教育部门细化)
* @return 结果
*/
public int updateByPlanweekitem(ByPlanweekitem byPlanweekitem);
/**
* 删除周计划(家长和教育部门细化)
*
* @param id 周计划(家长和教育部门细化)ID
* @return 结果
*/
public int deleteByPlanweekitemById(Long id);
/**
* 批量删除周计划(家长和教育部门细化)
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteByPlanweekitemByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.project.benyi.service;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByPlanweek;
/**
* 周计划(家长和教育部门)Service接口
*
* @author tsbz
* @date 2020-08-24
*/
public interface IByPlanweekService {
/**
* 查询周计划(家长和教育部门)
*
* @param id 周计划(家长和教育部门)ID
* @return 周计划(家长和教育部门)
*/
public ByPlanweek selectByPlanweekById(Long id);
/**
* 查询周计划(家长和教育部门)列表
*
* @param byPlanweek 周计划(家长和教育部门)
* @return 周计划(家长和教育部门)集合
*/
public List<ByPlanweek> selectByPlanweekList(ByPlanweek byPlanweek);
/**
* 新增周计划(家长和教育部门)
*
* @param byPlanweek 周计划(家长和教育部门)
* @return 结果
*/
public int insertByPlanweek(ByPlanweek byPlanweek);
/**
* 修改周计划(家长和教育部门)
*
* @param byPlanweek 周计划(家长和教育部门)
* @return 结果
*/
public int updateByPlanweek(ByPlanweek byPlanweek);
/**
* 批量删除周计划(家长和教育部门)
*
* @param ids 需要删除的周计划(家长和教育部门)ID
* @return 结果
*/
public int deleteByPlanweekByIds(Long[] ids);
/**
* 删除周计划(家长和教育部门)信息
*
* @param id 周计划(家长和教育部门)ID
* @return 结果
*/
public int deleteByPlanweekById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.project.benyi.service;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByPlanweekitem;
/**
* 周计划(家长和教育部门细化)Service接口
*
* @author tsbz
* @date 2020-08-24
*/
public interface IByPlanweekitemService {
/**
* 查询周计划(家长和教育部门细化)
*
* @param id 周计划(家长和教育部门细化)ID
* @return 周计划(家长和教育部门细化)
*/
public ByPlanweekitem selectByPlanweekitemById(Long id);
/**
* 查询周计划(家长和教育部门细化)列表
*
* @param byPlanweekitem 周计划(家长和教育部门细化)
* @return 周计划(家长和教育部门细化)集合
*/
public List<ByPlanweekitem> selectByPlanweekitemList(ByPlanweekitem byPlanweekitem);
/**
* 新增周计划(家长和教育部门细化)
*
* @param byPlanweekitem 周计划(家长和教育部门细化)
* @return 结果
*/
public int insertByPlanweekitem(ByPlanweekitem byPlanweekitem);
/**
* 修改周计划(家长和教育部门细化)
*
* @param byPlanweekitem 周计划(家长和教育部门细化)
* @return 结果
*/
public int updateByPlanweekitem(ByPlanweekitem byPlanweekitem);
/**
* 批量删除周计划(家长和教育部门细化)
*
* @param ids 需要删除的周计划(家长和教育部门细化)ID
* @return 结果
*/
public int deleteByPlanweekitemByIds(Long[] ids);
/**
* 删除周计划(家长和教育部门细化)信息
*
* @param id 周计划(家长和教育部门细化)ID
* @return 结果
*/
public int deleteByPlanweekitemById(Long id);
}

View File

@ -0,0 +1,89 @@
package com.ruoyi.project.benyi.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.benyi.mapper.ByPlanweekMapper;
import com.ruoyi.project.benyi.domain.ByPlanweek;
import com.ruoyi.project.benyi.service.IByPlanweekService;
/**
* 周计划(家长和教育部门)Service业务层处理
*
* @author tsbz
* @date 2020-08-24
*/
@Service
public class ByPlanweekServiceImpl implements IByPlanweekService {
@Autowired
private ByPlanweekMapper byPlanweekMapper;
/**
* 查询周计划(家长和教育部门)
*
* @param id 周计划(家长和教育部门)ID
* @return 周计划(家长和教育部门)
*/
@Override
public ByPlanweek selectByPlanweekById(Long id) {
return byPlanweekMapper.selectByPlanweekById(id);
}
/**
* 查询周计划(家长和教育部门)列表
*
* @param byPlanweek 周计划(家长和教育部门)
* @return 周计划(家长和教育部门)
*/
@Override
public List<ByPlanweek> selectByPlanweekList(ByPlanweek byPlanweek) {
return byPlanweekMapper.selectByPlanweekList(byPlanweek);
}
/**
* 新增周计划(家长和教育部门)
*
* @param byPlanweek 周计划(家长和教育部门)
* @return 结果
*/
@Override
public int insertByPlanweek(ByPlanweek byPlanweek) {
byPlanweek.setCreateTime(DateUtils.getNowDate());
return byPlanweekMapper.insertByPlanweek(byPlanweek);
}
/**
* 修改周计划(家长和教育部门)
*
* @param byPlanweek 周计划(家长和教育部门)
* @return 结果
*/
@Override
public int updateByPlanweek(ByPlanweek byPlanweek) {
return byPlanweekMapper.updateByPlanweek(byPlanweek);
}
/**
* 批量删除周计划(家长和教育部门)
*
* @param ids 需要删除的周计划(家长和教育部门)ID
* @return 结果
*/
@Override
public int deleteByPlanweekByIds(Long[] ids) {
return byPlanweekMapper.deleteByPlanweekByIds(ids);
}
/**
* 删除周计划(家长和教育部门)信息
*
* @param id 周计划(家长和教育部门)ID
* @return 结果
*/
@Override
public int deleteByPlanweekById(Long id) {
return byPlanweekMapper.deleteByPlanweekById(id);
}
}

View File

@ -0,0 +1,90 @@
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.ByPlanweekitemMapper;
import com.ruoyi.project.benyi.domain.ByPlanweekitem;
import com.ruoyi.project.benyi.service.IByPlanweekitemService;
/**
* 周计划(家长和教育部门细化)Service业务层处理
*
* @author tsbz
* @date 2020-08-24
*/
@Service
public class ByPlanweekitemServiceImpl implements IByPlanweekitemService {
@Autowired
private ByPlanweekitemMapper byPlanweekitemMapper;
/**
* 查询周计划(家长和教育部门细化)
*
* @param id 周计划(家长和教育部门细化)ID
* @return 周计划(家长和教育部门细化)
*/
@Override
public ByPlanweekitem selectByPlanweekitemById(Long id) {
return byPlanweekitemMapper.selectByPlanweekitemById(id);
}
/**
* 查询周计划(家长和教育部门细化)列表
*
* @param byPlanweekitem 周计划(家长和教育部门细化)
* @return 周计划(家长和教育部门细化)
*/
@Override
public List<ByPlanweekitem> selectByPlanweekitemList(ByPlanweekitem byPlanweekitem) {
return byPlanweekitemMapper.selectByPlanweekitemList(byPlanweekitem);
}
/**
* 新增周计划(家长和教育部门细化)
*
* @param byPlanweekitem 周计划(家长和教育部门细化)
* @return 结果
*/
@Override
public int insertByPlanweekitem(ByPlanweekitem byPlanweekitem) {
byPlanweekitem.setCreateTime(DateUtils.getNowDate());
return byPlanweekitemMapper.insertByPlanweekitem(byPlanweekitem);
}
/**
* 修改周计划(家长和教育部门细化)
*
* @param byPlanweekitem 周计划(家长和教育部门细化)
* @return 结果
*/
@Override
public int updateByPlanweekitem(ByPlanweekitem byPlanweekitem) {
byPlanweekitem.setUpdateTime(DateUtils.getNowDate());
return byPlanweekitemMapper.updateByPlanweekitem(byPlanweekitem);
}
/**
* 批量删除周计划(家长和教育部门细化)
*
* @param ids 需要删除的周计划(家长和教育部门细化)ID
* @return 结果
*/
@Override
public int deleteByPlanweekitemByIds(Long[] ids) {
return byPlanweekitemMapper.deleteByPlanweekitemByIds(ids);
}
/**
* 删除周计划(家长和教育部门细化)信息
*
* @param id 周计划(家长和教育部门细化)ID
* @return 结果
*/
@Override
public int deleteByPlanweekitemById(Long id) {
return byPlanweekitemMapper.deleteByPlanweekitemById(id);
}
}

View 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.ByPlanweekMapper">
<resultMap type="ByPlanweek" id="ByPlanweekResult">
<result property="id" column="id"/>
<result property="schoolid" column="schoolid"/>
<result property="classid" column="classid"/>
<result property="name" column="name"/>
<result property="starttime" column="starttime"/>
<result property="endtime" column="endtime"/>
<result property="themeofweek" column="themeofweek"/>
<result property="jxmbSh" column="jxmb_sh"/>
<result property="jxmbYy" column="jxmb_yy"/>
<result property="jxmbJk" column="jxmb_jk"/>
<result property="jxmbKx" column="jxmb_kx"/>
<result property="jxmbYs" column="jxmb_ys"/>
<result property="createuserid" column="createuserid"/>
<result property="createTime" column="create_time"/>
<result property="status" column="status"/>
<result property="shrid" column="shrid"/>
<result property="shtime" column="shtime"/>
</resultMap>
<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
</sql>
<select id="selectByPlanweekList" parameterType="ByPlanweek" resultMap="ByPlanweekResult">
<include refid="selectByPlanweekVo"/>
<where>
<if test="schoolid != null ">and schoolid = #{schoolid}</if>
<if test="classid != null and classid != ''">and classid = #{classid}</if>
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
<if test="starttime != null ">and starttime = #{starttime}</if>
<if test="endtime != null ">and endtime = #{endtime}</if>
<if test="themeofweek != null and themeofweek != ''">and themeofweek = #{themeofweek}</if>
<if test="jxmbSh != null and jxmbSh != ''">and jxmb_sh = #{jxmbSh}</if>
<if test="jxmbYy != null and jxmbYy != ''">and jxmb_yy = #{jxmbYy}</if>
<if test="jxmbJk != null and jxmbJk != ''">and jxmb_jk = #{jxmbJk}</if>
<if test="jxmbKx != null and jxmbKx != ''">and jxmb_kx = #{jxmbKx}</if>
<if test="jxmbYs != null and jxmbYs != ''">and jxmb_ys = #{jxmbYs}</if>
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
<if test="status != null and status != ''">and status = #{status}</if>
<if test="shrid != null ">and shrid = #{shrid}</if>
<if test="shtime != null ">and shtime = #{shtime}</if>
</where>
</select>
<select id="selectByPlanweekById" parameterType="Long" resultMap="ByPlanweekResult">
<include refid="selectByPlanweekVo"/>
where id = #{id}
</select>
<insert id="insertByPlanweek" parameterType="ByPlanweek" useGeneratedKeys="true" keyProperty="id">
insert into by_planweek
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="schoolid != null ">schoolid,</if>
<if test="classid != null and classid != ''">classid,</if>
<if test="name != null and name != ''">name,</if>
<if test="starttime != null ">starttime,</if>
<if test="endtime != null ">endtime,</if>
<if test="themeofweek != null and themeofweek != ''">themeofweek,</if>
<if test="jxmbSh != null and jxmbSh != ''">jxmb_sh,</if>
<if test="jxmbYy != null and jxmbYy != ''">jxmb_yy,</if>
<if test="jxmbJk != null and jxmbJk != ''">jxmb_jk,</if>
<if test="jxmbKx != null and jxmbKx != ''">jxmb_kx,</if>
<if test="jxmbYs != null and jxmbYs != ''">jxmb_ys,</if>
<if test="createuserid != null ">createuserid,</if>
<if test="createTime != null ">create_time,</if>
<if test="status != null and status != ''">status,</if>
<if test="shrid != null ">shrid,</if>
<if test="shtime != null ">shtime,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="schoolid != null ">#{schoolid},</if>
<if test="classid != null and classid != ''">#{classid},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="starttime != null ">#{starttime},</if>
<if test="endtime != null ">#{endtime},</if>
<if test="themeofweek != null and themeofweek != ''">#{themeofweek},</if>
<if test="jxmbSh != null and jxmbSh != ''">#{jxmbSh},</if>
<if test="jxmbYy != null and jxmbYy != ''">#{jxmbYy},</if>
<if test="jxmbJk != null and jxmbJk != ''">#{jxmbJk},</if>
<if test="jxmbKx != null and jxmbKx != ''">#{jxmbKx},</if>
<if test="jxmbYs != null and jxmbYs != ''">#{jxmbYs},</if>
<if test="createuserid != null ">#{createuserid},</if>
<if test="createTime != null ">#{createTime},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="shrid != null ">#{shrid},</if>
<if test="shtime != null ">#{shtime},</if>
</trim>
</insert>
<update id="updateByPlanweek" parameterType="ByPlanweek">
update by_planweek
<trim prefix="SET" suffixOverrides=",">
<if test="schoolid != null ">schoolid = #{schoolid},</if>
<if test="classid != null and classid != ''">classid = #{classid},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="starttime != null ">starttime = #{starttime},</if>
<if test="endtime != null ">endtime = #{endtime},</if>
<if test="themeofweek != null and themeofweek != ''">themeofweek = #{themeofweek},</if>
<if test="jxmbSh != null and jxmbSh != ''">jxmb_sh = #{jxmbSh},</if>
<if test="jxmbYy != null and jxmbYy != ''">jxmb_yy = #{jxmbYy},</if>
<if test="jxmbJk != null and jxmbJk != ''">jxmb_jk = #{jxmbJk},</if>
<if test="jxmbKx != null and jxmbKx != ''">jxmb_kx = #{jxmbKx},</if>
<if test="jxmbYs != null and jxmbYs != ''">jxmb_ys = #{jxmbYs},</if>
<if test="createuserid != null ">createuserid = #{createuserid},</if>
<if test="createTime != null ">create_time = #{createTime},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="shrid != null ">shrid = #{shrid},</if>
<if test="shtime != null ">shtime = #{shtime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteByPlanweekById" parameterType="Long">
delete from by_planweek where id = #{id}
</delete>
<delete id="deleteByPlanweekByIds" parameterType="String">
delete from by_planweek where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,90 @@
<?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.ByPlanweekitemMapper">
<resultMap type="ByPlanweekitem" id="ByPlanweekitemResult">
<result property="id" column="id"/>
<result property="wid" column="wid"/>
<result property="activitytype" column="activitytype"/>
<result property="content" column="content"/>
<result property="activitytime" column="activitytime"/>
<result property="createuserid" column="createuserid"/>
<result property="createTime" column="create_time"/>
<result property="updateuserid" column="updateuserid"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<sql id="selectByPlanweekitemVo">
select id, wid, activitytype, content, activitytime, createuserid, create_time, updateuserid, update_time from by_planweekitem
</sql>
<select id="selectByPlanweekitemList" parameterType="ByPlanweekitem" resultMap="ByPlanweekitemResult">
<include refid="selectByPlanweekitemVo"/>
<where>
<if test="wid != null ">and wid = #{wid}</if>
<if test="activitytype != null and activitytype != ''">and activitytype = #{activitytype}</if>
<if test="content != null and content != ''">and content = #{content}</if>
<if test="activitytime != null ">and activitytime = #{activitytime}</if>
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
<if test="updateuserid != null ">and updateuserid = #{updateuserid}</if>
</where>
</select>
<select id="selectByPlanweekitemById" parameterType="Long" resultMap="ByPlanweekitemResult">
<include refid="selectByPlanweekitemVo"/>
where id = #{id}
</select>
<insert id="insertByPlanweekitem" parameterType="ByPlanweekitem" useGeneratedKeys="true" keyProperty="id">
insert into by_planweekitem
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="wid != null ">wid,</if>
<if test="activitytype != null and activitytype != ''">activitytype,</if>
<if test="content != null and content != ''">content,</if>
<if test="activitytime != null ">activitytime,</if>
<if test="createuserid != null ">createuserid,</if>
<if test="createTime != null ">create_time,</if>
<if test="updateuserid != null ">updateuserid,</if>
<if test="updateTime != null ">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="wid != null ">#{wid},</if>
<if test="activitytype != null and activitytype != ''">#{activitytype},</if>
<if test="content != null and content != ''">#{content},</if>
<if test="activitytime != null ">#{activitytime},</if>
<if test="createuserid != null ">#{createuserid},</if>
<if test="createTime != null ">#{createTime},</if>
<if test="updateuserid != null ">#{updateuserid},</if>
<if test="updateTime != null ">#{updateTime},</if>
</trim>
</insert>
<update id="updateByPlanweekitem" parameterType="ByPlanweekitem">
update by_planweekitem
<trim prefix="SET" suffixOverrides=",">
<if test="wid != null ">wid = #{wid},</if>
<if test="activitytype != null and activitytype != ''">activitytype = #{activitytype},</if>
<if test="content != null and content != ''">content = #{content},</if>
<if test="activitytime != null ">activitytime = #{activitytime},</if>
<if test="createuserid != null ">createuserid = #{createuserid},</if>
<if test="createTime != null ">create_time = #{createTime},</if>
<if test="updateuserid != null ">updateuserid = #{updateuserid},</if>
<if test="updateTime != null ">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteByPlanweekitemById" parameterType="Long">
delete from by_planweekitem where id = #{id}
</delete>
<delete id="deleteByPlanweekitemByIds" parameterType="String">
delete from by_planweekitem where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>