幼儿园一日流程评估计划
This commit is contained in:
parent
e83d4754cb
commit
9a8ee1e067
53
ruoyi-ui/src/api/benyi/dayflowassessmentplan.js
Normal file
53
ruoyi-ui/src/api/benyi/dayflowassessmentplan.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询幼儿园一日流程评估计划列表
|
||||
export function listDayflowassessmentplan(query) {
|
||||
return request({
|
||||
url: '/benyi/dayflowassessmentplan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询幼儿园一日流程评估计划详细
|
||||
export function getDayflowassessmentplan(id) {
|
||||
return request({
|
||||
url: '/benyi/dayflowassessmentplan/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增幼儿园一日流程评估计划
|
||||
export function addDayflowassessmentplan(data) {
|
||||
return request({
|
||||
url: '/benyi/dayflowassessmentplan',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改幼儿园一日流程评估计划
|
||||
export function updateDayflowassessmentplan(data) {
|
||||
return request({
|
||||
url: '/benyi/dayflowassessmentplan',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除幼儿园一日流程评估计划
|
||||
export function delDayflowassessmentplan(id) {
|
||||
return request({
|
||||
url: '/benyi/dayflowassessmentplan/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出幼儿园一日流程评估计划
|
||||
export function exportDayflowassessmentplan(query) {
|
||||
return request({
|
||||
url: '/benyi/dayflowassessmentplan/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
356
ruoyi-ui/src/views/benyi/dayflowassessmentplan/index.vue
Normal file
356
ruoyi-ui/src/views/benyi/dayflowassessmentplan/index.vue
Normal file
@ -0,0 +1,356 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
:inline="true"
|
||||
label-width="70px"
|
||||
>
|
||||
<el-form-item label="评估月份" prop="month">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="queryParams.month"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择评估月份"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="学年学期" prop="xnxq">
|
||||
<el-input
|
||||
v-model="queryParams.xnxq"
|
||||
placeholder="请输入评估学年学期"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="评估班级" prop="classid">
|
||||
<el-input
|
||||
v-model="queryParams.classid"
|
||||
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:dayflowassessmentplan: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:dayflowassessmentplan: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:dayflowassessmentplan:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="dayflowassessmentplanList"
|
||||
@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="deptId" />
|
||||
<el-table-column label="评估月份" align="center" prop="month" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.month, "{y}-{m}-{d}") }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="评估学年学期" align="center" prop="xnxq" />
|
||||
<el-table-column label="评估班级" align="center" prop="classid" />
|
||||
<el-table-column label="评估内容" align="center" prop="connent" />
|
||||
<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="createUserid" />
|
||||
<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:dayflowassessmentplan:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['benyi:dayflowassessmentplan: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="deptId">
|
||||
<el-input v-model="form.deptId" placeholder="请输入评估学校" />
|
||||
</el-form-item>
|
||||
<el-form-item label="评估月份" prop="month">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.month"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择评估月份"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="学年学期" prop="xnxq">
|
||||
<el-input v-model="form.xnxq" placeholder="请输入评估学年学期" />
|
||||
</el-form-item>
|
||||
<el-form-item label="评估班级" prop="classid">
|
||||
<el-input v-model="form.classid" placeholder="请输入评估班级" />
|
||||
</el-form-item>
|
||||
<el-form-item label="评估内容" prop="connent">
|
||||
<el-input v-model="form.connent" 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>
|
||||
<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 {
|
||||
listDayflowassessmentplan,
|
||||
getDayflowassessmentplan,
|
||||
delDayflowassessmentplan,
|
||||
addDayflowassessmentplan,
|
||||
updateDayflowassessmentplan,
|
||||
} from "@/api/benyi/dayflowassessmentplan";
|
||||
|
||||
export default {
|
||||
name: "Dayflowassessmentplan",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 幼儿园一日流程评估计划表格数据
|
||||
dayflowassessmentplanList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
deptId: undefined,
|
||||
month: undefined,
|
||||
xnxq: undefined,
|
||||
classid: undefined,
|
||||
connent: undefined,
|
||||
starttime: undefined,
|
||||
createUserid: undefined,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询幼儿园一日流程评估计划列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listDayflowassessmentplan(this.queryParams).then((response) => {
|
||||
this.dayflowassessmentplanList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: undefined,
|
||||
deptId: undefined,
|
||||
month: undefined,
|
||||
xnxq: undefined,
|
||||
classid: undefined,
|
||||
connent: undefined,
|
||||
starttime: undefined,
|
||||
createUserid: undefined,
|
||||
createTime: undefined,
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length != 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加幼儿园一日流程评估计划";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
getDayflowassessmentplan(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) {
|
||||
updateDayflowassessmentplan(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addDayflowassessmentplan(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 delDayflowassessmentplan(ids);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(function () {});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
@ -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.ByDayflowassessmentplan;
|
||||
import com.ruoyi.project.benyi.service.IByDayflowassessmentplanService;
|
||||
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 2021-02-01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/benyi/dayflowassessmentplan")
|
||||
public class ByDayflowassessmentplanController extends BaseController {
|
||||
@Autowired
|
||||
private IByDayflowassessmentplanService byDayflowassessmentplanService;
|
||||
|
||||
/**
|
||||
* 查询幼儿园一日流程评估计划列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessmentplan:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ByDayflowassessmentplan byDayflowassessmentplan) {
|
||||
startPage();
|
||||
List<ByDayflowassessmentplan> list = byDayflowassessmentplanService.selectByDayflowassessmentplanList(byDayflowassessmentplan);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出幼儿园一日流程评估计划列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessmentplan:export')")
|
||||
@Log(title = "幼儿园一日流程评估计划", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ByDayflowassessmentplan byDayflowassessmentplan) {
|
||||
List<ByDayflowassessmentplan> list = byDayflowassessmentplanService.selectByDayflowassessmentplanList(byDayflowassessmentplan);
|
||||
ExcelUtil<ByDayflowassessmentplan> util = new ExcelUtil<ByDayflowassessmentplan>(ByDayflowassessmentplan.class);
|
||||
return util.exportExcel(list, "dayflowassessmentplan");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取幼儿园一日流程评估计划详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessmentplan:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(byDayflowassessmentplanService.selectByDayflowassessmentplanById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增幼儿园一日流程评估计划
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessmentplan:add')")
|
||||
@Log(title = "幼儿园一日流程评估计划", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ByDayflowassessmentplan byDayflowassessmentplan) {
|
||||
return toAjax(byDayflowassessmentplanService.insertByDayflowassessmentplan(byDayflowassessmentplan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改幼儿园一日流程评估计划
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessmentplan:edit')")
|
||||
@Log(title = "幼儿园一日流程评估计划", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ByDayflowassessmentplan byDayflowassessmentplan) {
|
||||
return toAjax(byDayflowassessmentplanService.updateByDayflowassessmentplan(byDayflowassessmentplan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除幼儿园一日流程评估计划
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessmentplan:remove')")
|
||||
@Log(title = "幼儿园一日流程评估计划", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(byDayflowassessmentplanService.deleteByDayflowassessmentplanByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,147 @@
|
||||
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_dayflowassessmentplan
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2021-02-01
|
||||
*/
|
||||
public class ByDayflowassessmentplan extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 评估学校
|
||||
*/
|
||||
@Excel(name = "评估学校")
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 评估月份
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "评估月份", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date month;
|
||||
|
||||
/**
|
||||
* 评估学年学期
|
||||
*/
|
||||
@Excel(name = "评估学年学期")
|
||||
private String xnxq;
|
||||
|
||||
/**
|
||||
* 评估班级
|
||||
*/
|
||||
@Excel(name = "评估班级")
|
||||
private String classid;
|
||||
|
||||
/**
|
||||
* 评估内容
|
||||
*/
|
||||
@Excel(name = "评估内容")
|
||||
private String connent;
|
||||
|
||||
/**
|
||||
* 评估时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "评估时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date starttime;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Excel(name = "创建人")
|
||||
private Long createUserid;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setDeptId(Long deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setMonth(Date month) {
|
||||
this.month = month;
|
||||
}
|
||||
|
||||
public Date getMonth() {
|
||||
return month;
|
||||
}
|
||||
|
||||
public void setXnxq(String xnxq) {
|
||||
this.xnxq = xnxq;
|
||||
}
|
||||
|
||||
public String getXnxq() {
|
||||
return xnxq;
|
||||
}
|
||||
|
||||
public void setClassid(String classid) {
|
||||
this.classid = classid;
|
||||
}
|
||||
|
||||
public String getClassid() {
|
||||
return classid;
|
||||
}
|
||||
|
||||
public void setConnent(String connent) {
|
||||
this.connent = connent;
|
||||
}
|
||||
|
||||
public String getConnent() {
|
||||
return connent;
|
||||
}
|
||||
|
||||
public void setStarttime(Date starttime) {
|
||||
this.starttime = starttime;
|
||||
}
|
||||
|
||||
public Date getStarttime() {
|
||||
return starttime;
|
||||
}
|
||||
|
||||
public void setCreateUserid(Long createUserid) {
|
||||
this.createUserid = createUserid;
|
||||
}
|
||||
|
||||
public Long getCreateUserid() {
|
||||
return createUserid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("deptId", getDeptId())
|
||||
.append("month", getMonth())
|
||||
.append("xnxq", getXnxq())
|
||||
.append("classid", getClassid())
|
||||
.append("connent", getConnent())
|
||||
.append("starttime", getStarttime())
|
||||
.append("createUserid", getCreateUserid())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByDayflowassessmentplan;
|
||||
|
||||
/**
|
||||
* 幼儿园一日流程评估计划Mapper接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2021-02-01
|
||||
*/
|
||||
public interface ByDayflowassessmentplanMapper {
|
||||
/**
|
||||
* 查询幼儿园一日流程评估计划
|
||||
*
|
||||
* @param id 幼儿园一日流程评估计划ID
|
||||
* @return 幼儿园一日流程评估计划
|
||||
*/
|
||||
public ByDayflowassessmentplan selectByDayflowassessmentplanById(Long id);
|
||||
|
||||
/**
|
||||
* 查询幼儿园一日流程评估计划列表
|
||||
*
|
||||
* @param byDayflowassessmentplan 幼儿园一日流程评估计划
|
||||
* @return 幼儿园一日流程评估计划集合
|
||||
*/
|
||||
public List<ByDayflowassessmentplan> selectByDayflowassessmentplanList(ByDayflowassessmentplan byDayflowassessmentplan);
|
||||
|
||||
/**
|
||||
* 新增幼儿园一日流程评估计划
|
||||
*
|
||||
* @param byDayflowassessmentplan 幼儿园一日流程评估计划
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByDayflowassessmentplan(ByDayflowassessmentplan byDayflowassessmentplan);
|
||||
|
||||
/**
|
||||
* 修改幼儿园一日流程评估计划
|
||||
*
|
||||
* @param byDayflowassessmentplan 幼儿园一日流程评估计划
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByDayflowassessmentplan(ByDayflowassessmentplan byDayflowassessmentplan);
|
||||
|
||||
/**
|
||||
* 删除幼儿园一日流程评估计划
|
||||
*
|
||||
* @param id 幼儿园一日流程评估计划ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByDayflowassessmentplanById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除幼儿园一日流程评估计划
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByDayflowassessmentplanByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByDayflowassessmentplan;
|
||||
|
||||
/**
|
||||
* 幼儿园一日流程评估计划Service接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2021-02-01
|
||||
*/
|
||||
public interface IByDayflowassessmentplanService {
|
||||
/**
|
||||
* 查询幼儿园一日流程评估计划
|
||||
*
|
||||
* @param id 幼儿园一日流程评估计划ID
|
||||
* @return 幼儿园一日流程评估计划
|
||||
*/
|
||||
public ByDayflowassessmentplan selectByDayflowassessmentplanById(Long id);
|
||||
|
||||
/**
|
||||
* 查询幼儿园一日流程评估计划列表
|
||||
*
|
||||
* @param byDayflowassessmentplan 幼儿园一日流程评估计划
|
||||
* @return 幼儿园一日流程评估计划集合
|
||||
*/
|
||||
public List<ByDayflowassessmentplan> selectByDayflowassessmentplanList(ByDayflowassessmentplan byDayflowassessmentplan);
|
||||
|
||||
/**
|
||||
* 新增幼儿园一日流程评估计划
|
||||
*
|
||||
* @param byDayflowassessmentplan 幼儿园一日流程评估计划
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByDayflowassessmentplan(ByDayflowassessmentplan byDayflowassessmentplan);
|
||||
|
||||
/**
|
||||
* 修改幼儿园一日流程评估计划
|
||||
*
|
||||
* @param byDayflowassessmentplan 幼儿园一日流程评估计划
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByDayflowassessmentplan(ByDayflowassessmentplan byDayflowassessmentplan);
|
||||
|
||||
/**
|
||||
* 批量删除幼儿园一日流程评估计划
|
||||
*
|
||||
* @param ids 需要删除的幼儿园一日流程评估计划ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByDayflowassessmentplanByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除幼儿园一日流程评估计划信息
|
||||
*
|
||||
* @param id 幼儿园一日流程评估计划ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByDayflowassessmentplanById(Long id);
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package com.ruoyi.project.benyi.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.project.benyi.mapper.ByDayflowassessmentplanMapper;
|
||||
import com.ruoyi.project.benyi.domain.ByDayflowassessmentplan;
|
||||
import com.ruoyi.project.benyi.service.IByDayflowassessmentplanService;
|
||||
|
||||
/**
|
||||
* 幼儿园一日流程评估计划Service业务层处理
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2021-02-01
|
||||
*/
|
||||
@Service
|
||||
public class ByDayflowassessmentplanServiceImpl implements IByDayflowassessmentplanService {
|
||||
@Autowired
|
||||
private ByDayflowassessmentplanMapper byDayflowassessmentplanMapper;
|
||||
|
||||
/**
|
||||
* 查询幼儿园一日流程评估计划
|
||||
*
|
||||
* @param id 幼儿园一日流程评估计划ID
|
||||
* @return 幼儿园一日流程评估计划
|
||||
*/
|
||||
@Override
|
||||
public ByDayflowassessmentplan selectByDayflowassessmentplanById(Long id) {
|
||||
return byDayflowassessmentplanMapper.selectByDayflowassessmentplanById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询幼儿园一日流程评估计划列表
|
||||
*
|
||||
* @param byDayflowassessmentplan 幼儿园一日流程评估计划
|
||||
* @return 幼儿园一日流程评估计划
|
||||
*/
|
||||
@Override
|
||||
public List<ByDayflowassessmentplan> selectByDayflowassessmentplanList(ByDayflowassessmentplan byDayflowassessmentplan) {
|
||||
return byDayflowassessmentplanMapper.selectByDayflowassessmentplanList(byDayflowassessmentplan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增幼儿园一日流程评估计划
|
||||
*
|
||||
* @param byDayflowassessmentplan 幼儿园一日流程评估计划
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertByDayflowassessmentplan(ByDayflowassessmentplan byDayflowassessmentplan) {
|
||||
byDayflowassessmentplan.setCreateTime(DateUtils.getNowDate());
|
||||
return byDayflowassessmentplanMapper.insertByDayflowassessmentplan(byDayflowassessmentplan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改幼儿园一日流程评估计划
|
||||
*
|
||||
* @param byDayflowassessmentplan 幼儿园一日流程评估计划
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateByDayflowassessmentplan(ByDayflowassessmentplan byDayflowassessmentplan) {
|
||||
return byDayflowassessmentplanMapper.updateByDayflowassessmentplan(byDayflowassessmentplan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除幼儿园一日流程评估计划
|
||||
*
|
||||
* @param ids 需要删除的幼儿园一日流程评估计划ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByDayflowassessmentplanByIds(Long[] ids) {
|
||||
return byDayflowassessmentplanMapper.deleteByDayflowassessmentplanByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除幼儿园一日流程评估计划信息
|
||||
*
|
||||
* @param id 幼儿园一日流程评估计划ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByDayflowassessmentplanById(Long id) {
|
||||
return byDayflowassessmentplanMapper.deleteByDayflowassessmentplanById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
<?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.ByDayflowassessmentplanMapper">
|
||||
|
||||
<resultMap type="ByDayflowassessmentplan" id="ByDayflowassessmentplanResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="deptId" column="dept_id"/>
|
||||
<result property="month" column="month"/>
|
||||
<result property="xnxq" column="xnxq"/>
|
||||
<result property="classid" column="classid"/>
|
||||
<result property="connent" column="connent"/>
|
||||
<result property="starttime" column="starttime"/>
|
||||
<result property="createUserid" column="create_userid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByDayflowassessmentplanVo">
|
||||
select id, dept_id, month, xnxq, classid, connent, starttime, create_userid, create_time from by_dayflowassessmentplan
|
||||
</sql>
|
||||
|
||||
<select id="selectByDayflowassessmentplanList" parameterType="ByDayflowassessmentplan"
|
||||
resultMap="ByDayflowassessmentplanResult">
|
||||
<include refid="selectByDayflowassessmentplanVo"/>
|
||||
<where>
|
||||
<if test="deptId != null ">and dept_id = #{deptId}</if>
|
||||
<if test="month != null ">and month = #{month}</if>
|
||||
<if test="xnxq != null and xnxq != ''">and xnxq = #{xnxq}</if>
|
||||
<if test="classid != null and classid != ''">and classid = #{classid}</if>
|
||||
<if test="connent != null and connent != ''">and connent = #{connent}</if>
|
||||
<if test="starttime != null ">and starttime = #{starttime}</if>
|
||||
<if test="createUserid != null ">and create_userid = #{createUserid}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByDayflowassessmentplanById" parameterType="Long" resultMap="ByDayflowassessmentplanResult">
|
||||
<include refid="selectByDayflowassessmentplanVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByDayflowassessmentplan" parameterType="ByDayflowassessmentplan" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into by_dayflowassessmentplan
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="deptId != null ">dept_id,</if>
|
||||
<if test="month != null ">month,</if>
|
||||
<if test="xnxq != null and xnxq != ''">xnxq,</if>
|
||||
<if test="classid != null and classid != ''">classid,</if>
|
||||
<if test="connent != null and connent != ''">connent,</if>
|
||||
<if test="starttime != null ">starttime,</if>
|
||||
<if test="createUserid != null ">create_userid,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="deptId != null ">#{deptId},</if>
|
||||
<if test="month != null ">#{month},</if>
|
||||
<if test="xnxq != null and xnxq != ''">#{xnxq},</if>
|
||||
<if test="classid != null and classid != ''">#{classid},</if>
|
||||
<if test="connent != null and connent != ''">#{connent},</if>
|
||||
<if test="starttime != null ">#{starttime},</if>
|
||||
<if test="createUserid != null ">#{createUserid},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByDayflowassessmentplan" parameterType="ByDayflowassessmentplan">
|
||||
update by_dayflowassessmentplan
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="deptId != null ">dept_id = #{deptId},</if>
|
||||
<if test="month != null ">month = #{month},</if>
|
||||
<if test="xnxq != null and xnxq != ''">xnxq = #{xnxq},</if>
|
||||
<if test="classid != null and classid != ''">classid = #{classid},</if>
|
||||
<if test="connent != null and connent != ''">connent = #{connent},</if>
|
||||
<if test="starttime != null ">starttime = #{starttime},</if>
|
||||
<if test="createUserid != null ">create_userid = #{createUserid},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByDayflowassessmentplanById" parameterType="Long">
|
||||
delete from by_dayflowassessmentplan where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByDayflowassessmentplanByIds" parameterType="String">
|
||||
delete from by_dayflowassessmentplan where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Loading…
x
Reference in New Issue
Block a user