一日流程评估
This commit is contained in:
parent
30e3c01522
commit
05af626470
53
ruoyi-ui/src/api/benyi/dayflowassessment.js
Normal file
53
ruoyi-ui/src/api/benyi/dayflowassessment.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询幼儿园一日流程评估列表
|
||||||
|
export function listDayflowassessment(query) {
|
||||||
|
return request({
|
||||||
|
url: '/benyi/dayflowassessment/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询幼儿园一日流程评估详细
|
||||||
|
export function getDayflowassessment(id) {
|
||||||
|
return request({
|
||||||
|
url: '/benyi/dayflowassessment/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增幼儿园一日流程评估
|
||||||
|
export function addDayflowassessment(data) {
|
||||||
|
return request({
|
||||||
|
url: '/benyi/dayflowassessment',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改幼儿园一日流程评估
|
||||||
|
export function updateDayflowassessment(data) {
|
||||||
|
return request({
|
||||||
|
url: '/benyi/dayflowassessment',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除幼儿园一日流程评估
|
||||||
|
export function delDayflowassessment(id) {
|
||||||
|
return request({
|
||||||
|
url: '/benyi/dayflowassessment/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出幼儿园一日流程评估
|
||||||
|
export function exportDayflowassessment(query) {
|
||||||
|
return request({
|
||||||
|
url: '/benyi/dayflowassessment/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
373
ruoyi-ui/src/views/benyi/dayflowassessment/index.vue
Normal file
373
ruoyi-ui/src/views/benyi/dayflowassessment/index.vue
Normal file
@ -0,0 +1,373 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
:inline="true"
|
||||||
|
label-width="70px"
|
||||||
|
>
|
||||||
|
<el-form-item label="所属计划" prop="planid">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.planid"
|
||||||
|
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 label="学年学期" prop="xnxq">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.xnxq"
|
||||||
|
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:dayflowassessment: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:dayflowassessment: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:dayflowassessment:remove']"
|
||||||
|
>删除</el-button
|
||||||
|
>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="dayflowassessmentList"
|
||||||
|
@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="planid" />
|
||||||
|
<!-- <el-table-column label="学校编号" align="center" prop="deptId" /> -->
|
||||||
|
<el-table-column label="班级编号" align="center" prop="classid" />
|
||||||
|
<!-- <el-table-column label="班长编号" align="center" prop="bzbh" /> -->
|
||||||
|
<el-table-column label="班长姓名" align="center" prop="bzxm" />
|
||||||
|
<!-- <el-table-column label="配班教师" align="center" prop="pbbh" /> -->
|
||||||
|
<el-table-column label="配班教师姓名" align="center" prop="pbxm" />
|
||||||
|
<!-- <el-table-column label="助理教师" align="center" prop="zlbh" /> -->
|
||||||
|
<el-table-column label="助理教师姓名" align="center" prop="zlxm" />
|
||||||
|
<el-table-column label="学年学期" align="center" prop="xnxq" />
|
||||||
|
<el-table-column label="评估标准编号" align="center" prop="bzid" />
|
||||||
|
<el-table-column label="扣分值" align="center" prop="kfz" />
|
||||||
|
<el-table-column label="扣分次数" align="center" prop="kfcs" />
|
||||||
|
<el-table-column label="评估对象" align="center" prop="pgdx" />
|
||||||
|
<!-- <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:dayflowassessment:edit']"
|
||||||
|
>修改</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['benyi:dayflowassessment: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="planid">
|
||||||
|
<el-input v-model="form.planid" placeholder="请输入所属计划" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="学校编号" prop="deptId">
|
||||||
|
<el-input v-model="form.deptId" 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="bzbh">
|
||||||
|
<el-input v-model="form.bzbh" placeholder="请输入班长编号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="班长姓名" prop="bzxm">
|
||||||
|
<el-input v-model="form.bzxm" placeholder="请输入班长姓名" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="配班教师" prop="pbbh">
|
||||||
|
<el-input v-model="form.pbbh" placeholder="请输入配班教师" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="配班教师姓名" prop="pbxm">
|
||||||
|
<el-input v-model="form.pbxm" placeholder="请输入配班教师姓名" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="助理教师" prop="zlbh">
|
||||||
|
<el-input v-model="form.zlbh" placeholder="请输入助理教师" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="助理教师姓名" prop="zlxm">
|
||||||
|
<el-input v-model="form.zlxm" placeholder="请输入助理教师姓名" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="评估学年学期" prop="xnxq">
|
||||||
|
<el-input v-model="form.xnxq" placeholder="请输入评估学年学期" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="评估标准编号" prop="bzid">
|
||||||
|
<el-input v-model="form.bzid" placeholder="请输入评估标准编号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="扣分值" prop="kfz">
|
||||||
|
<el-input v-model="form.kfz" placeholder="请输入扣分值" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="扣分次数" prop="kfcs">
|
||||||
|
<el-input v-model="form.kfcs" placeholder="请输入扣分次数" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="评估对象" prop="pgdx">
|
||||||
|
<el-input v-model="form.pgdx" placeholder="请输入评估对象" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="执行人" prop="createUserid">
|
||||||
|
<el-input v-model="form.createUserid" placeholder="请输入执行人" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
listDayflowassessment,
|
||||||
|
getDayflowassessment,
|
||||||
|
delDayflowassessment,
|
||||||
|
addDayflowassessment,
|
||||||
|
updateDayflowassessment,
|
||||||
|
} from "@/api/benyi/dayflowassessment";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Dayflowassessment",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 幼儿园一日流程评估表格数据
|
||||||
|
dayflowassessmentList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
planid: undefined,
|
||||||
|
deptId: undefined,
|
||||||
|
classid: undefined,
|
||||||
|
bzbh: undefined,
|
||||||
|
bzxm: undefined,
|
||||||
|
pbbh: undefined,
|
||||||
|
pbxm: undefined,
|
||||||
|
zlbh: undefined,
|
||||||
|
zlxm: undefined,
|
||||||
|
xnxq: undefined,
|
||||||
|
bzid: undefined,
|
||||||
|
kfz: undefined,
|
||||||
|
kfcs: undefined,
|
||||||
|
pgdx: undefined,
|
||||||
|
createUserid: undefined,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询幼儿园一日流程评估列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listDayflowassessment(this.queryParams).then((response) => {
|
||||||
|
this.dayflowassessmentList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: undefined,
|
||||||
|
planid: undefined,
|
||||||
|
deptId: undefined,
|
||||||
|
classid: undefined,
|
||||||
|
bzbh: undefined,
|
||||||
|
bzxm: undefined,
|
||||||
|
pbbh: undefined,
|
||||||
|
pbxm: undefined,
|
||||||
|
zlbh: undefined,
|
||||||
|
zlxm: undefined,
|
||||||
|
xnxq: undefined,
|
||||||
|
bzid: undefined,
|
||||||
|
kfz: undefined,
|
||||||
|
kfcs: undefined,
|
||||||
|
pgdx: 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;
|
||||||
|
getDayflowassessment(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) {
|
||||||
|
updateDayflowassessment(this.form).then((response) => {
|
||||||
|
if (response.code === 200) {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addDayflowassessment(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 delDayflowassessment(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.ByDayflowassessment;
|
||||||
|
import com.ruoyi.project.benyi.service.IByDayflowassessmentService;
|
||||||
|
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-05
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/benyi/dayflowassessment")
|
||||||
|
public class ByDayflowassessmentController extends BaseController {
|
||||||
|
@Autowired
|
||||||
|
private IByDayflowassessmentService byDayflowassessmentService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询幼儿园一日流程评估列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(ByDayflowassessment byDayflowassessment) {
|
||||||
|
startPage();
|
||||||
|
List<ByDayflowassessment> list = byDayflowassessmentService.selectByDayflowassessmentList(byDayflowassessment);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出幼儿园一日流程评估列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:export')")
|
||||||
|
@Log(title = "幼儿园一日流程评估", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(ByDayflowassessment byDayflowassessment) {
|
||||||
|
List<ByDayflowassessment> list = byDayflowassessmentService.selectByDayflowassessmentList(byDayflowassessment);
|
||||||
|
ExcelUtil<ByDayflowassessment> util = new ExcelUtil<ByDayflowassessment>(ByDayflowassessment.class);
|
||||||
|
return util.exportExcel(list, "dayflowassessment");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取幼儿园一日流程评估详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
|
return AjaxResult.success(byDayflowassessmentService.selectByDayflowassessmentById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增幼儿园一日流程评估
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:add')")
|
||||||
|
@Log(title = "幼儿园一日流程评估", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody ByDayflowassessment byDayflowassessment) {
|
||||||
|
return toAjax(byDayflowassessmentService.insertByDayflowassessment(byDayflowassessment));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改幼儿园一日流程评估
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:edit')")
|
||||||
|
@Log(title = "幼儿园一日流程评估", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody ByDayflowassessment byDayflowassessment) {
|
||||||
|
return toAjax(byDayflowassessmentService.updateByDayflowassessment(byDayflowassessment));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除幼儿园一日流程评估
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:remove')")
|
||||||
|
@Log(title = "幼儿园一日流程评估", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(byDayflowassessmentService.deleteByDayflowassessmentByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,262 @@
|
|||||||
|
package com.ruoyi.project.benyi.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
||||||
|
import com.ruoyi.framework.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 幼儿园一日流程评估对象 by_dayflowassessment
|
||||||
|
*
|
||||||
|
* @author tsbz
|
||||||
|
* @date 2021-02-05
|
||||||
|
*/
|
||||||
|
public class ByDayflowassessment extends BaseEntity {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编号
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所属计划
|
||||||
|
*/
|
||||||
|
@Excel(name = "所属计划")
|
||||||
|
private Long planid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 学校编号
|
||||||
|
*/
|
||||||
|
@Excel(name = "学校编号")
|
||||||
|
private Long deptId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 班级编号
|
||||||
|
*/
|
||||||
|
@Excel(name = "班级编号")
|
||||||
|
private String classid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 班长编号
|
||||||
|
*/
|
||||||
|
@Excel(name = "班长编号")
|
||||||
|
private Long bzbh;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 班长姓名
|
||||||
|
*/
|
||||||
|
@Excel(name = "班长姓名")
|
||||||
|
private String bzxm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配班教师
|
||||||
|
*/
|
||||||
|
@Excel(name = "配班教师")
|
||||||
|
private Long pbbh;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配班教师姓名
|
||||||
|
*/
|
||||||
|
@Excel(name = "配班教师姓名")
|
||||||
|
private String pbxm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 助理教师
|
||||||
|
*/
|
||||||
|
@Excel(name = "助理教师")
|
||||||
|
private Long zlbh;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 助理教师姓名
|
||||||
|
*/
|
||||||
|
@Excel(name = "助理教师姓名")
|
||||||
|
private String zlxm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 评估学年学期
|
||||||
|
*/
|
||||||
|
@Excel(name = "评估学年学期")
|
||||||
|
private String xnxq;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 评估标准编号
|
||||||
|
*/
|
||||||
|
@Excel(name = "评估标准编号")
|
||||||
|
private Long bzid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 扣分值
|
||||||
|
*/
|
||||||
|
@Excel(name = "扣分值")
|
||||||
|
private Double kfz;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 扣分次数
|
||||||
|
*/
|
||||||
|
@Excel(name = "扣分次数")
|
||||||
|
private Long kfcs;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 评估对象
|
||||||
|
*/
|
||||||
|
@Excel(name = "评估对象")
|
||||||
|
private Long pgdx;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 执行人
|
||||||
|
*/
|
||||||
|
@Excel(name = "执行人")
|
||||||
|
private Long createUserid;
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanid(Long planid) {
|
||||||
|
this.planid = planid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPlanid() {
|
||||||
|
return planid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeptId(Long deptId) {
|
||||||
|
this.deptId = deptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDeptId() {
|
||||||
|
return deptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setClassid(String classid) {
|
||||||
|
this.classid = classid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClassid() {
|
||||||
|
return classid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBzbh(Long bzbh) {
|
||||||
|
this.bzbh = bzbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getBzbh() {
|
||||||
|
return bzbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBzxm(String bzxm) {
|
||||||
|
this.bzxm = bzxm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBzxm() {
|
||||||
|
return bzxm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPbbh(Long pbbh) {
|
||||||
|
this.pbbh = pbbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPbbh() {
|
||||||
|
return pbbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPbxm(String pbxm) {
|
||||||
|
this.pbxm = pbxm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPbxm() {
|
||||||
|
return pbxm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZlbh(Long zlbh) {
|
||||||
|
this.zlbh = zlbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getZlbh() {
|
||||||
|
return zlbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZlxm(String zlxm) {
|
||||||
|
this.zlxm = zlxm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZlxm() {
|
||||||
|
return zlxm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXnxq(String xnxq) {
|
||||||
|
this.xnxq = xnxq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXnxq() {
|
||||||
|
return xnxq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBzid(Long bzid) {
|
||||||
|
this.bzid = bzid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getBzid() {
|
||||||
|
return bzid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKfz(Double kfz) {
|
||||||
|
this.kfz = kfz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getKfz() {
|
||||||
|
return kfz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKfcs(Long kfcs) {
|
||||||
|
this.kfcs = kfcs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getKfcs() {
|
||||||
|
return kfcs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPgdx(Long pgdx) {
|
||||||
|
this.pgdx = pgdx;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPgdx() {
|
||||||
|
return pgdx;
|
||||||
|
}
|
||||||
|
|
||||||
|
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("planid", getPlanid())
|
||||||
|
.append("deptId", getDeptId())
|
||||||
|
.append("classid", getClassid())
|
||||||
|
.append("bzbh", getBzbh())
|
||||||
|
.append("bzxm", getBzxm())
|
||||||
|
.append("pbbh", getPbbh())
|
||||||
|
.append("pbxm", getPbxm())
|
||||||
|
.append("zlbh", getZlbh())
|
||||||
|
.append("zlxm", getZlxm())
|
||||||
|
.append("xnxq", getXnxq())
|
||||||
|
.append("bzid", getBzid())
|
||||||
|
.append("kfz", getKfz())
|
||||||
|
.append("kfcs", getKfcs())
|
||||||
|
.append("pgdx", getPgdx())
|
||||||
|
.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.ByDayflowassessment;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 幼儿园一日流程评估Mapper接口
|
||||||
|
*
|
||||||
|
* @author tsbz
|
||||||
|
* @date 2021-02-05
|
||||||
|
*/
|
||||||
|
public interface ByDayflowassessmentMapper {
|
||||||
|
/**
|
||||||
|
* 查询幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param id 幼儿园一日流程评估ID
|
||||||
|
* @return 幼儿园一日流程评估
|
||||||
|
*/
|
||||||
|
public ByDayflowassessment selectByDayflowassessmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询幼儿园一日流程评估列表
|
||||||
|
*
|
||||||
|
* @param byDayflowassessment 幼儿园一日流程评估
|
||||||
|
* @return 幼儿园一日流程评估集合
|
||||||
|
*/
|
||||||
|
public List<ByDayflowassessment> selectByDayflowassessmentList(ByDayflowassessment byDayflowassessment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param byDayflowassessment 幼儿园一日流程评估
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertByDayflowassessment(ByDayflowassessment byDayflowassessment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param byDayflowassessment 幼儿园一日流程评估
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateByDayflowassessment(ByDayflowassessment byDayflowassessment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param id 幼儿园一日流程评估ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteByDayflowassessmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteByDayflowassessmentByIds(Long[] ids);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.project.benyi.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.ruoyi.project.benyi.domain.ByDayflowassessment;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 幼儿园一日流程评估Service接口
|
||||||
|
*
|
||||||
|
* @author tsbz
|
||||||
|
* @date 2021-02-05
|
||||||
|
*/
|
||||||
|
public interface IByDayflowassessmentService {
|
||||||
|
/**
|
||||||
|
* 查询幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param id 幼儿园一日流程评估ID
|
||||||
|
* @return 幼儿园一日流程评估
|
||||||
|
*/
|
||||||
|
public ByDayflowassessment selectByDayflowassessmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询幼儿园一日流程评估列表
|
||||||
|
*
|
||||||
|
* @param byDayflowassessment 幼儿园一日流程评估
|
||||||
|
* @return 幼儿园一日流程评估集合
|
||||||
|
*/
|
||||||
|
public List<ByDayflowassessment> selectByDayflowassessmentList(ByDayflowassessment byDayflowassessment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param byDayflowassessment 幼儿园一日流程评估
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertByDayflowassessment(ByDayflowassessment byDayflowassessment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param byDayflowassessment 幼儿园一日流程评估
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateByDayflowassessment(ByDayflowassessment byDayflowassessment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的幼儿园一日流程评估ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteByDayflowassessmentByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除幼儿园一日流程评估信息
|
||||||
|
*
|
||||||
|
* @param id 幼儿园一日流程评估ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteByDayflowassessmentById(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.ByDayflowassessmentMapper;
|
||||||
|
import com.ruoyi.project.benyi.domain.ByDayflowassessment;
|
||||||
|
import com.ruoyi.project.benyi.service.IByDayflowassessmentService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 幼儿园一日流程评估Service业务层处理
|
||||||
|
*
|
||||||
|
* @author tsbz
|
||||||
|
* @date 2021-02-05
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ByDayflowassessmentServiceImpl implements IByDayflowassessmentService {
|
||||||
|
@Autowired
|
||||||
|
private ByDayflowassessmentMapper byDayflowassessmentMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param id 幼儿园一日流程评估ID
|
||||||
|
* @return 幼儿园一日流程评估
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ByDayflowassessment selectByDayflowassessmentById(Long id) {
|
||||||
|
return byDayflowassessmentMapper.selectByDayflowassessmentById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询幼儿园一日流程评估列表
|
||||||
|
*
|
||||||
|
* @param byDayflowassessment 幼儿园一日流程评估
|
||||||
|
* @return 幼儿园一日流程评估
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ByDayflowassessment> selectByDayflowassessmentList(ByDayflowassessment byDayflowassessment) {
|
||||||
|
return byDayflowassessmentMapper.selectByDayflowassessmentList(byDayflowassessment);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param byDayflowassessment 幼儿园一日流程评估
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertByDayflowassessment(ByDayflowassessment byDayflowassessment) {
|
||||||
|
byDayflowassessment.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return byDayflowassessmentMapper.insertByDayflowassessment(byDayflowassessment);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param byDayflowassessment 幼儿园一日流程评估
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateByDayflowassessment(ByDayflowassessment byDayflowassessment) {
|
||||||
|
return byDayflowassessmentMapper.updateByDayflowassessment(byDayflowassessment);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除幼儿园一日流程评估
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的幼儿园一日流程评估ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteByDayflowassessmentByIds(Long[] ids) {
|
||||||
|
return byDayflowassessmentMapper.deleteByDayflowassessmentByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除幼儿园一日流程评估信息
|
||||||
|
*
|
||||||
|
* @param id 幼儿园一日流程评估ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteByDayflowassessmentById(Long id) {
|
||||||
|
return byDayflowassessmentMapper.deleteByDayflowassessmentById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,132 @@
|
|||||||
|
<?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.ByDayflowassessmentMapper">
|
||||||
|
|
||||||
|
<resultMap type="ByDayflowassessment" id="ByDayflowassessmentResult">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="planid" column="planid"/>
|
||||||
|
<result property="deptId" column="dept_id"/>
|
||||||
|
<result property="classid" column="classid"/>
|
||||||
|
<result property="bzbh" column="bzbh"/>
|
||||||
|
<result property="bzxm" column="bzxm"/>
|
||||||
|
<result property="pbbh" column="pbbh"/>
|
||||||
|
<result property="pbxm" column="pbxm"/>
|
||||||
|
<result property="zlbh" column="zlbh"/>
|
||||||
|
<result property="zlxm" column="zlxm"/>
|
||||||
|
<result property="xnxq" column="xnxq"/>
|
||||||
|
<result property="bzid" column="bzid"/>
|
||||||
|
<result property="kfz" column="kfz"/>
|
||||||
|
<result property="kfcs" column="kfcs"/>
|
||||||
|
<result property="pgdx" column="pgdx"/>
|
||||||
|
<result property="createUserid" column="create_userid"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectByDayflowassessmentVo">
|
||||||
|
select id, planid, dept_id, classid, bzbh, bzxm, pbbh, pbxm, zlbh, zlxm, xnxq, bzid, kfz, kfcs, pgdx, create_userid, create_time from by_dayflowassessment
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectByDayflowassessmentList" parameterType="ByDayflowassessment"
|
||||||
|
resultMap="ByDayflowassessmentResult">
|
||||||
|
<include refid="selectByDayflowassessmentVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="planid != null ">and planid = #{planid}</if>
|
||||||
|
<if test="deptId != null ">and dept_id = #{deptId}</if>
|
||||||
|
<if test="classid != null and classid != ''">and classid = #{classid}</if>
|
||||||
|
<if test="bzbh != null ">and bzbh = #{bzbh}</if>
|
||||||
|
<if test="bzxm != null and bzxm != ''">and bzxm = #{bzxm}</if>
|
||||||
|
<if test="pbbh != null ">and pbbh = #{pbbh}</if>
|
||||||
|
<if test="pbxm != null and pbxm != ''">and pbxm = #{pbxm}</if>
|
||||||
|
<if test="zlbh != null ">and zlbh = #{zlbh}</if>
|
||||||
|
<if test="zlxm != null and zlxm != ''">and zlxm = #{zlxm}</if>
|
||||||
|
<if test="xnxq != null and xnxq != ''">and xnxq = #{xnxq}</if>
|
||||||
|
<if test="bzid != null ">and bzid = #{bzid}</if>
|
||||||
|
<if test="kfz != null ">and kfz = #{kfz}</if>
|
||||||
|
<if test="kfcs != null ">and kfcs = #{kfcs}</if>
|
||||||
|
<if test="pgdx != null ">and pgdx = #{pgdx}</if>
|
||||||
|
<if test="createUserid != null ">and create_userid = #{createUserid}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectByDayflowassessmentById" parameterType="Long" resultMap="ByDayflowassessmentResult">
|
||||||
|
<include refid="selectByDayflowassessmentVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertByDayflowassessment" parameterType="ByDayflowassessment" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into by_dayflowassessment
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="planid != null ">planid,</if>
|
||||||
|
<if test="deptId != null ">dept_id,</if>
|
||||||
|
<if test="classid != null and classid != ''">classid,</if>
|
||||||
|
<if test="bzbh != null ">bzbh,</if>
|
||||||
|
<if test="bzxm != null and bzxm != ''">bzxm,</if>
|
||||||
|
<if test="pbbh != null ">pbbh,</if>
|
||||||
|
<if test="pbxm != null and pbxm != ''">pbxm,</if>
|
||||||
|
<if test="zlbh != null ">zlbh,</if>
|
||||||
|
<if test="zlxm != null and zlxm != ''">zlxm,</if>
|
||||||
|
<if test="xnxq != null and xnxq != ''">xnxq,</if>
|
||||||
|
<if test="bzid != null ">bzid,</if>
|
||||||
|
<if test="kfz != null ">kfz,</if>
|
||||||
|
<if test="kfcs != null ">kfcs,</if>
|
||||||
|
<if test="pgdx != null ">pgdx,</if>
|
||||||
|
<if test="createUserid != null ">create_userid,</if>
|
||||||
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="planid != null ">#{planid},</if>
|
||||||
|
<if test="deptId != null ">#{deptId},</if>
|
||||||
|
<if test="classid != null and classid != ''">#{classid},</if>
|
||||||
|
<if test="bzbh != null ">#{bzbh},</if>
|
||||||
|
<if test="bzxm != null and bzxm != ''">#{bzxm},</if>
|
||||||
|
<if test="pbbh != null ">#{pbbh},</if>
|
||||||
|
<if test="pbxm != null and pbxm != ''">#{pbxm},</if>
|
||||||
|
<if test="zlbh != null ">#{zlbh},</if>
|
||||||
|
<if test="zlxm != null and zlxm != ''">#{zlxm},</if>
|
||||||
|
<if test="xnxq != null and xnxq != ''">#{xnxq},</if>
|
||||||
|
<if test="bzid != null ">#{bzid},</if>
|
||||||
|
<if test="kfz != null ">#{kfz},</if>
|
||||||
|
<if test="kfcs != null ">#{kfcs},</if>
|
||||||
|
<if test="pgdx != null ">#{pgdx},</if>
|
||||||
|
<if test="createUserid != null ">#{createUserid},</if>
|
||||||
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateByDayflowassessment" parameterType="ByDayflowassessment">
|
||||||
|
update by_dayflowassessment
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="planid != null ">planid = #{planid},</if>
|
||||||
|
<if test="deptId != null ">dept_id = #{deptId},</if>
|
||||||
|
<if test="classid != null and classid != ''">classid = #{classid},</if>
|
||||||
|
<if test="bzbh != null ">bzbh = #{bzbh},</if>
|
||||||
|
<if test="bzxm != null and bzxm != ''">bzxm = #{bzxm},</if>
|
||||||
|
<if test="pbbh != null ">pbbh = #{pbbh},</if>
|
||||||
|
<if test="pbxm != null and pbxm != ''">pbxm = #{pbxm},</if>
|
||||||
|
<if test="zlbh != null ">zlbh = #{zlbh},</if>
|
||||||
|
<if test="zlxm != null and zlxm != ''">zlxm = #{zlxm},</if>
|
||||||
|
<if test="xnxq != null and xnxq != ''">xnxq = #{xnxq},</if>
|
||||||
|
<if test="bzid != null ">bzid = #{bzid},</if>
|
||||||
|
<if test="kfz != null ">kfz = #{kfz},</if>
|
||||||
|
<if test="kfcs != null ">kfcs = #{kfcs},</if>
|
||||||
|
<if test="pgdx != null ">pgdx = #{pgdx},</if>
|
||||||
|
<if test="createUserid != null ">create_userid = #{createUserid},</if>
|
||||||
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteByDayflowassessmentById" parameterType="Long">
|
||||||
|
delete from by_dayflowassessment where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteByDayflowassessmentByIds" parameterType="String">
|
||||||
|
delete from by_dayflowassessment where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
x
Reference in New Issue
Block a user