教师月绩效考核 一日流程评估 教师出勤率 幼儿出勤率 卫生和安全
This commit is contained in:
		
							
								
								
									
										53
									
								
								ruoyi-ui/src/api/benyi/teacherassessment.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								ruoyi-ui/src/api/benyi/teacherassessment.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,53 @@ | ||||
| import request from '@/utils/request' | ||||
|  | ||||
| // 查询教师月绩效考核列表 | ||||
| export function listTeacherassessment(query) { | ||||
|   return request({ | ||||
|     url: '/benyi/teacherassessment/list', | ||||
|     method: 'get', | ||||
|     params: query | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 查询教师月绩效考核详细 | ||||
| export function getTeacherassessment(id) { | ||||
|   return request({ | ||||
|     url: '/benyi/teacherassessment/' + id, | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 新增教师月绩效考核 | ||||
| export function addTeacherassessment(data) { | ||||
|   return request({ | ||||
|     url: '/benyi/teacherassessment', | ||||
|     method: 'post', | ||||
|     data: data | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 修改教师月绩效考核 | ||||
| export function updateTeacherassessment(data) { | ||||
|   return request({ | ||||
|     url: '/benyi/teacherassessment', | ||||
|     method: 'put', | ||||
|     data: data | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 删除教师月绩效考核 | ||||
| export function delTeacherassessment(id) { | ||||
|   return request({ | ||||
|     url: '/benyi/teacherassessment/' + id, | ||||
|     method: 'delete' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 导出教师月绩效考核 | ||||
| export function exportTeacherassessment(query) { | ||||
|   return request({ | ||||
|     url: '/benyi/teacherassessment/export', | ||||
|     method: 'get', | ||||
|     params: query | ||||
|   }) | ||||
| } | ||||
							
								
								
									
										433
									
								
								ruoyi-ui/src/views/benyi/teacherassessment/index.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										433
									
								
								ruoyi-ui/src/views/benyi/teacherassessment/index.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,433 @@ | ||||
| <template> | ||||
|   <div class="app-container"> | ||||
|     <el-form | ||||
|       :model="queryParams" | ||||
|       ref="queryForm" | ||||
|       :inline="true" | ||||
|       label-width="70px" | ||||
|     > | ||||
|       <el-form-item label="教师编号" prop="jsid"> | ||||
|         <el-input | ||||
|           v-model="queryParams.jsid" | ||||
|           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="deptId"> | ||||
|         <el-input | ||||
|           v-model="queryParams.deptId" | ||||
|           placeholder="请输入所在部门" | ||||
|           clearable | ||||
|           size="small" | ||||
|           @keyup.enter.native="handleQuery" | ||||
|         /> | ||||
|       </el-form-item> | ||||
|       <el-form-item label="考核月份" prop="month"> | ||||
|         <el-input | ||||
|           v-model="queryParams.month" | ||||
|           placeholder="请输入考核月份" | ||||
|           clearable | ||||
|           size="small" | ||||
|           @keyup.enter.native="handleQuery" | ||||
|         /> | ||||
|       </el-form-item> | ||||
|       <el-form-item label="一日流程比例" prop="yrlcbl"> | ||||
|         <el-input | ||||
|           v-model="queryParams.yrlcbl" | ||||
|           placeholder="请输入一日流程比例" | ||||
|           clearable | ||||
|           size="small" | ||||
|           @keyup.enter.native="handleQuery" | ||||
|         /> | ||||
|       </el-form-item> | ||||
|       <el-form-item label="教师考勤比例" prop="jskqbl"> | ||||
|         <el-input | ||||
|           v-model="queryParams.jskqbl" | ||||
|           placeholder="请输入教师考勤比例" | ||||
|           clearable | ||||
|           size="small" | ||||
|           @keyup.enter.native="handleQuery" | ||||
|         /> | ||||
|       </el-form-item> | ||||
|       <el-form-item label="幼儿考勤比例" prop="yekqbl"> | ||||
|         <el-input | ||||
|           v-model="queryParams.yekqbl" | ||||
|           placeholder="请输入幼儿考勤比例" | ||||
|           clearable | ||||
|           size="small" | ||||
|           @keyup.enter.native="handleQuery" | ||||
|         /> | ||||
|       </el-form-item> | ||||
|       <el-form-item label="事故比例" prop="sgbl"> | ||||
|         <el-input | ||||
|           v-model="queryParams.sgbl" | ||||
|           placeholder="请输入事故比例" | ||||
|           clearable | ||||
|           size="small" | ||||
|           @keyup.enter.native="handleQuery" | ||||
|         /> | ||||
|       </el-form-item> | ||||
|       <el-form-item label="卫生比例" prop="wsbl"> | ||||
|         <el-input | ||||
|           v-model="queryParams.wsbl" | ||||
|           placeholder="请输入卫生比例" | ||||
|           clearable | ||||
|           size="small" | ||||
|           @keyup.enter.native="handleQuery" | ||||
|         /> | ||||
|       </el-form-item> | ||||
|       <el-form-item label="总分" prop="zfbl"> | ||||
|         <el-input | ||||
|           v-model="queryParams.zfbl" | ||||
|           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:teacherassessment: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:teacherassessment: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:teacherassessment:remove']" | ||||
|           >删除</el-button | ||||
|         > | ||||
|       </el-col> | ||||
|       <el-col :span="1.5"> | ||||
|         <el-button | ||||
|           type="warning" | ||||
|           icon="el-icon-download" | ||||
|           size="mini" | ||||
|           @click="handleExport" | ||||
|           v-hasPermi="['benyi:teacherassessment:export']" | ||||
|           >导出</el-button | ||||
|         > | ||||
|       </el-col> | ||||
|     </el-row> | ||||
|  | ||||
|     <el-table | ||||
|       v-loading="loading" | ||||
|       :data="teacherassessmentList" | ||||
|       @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="jsid" /> | ||||
|       <el-table-column label="班级编号" align="center" prop="classid" /> | ||||
|       <el-table-column label="所在部门" align="center" prop="deptId" /> | ||||
|       <el-table-column label="考核月份" align="center" prop="month" /> | ||||
|       <el-table-column label="一日流程比例" align="center" prop="yrlcbl" /> | ||||
|       <el-table-column label="教师考勤比例" align="center" prop="jskqbl" /> | ||||
|       <el-table-column label="幼儿考勤比例" align="center" prop="yekqbl" /> | ||||
|       <el-table-column label="事故比例" align="center" prop="sgbl" /> | ||||
|       <el-table-column label="卫生比例" align="center" prop="wsbl" /> | ||||
|       <el-table-column label="总分" align="center" prop="zfbl" /> | ||||
|       <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:teacherassessment:edit']" | ||||
|             >修改</el-button | ||||
|           > | ||||
|           <el-button | ||||
|             size="mini" | ||||
|             type="text" | ||||
|             icon="el-icon-delete" | ||||
|             @click="handleDelete(scope.row)" | ||||
|             v-hasPermi="['benyi:teacherassessment: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="jsid"> | ||||
|           <el-input v-model="form.jsid" 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="deptId"> | ||||
|           <el-input v-model="form.deptId" placeholder="请输入所在部门" /> | ||||
|         </el-form-item> | ||||
|         <el-form-item label="考核月份" prop="month"> | ||||
|           <el-input v-model="form.month" placeholder="请输入考核月份" /> | ||||
|         </el-form-item> | ||||
|         <el-form-item label="一日流程比例" prop="yrlcbl"> | ||||
|           <el-input v-model="form.yrlcbl" placeholder="请输入一日流程比例" /> | ||||
|         </el-form-item> | ||||
|         <el-form-item label="教师考勤比例" prop="jskqbl"> | ||||
|           <el-input v-model="form.jskqbl" placeholder="请输入教师考勤比例" /> | ||||
|         </el-form-item> | ||||
|         <el-form-item label="幼儿考勤比例" prop="yekqbl"> | ||||
|           <el-input v-model="form.yekqbl" placeholder="请输入幼儿考勤比例" /> | ||||
|         </el-form-item> | ||||
|         <el-form-item label="事故比例" prop="sgbl"> | ||||
|           <el-input v-model="form.sgbl" placeholder="请输入事故比例" /> | ||||
|         </el-form-item> | ||||
|         <el-form-item label="卫生比例" prop="wsbl"> | ||||
|           <el-input v-model="form.wsbl" placeholder="请输入卫生比例" /> | ||||
|         </el-form-item> | ||||
|         <el-form-item label="总分" prop="zfbl"> | ||||
|           <el-input v-model="form.zfbl" 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 { | ||||
|   listTeacherassessment, | ||||
|   getTeacherassessment, | ||||
|   delTeacherassessment, | ||||
|   addTeacherassessment, | ||||
|   updateTeacherassessment, | ||||
|   exportTeacherassessment, | ||||
| } from "@/api/benyi/teacherassessment"; | ||||
|  | ||||
| export default { | ||||
|   name: "Teacherassessment", | ||||
|   data() { | ||||
|     return { | ||||
|       // 遮罩层 | ||||
|       loading: true, | ||||
|       // 选中数组 | ||||
|       ids: [], | ||||
|       // 非单个禁用 | ||||
|       single: true, | ||||
|       // 非多个禁用 | ||||
|       multiple: true, | ||||
|       // 总条数 | ||||
|       total: 0, | ||||
|       // 教师月绩效考核表格数据 | ||||
|       teacherassessmentList: [], | ||||
|       // 弹出层标题 | ||||
|       title: "", | ||||
|       // 是否显示弹出层 | ||||
|       open: false, | ||||
|       // 查询参数 | ||||
|       queryParams: { | ||||
|         pageNum: 1, | ||||
|         pageSize: 10, | ||||
|         jsid: undefined, | ||||
|         classid: undefined, | ||||
|         deptId: undefined, | ||||
|         month: undefined, | ||||
|         yrlcbl: undefined, | ||||
|         jskqbl: undefined, | ||||
|         yekqbl: undefined, | ||||
|         sgbl: undefined, | ||||
|         wsbl: undefined, | ||||
|         zfbl: undefined, | ||||
|       }, | ||||
|       // 表单参数 | ||||
|       form: {}, | ||||
|       // 表单校验 | ||||
|       rules: {}, | ||||
|     }; | ||||
|   }, | ||||
|   created() { | ||||
|     this.getList(); | ||||
|   }, | ||||
|   methods: { | ||||
|     /** 查询教师月绩效考核列表 */ | ||||
|     getList() { | ||||
|       this.loading = true; | ||||
|       listTeacherassessment(this.queryParams).then((response) => { | ||||
|         this.teacherassessmentList = response.rows; | ||||
|         this.total = response.total; | ||||
|         this.loading = false; | ||||
|       }); | ||||
|     }, | ||||
|     // 取消按钮 | ||||
|     cancel() { | ||||
|       this.open = false; | ||||
|       this.reset(); | ||||
|     }, | ||||
|     // 表单重置 | ||||
|     reset() { | ||||
|       this.form = { | ||||
|         id: undefined, | ||||
|         jsid: undefined, | ||||
|         classid: undefined, | ||||
|         deptId: undefined, | ||||
|         month: undefined, | ||||
|         yrlcbl: undefined, | ||||
|         jskqbl: undefined, | ||||
|         yekqbl: undefined, | ||||
|         sgbl: undefined, | ||||
|         wsbl: undefined, | ||||
|         zfbl: 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; | ||||
|       getTeacherassessment(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) { | ||||
|             updateTeacherassessment(this.form).then((response) => { | ||||
|               if (response.code === 200) { | ||||
|                 this.msgSuccess("修改成功"); | ||||
|                 this.open = false; | ||||
|                 this.getList(); | ||||
|               } | ||||
|             }); | ||||
|           } else { | ||||
|             addTeacherassessment(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 delTeacherassessment(ids); | ||||
|         }) | ||||
|         .then(() => { | ||||
|           this.getList(); | ||||
|           this.msgSuccess("删除成功"); | ||||
|         }) | ||||
|         .catch(function () {}); | ||||
|     }, | ||||
|     /** 导出按钮操作 */ | ||||
|     handleExport() { | ||||
|       const queryParams = this.queryParams; | ||||
|       this.$confirm("是否确认导出所有教师月绩效考核数据项?", "警告", { | ||||
|         confirmButtonText: "确定", | ||||
|         cancelButtonText: "取消", | ||||
|         type: "warning", | ||||
|       }) | ||||
|         .then(function () { | ||||
|           return exportTeacherassessment(queryParams); | ||||
|         }) | ||||
|         .then((response) => { | ||||
|           this.download(response.msg); | ||||
|         }) | ||||
|         .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.ByTeacherassessment; | ||||
| import com.ruoyi.project.benyi.service.IByTeacherassessmentService; | ||||
| 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-07-01 | ||||
|  */ | ||||
| @RestController | ||||
| @RequestMapping("/benyi/teacherassessment") | ||||
| public class ByTeacherassessmentController extends BaseController { | ||||
|     @Autowired | ||||
|     private IByTeacherassessmentService byTeacherassessmentService; | ||||
|  | ||||
|     /** | ||||
|      * 查询教师月绩效考核列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:teacherassessment:list')") | ||||
|     @GetMapping("/list") | ||||
|     public TableDataInfo list(ByTeacherassessment byTeacherassessment) { | ||||
|         startPage(); | ||||
|         List<ByTeacherassessment> list = byTeacherassessmentService.selectByTeacherassessmentList(byTeacherassessment); | ||||
|         return getDataTable(list); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 导出教师月绩效考核列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:teacherassessment:export')") | ||||
|     @Log(title = "教师月绩效考核", businessType = BusinessType.EXPORT) | ||||
|     @GetMapping("/export") | ||||
|     public AjaxResult export(ByTeacherassessment byTeacherassessment) { | ||||
|         List<ByTeacherassessment> list = byTeacherassessmentService.selectByTeacherassessmentList(byTeacherassessment); | ||||
|         ExcelUtil<ByTeacherassessment> util = new ExcelUtil<ByTeacherassessment>(ByTeacherassessment.class); | ||||
|         return util.exportExcel(list, "teacherassessment"); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 获取教师月绩效考核详细信息 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:teacherassessment:query')") | ||||
|     @GetMapping(value = "/{id}") | ||||
|     public AjaxResult getInfo(@PathVariable("id") Long id) { | ||||
|         return AjaxResult.success(byTeacherassessmentService.selectByTeacherassessmentById(id)); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 新增教师月绩效考核 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:teacherassessment:add')") | ||||
|     @Log(title = "教师月绩效考核", businessType = BusinessType.INSERT) | ||||
|     @PostMapping | ||||
|     public AjaxResult add(@RequestBody ByTeacherassessment byTeacherassessment) { | ||||
|         return toAjax(byTeacherassessmentService.insertByTeacherassessment(byTeacherassessment)); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 修改教师月绩效考核 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:teacherassessment:edit')") | ||||
|     @Log(title = "教师月绩效考核", businessType = BusinessType.UPDATE) | ||||
|     @PutMapping | ||||
|     public AjaxResult edit(@RequestBody ByTeacherassessment byTeacherassessment) { | ||||
|         return toAjax(byTeacherassessmentService.updateByTeacherassessment(byTeacherassessment)); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 删除教师月绩效考核 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:teacherassessment:remove')") | ||||
|     @Log(title = "教师月绩效考核", businessType = BusinessType.DELETE) | ||||
|     @DeleteMapping("/{ids}") | ||||
|     public AjaxResult remove(@PathVariable Long[] ids) { | ||||
|         return toAjax(byTeacherassessmentService.deleteByTeacherassessmentByIds(ids)); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,187 @@ | ||||
| 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_teacherassessment | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2021-07-01 | ||||
|  */ | ||||
| public class ByTeacherassessment extends BaseEntity { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     /** | ||||
|      * 编号 | ||||
|      */ | ||||
|     private Long id; | ||||
|  | ||||
|     /** | ||||
|      * 教师编号 | ||||
|      */ | ||||
|     @Excel(name = "教师编号") | ||||
|     private Long jsid; | ||||
|  | ||||
|     /** | ||||
|      * 班级编号 | ||||
|      */ | ||||
|     @Excel(name = "班级编号") | ||||
|     private String classid; | ||||
|  | ||||
|     /** | ||||
|      * 所在部门 | ||||
|      */ | ||||
|     @Excel(name = "所在部门") | ||||
|     private Long deptId; | ||||
|  | ||||
|     /** | ||||
|      * 考核月份 | ||||
|      */ | ||||
|     @Excel(name = "考核月份") | ||||
|     private String month; | ||||
|  | ||||
|     /** | ||||
|      * 一日流程比例 | ||||
|      */ | ||||
|     @Excel(name = "一日流程比例") | ||||
|     private Double yrlcbl; | ||||
|  | ||||
|     /** | ||||
|      * 教师考勤比例 | ||||
|      */ | ||||
|     @Excel(name = "教师考勤比例") | ||||
|     private Double jskqbl; | ||||
|  | ||||
|     /** | ||||
|      * 幼儿考勤比例 | ||||
|      */ | ||||
|     @Excel(name = "幼儿考勤比例") | ||||
|     private Double yekqbl; | ||||
|  | ||||
|     /** | ||||
|      * 事故比例 | ||||
|      */ | ||||
|     @Excel(name = "事故比例") | ||||
|     private Double sgbl; | ||||
|  | ||||
|     /** | ||||
|      * 卫生比例 | ||||
|      */ | ||||
|     @Excel(name = "卫生比例") | ||||
|     private Double wsbl; | ||||
|  | ||||
|     /** | ||||
|      * 总分 | ||||
|      */ | ||||
|     @Excel(name = "总分") | ||||
|     private Double zfbl; | ||||
|  | ||||
|     public void setId(Long id) { | ||||
|         this.id = id; | ||||
|     } | ||||
|  | ||||
|     public Long getId() { | ||||
|         return id; | ||||
|     } | ||||
|  | ||||
|     public void setJsid(Long jsid) { | ||||
|         this.jsid = jsid; | ||||
|     } | ||||
|  | ||||
|     public Long getJsid() { | ||||
|         return jsid; | ||||
|     } | ||||
|  | ||||
|     public void setClassid(String classid) { | ||||
|         this.classid = classid; | ||||
|     } | ||||
|  | ||||
|     public String getClassid() { | ||||
|         return classid; | ||||
|     } | ||||
|  | ||||
|     public void setDeptId(Long deptId) { | ||||
|         this.deptId = deptId; | ||||
|     } | ||||
|  | ||||
|     public Long getDeptId() { | ||||
|         return deptId; | ||||
|     } | ||||
|  | ||||
|     public void setMonth(String month) { | ||||
|         this.month = month; | ||||
|     } | ||||
|  | ||||
|     public String getMonth() { | ||||
|         return month; | ||||
|     } | ||||
|  | ||||
|     public void setYrlcbl(Double yrlcbl) { | ||||
|         this.yrlcbl = yrlcbl; | ||||
|     } | ||||
|  | ||||
|     public Double getYrlcbl() { | ||||
|         return yrlcbl; | ||||
|     } | ||||
|  | ||||
|     public void setJskqbl(Double jskqbl) { | ||||
|         this.jskqbl = jskqbl; | ||||
|     } | ||||
|  | ||||
|     public Double getJskqbl() { | ||||
|         return jskqbl; | ||||
|     } | ||||
|  | ||||
|     public void setYekqbl(Double yekqbl) { | ||||
|         this.yekqbl = yekqbl; | ||||
|     } | ||||
|  | ||||
|     public Double getYekqbl() { | ||||
|         return yekqbl; | ||||
|     } | ||||
|  | ||||
|     public void setSgbl(Double sgbl) { | ||||
|         this.sgbl = sgbl; | ||||
|     } | ||||
|  | ||||
|     public Double getSgbl() { | ||||
|         return sgbl; | ||||
|     } | ||||
|  | ||||
|     public void setWsbl(Double wsbl) { | ||||
|         this.wsbl = wsbl; | ||||
|     } | ||||
|  | ||||
|     public Double getWsbl() { | ||||
|         return wsbl; | ||||
|     } | ||||
|  | ||||
|     public void setZfbl(Double zfbl) { | ||||
|         this.zfbl = zfbl; | ||||
|     } | ||||
|  | ||||
|     public Double getZfbl() { | ||||
|         return zfbl; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) | ||||
|                 .append("id", getId()) | ||||
|                 .append("jsid", getJsid()) | ||||
|                 .append("classid", getClassid()) | ||||
|                 .append("deptId", getDeptId()) | ||||
|                 .append("month", getMonth()) | ||||
|                 .append("yrlcbl", getYrlcbl()) | ||||
|                 .append("jskqbl", getJskqbl()) | ||||
|                 .append("yekqbl", getYekqbl()) | ||||
|                 .append("sgbl", getSgbl()) | ||||
|                 .append("wsbl", getWsbl()) | ||||
|                 .append("zfbl", getZfbl()) | ||||
|                 .append("createTime", getCreateTime()) | ||||
|                 .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,61 @@ | ||||
| package com.ruoyi.project.benyi.mapper; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| import com.ruoyi.project.benyi.domain.ByTeacherassessment; | ||||
|  | ||||
| /** | ||||
|  * 教师月绩效考核Mapper接口 | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2021-07-01 | ||||
|  */ | ||||
| public interface ByTeacherassessmentMapper { | ||||
|     /** | ||||
|      * 查询教师月绩效考核 | ||||
|      * | ||||
|      * @param id 教师月绩效考核ID | ||||
|      * @return 教师月绩效考核 | ||||
|      */ | ||||
|     public ByTeacherassessment selectByTeacherassessmentById(Long id); | ||||
|  | ||||
|     /** | ||||
|      * 查询教师月绩效考核列表 | ||||
|      * | ||||
|      * @param byTeacherassessment 教师月绩效考核 | ||||
|      * @return 教师月绩效考核集合 | ||||
|      */ | ||||
|     public List<ByTeacherassessment> selectByTeacherassessmentList(ByTeacherassessment byTeacherassessment); | ||||
|  | ||||
|     /** | ||||
|      * 新增教师月绩效考核 | ||||
|      * | ||||
|      * @param byTeacherassessment 教师月绩效考核 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int insertByTeacherassessment(ByTeacherassessment byTeacherassessment); | ||||
|  | ||||
|     /** | ||||
|      * 修改教师月绩效考核 | ||||
|      * | ||||
|      * @param byTeacherassessment 教师月绩效考核 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int updateByTeacherassessment(ByTeacherassessment byTeacherassessment); | ||||
|  | ||||
|     /** | ||||
|      * 删除教师月绩效考核 | ||||
|      * | ||||
|      * @param id 教师月绩效考核ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteByTeacherassessmentById(Long id); | ||||
|  | ||||
|     /** | ||||
|      * 批量删除教师月绩效考核 | ||||
|      * | ||||
|      * @param ids 需要删除的数据ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteByTeacherassessmentByIds(Long[] ids); | ||||
| } | ||||
| @@ -0,0 +1,61 @@ | ||||
| package com.ruoyi.project.benyi.service; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| import com.ruoyi.project.benyi.domain.ByTeacherassessment; | ||||
|  | ||||
| /** | ||||
|  * 教师月绩效考核Service接口 | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2021-07-01 | ||||
|  */ | ||||
| public interface IByTeacherassessmentService { | ||||
|     /** | ||||
|      * 查询教师月绩效考核 | ||||
|      * | ||||
|      * @param id 教师月绩效考核ID | ||||
|      * @return 教师月绩效考核 | ||||
|      */ | ||||
|     public ByTeacherassessment selectByTeacherassessmentById(Long id); | ||||
|  | ||||
|     /** | ||||
|      * 查询教师月绩效考核列表 | ||||
|      * | ||||
|      * @param byTeacherassessment 教师月绩效考核 | ||||
|      * @return 教师月绩效考核集合 | ||||
|      */ | ||||
|     public List<ByTeacherassessment> selectByTeacherassessmentList(ByTeacherassessment byTeacherassessment); | ||||
|  | ||||
|     /** | ||||
|      * 新增教师月绩效考核 | ||||
|      * | ||||
|      * @param byTeacherassessment 教师月绩效考核 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int insertByTeacherassessment(ByTeacherassessment byTeacherassessment); | ||||
|  | ||||
|     /** | ||||
|      * 修改教师月绩效考核 | ||||
|      * | ||||
|      * @param byTeacherassessment 教师月绩效考核 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int updateByTeacherassessment(ByTeacherassessment byTeacherassessment); | ||||
|  | ||||
|     /** | ||||
|      * 批量删除教师月绩效考核 | ||||
|      * | ||||
|      * @param ids 需要删除的教师月绩效考核ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteByTeacherassessmentByIds(Long[] ids); | ||||
|  | ||||
|     /** | ||||
|      * 删除教师月绩效考核信息 | ||||
|      * | ||||
|      * @param id 教师月绩效考核ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteByTeacherassessmentById(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.ByTeacherassessmentMapper; | ||||
| import com.ruoyi.project.benyi.domain.ByTeacherassessment; | ||||
| import com.ruoyi.project.benyi.service.IByTeacherassessmentService; | ||||
|  | ||||
| /** | ||||
|  * 教师月绩效考核Service业务层处理 | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2021-07-01 | ||||
|  */ | ||||
| @Service | ||||
| public class ByTeacherassessmentServiceImpl implements IByTeacherassessmentService { | ||||
|     @Autowired | ||||
|     private ByTeacherassessmentMapper byTeacherassessmentMapper; | ||||
|  | ||||
|     /** | ||||
|      * 查询教师月绩效考核 | ||||
|      * | ||||
|      * @param id 教师月绩效考核ID | ||||
|      * @return 教师月绩效考核 | ||||
|      */ | ||||
|     @Override | ||||
|     public ByTeacherassessment selectByTeacherassessmentById(Long id) { | ||||
|         return byTeacherassessmentMapper.selectByTeacherassessmentById(id); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询教师月绩效考核列表 | ||||
|      * | ||||
|      * @param byTeacherassessment 教师月绩效考核 | ||||
|      * @return 教师月绩效考核 | ||||
|      */ | ||||
|     @Override | ||||
|     public List<ByTeacherassessment> selectByTeacherassessmentList(ByTeacherassessment byTeacherassessment) { | ||||
|         return byTeacherassessmentMapper.selectByTeacherassessmentList(byTeacherassessment); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 新增教师月绩效考核 | ||||
|      * | ||||
|      * @param byTeacherassessment 教师月绩效考核 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int insertByTeacherassessment(ByTeacherassessment byTeacherassessment) { | ||||
|         byTeacherassessment.setCreateTime(DateUtils.getNowDate()); | ||||
|         return byTeacherassessmentMapper.insertByTeacherassessment(byTeacherassessment); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 修改教师月绩效考核 | ||||
|      * | ||||
|      * @param byTeacherassessment 教师月绩效考核 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int updateByTeacherassessment(ByTeacherassessment byTeacherassessment) { | ||||
|         return byTeacherassessmentMapper.updateByTeacherassessment(byTeacherassessment); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 批量删除教师月绩效考核 | ||||
|      * | ||||
|      * @param ids 需要删除的教师月绩效考核ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteByTeacherassessmentByIds(Long[] ids) { | ||||
|         return byTeacherassessmentMapper.deleteByTeacherassessmentByIds(ids); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 删除教师月绩效考核信息 | ||||
|      * | ||||
|      * @param id 教师月绩效考核ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteByTeacherassessmentById(Long id) { | ||||
|         return byTeacherassessmentMapper.deleteByTeacherassessmentById(id); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,107 @@ | ||||
| <?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.ByTeacherassessmentMapper"> | ||||
|  | ||||
|     <resultMap type="ByTeacherassessment" id="ByTeacherassessmentResult"> | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="jsid" column="jsid"/> | ||||
|         <result property="classid" column="classid"/> | ||||
|         <result property="deptId" column="dept_id"/> | ||||
|         <result property="month" column="month"/> | ||||
|         <result property="yrlcbl" column="yrlcbl"/> | ||||
|         <result property="jskqbl" column="jskqbl"/> | ||||
|         <result property="yekqbl" column="yekqbl"/> | ||||
|         <result property="sgbl" column="sgbl"/> | ||||
|         <result property="wsbl" column="wsbl"/> | ||||
|         <result property="zfbl" column="zfbl"/> | ||||
|         <result property="createTime" column="create_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="selectByTeacherassessmentVo"> | ||||
|         select id, jsid, classid, dept_id, month, yrlcbl, jskqbl, yekqbl, sgbl, wsbl, zfbl, create_time from by_teacherassessment | ||||
|     </sql> | ||||
|  | ||||
|     <select id="selectByTeacherassessmentList" parameterType="ByTeacherassessment" | ||||
|             resultMap="ByTeacherassessmentResult"> | ||||
|         <include refid="selectByTeacherassessmentVo"/> | ||||
|         <where> | ||||
|             <if test="jsid != null ">and jsid = #{jsid}</if> | ||||
|             <if test="classid != null  and classid != ''">and classid = #{classid}</if> | ||||
|             <if test="deptId != null ">and dept_id = #{deptId}</if> | ||||
|             <if test="month != null  and month != ''">and month = #{month}</if> | ||||
|             <if test="yrlcbl != null ">and yrlcbl = #{yrlcbl}</if> | ||||
|             <if test="jskqbl != null ">and jskqbl = #{jskqbl}</if> | ||||
|             <if test="yekqbl != null ">and yekqbl = #{yekqbl}</if> | ||||
|             <if test="sgbl != null ">and sgbl = #{sgbl}</if> | ||||
|             <if test="wsbl != null ">and wsbl = #{wsbl}</if> | ||||
|             <if test="zfbl != null ">and zfbl = #{zfbl}</if> | ||||
|         </where> | ||||
|     </select> | ||||
|  | ||||
|     <select id="selectByTeacherassessmentById" parameterType="Long" resultMap="ByTeacherassessmentResult"> | ||||
|         <include refid="selectByTeacherassessmentVo"/> | ||||
|         where id = #{id} | ||||
|     </select> | ||||
|  | ||||
|     <insert id="insertByTeacherassessment" parameterType="ByTeacherassessment" useGeneratedKeys="true" keyProperty="id"> | ||||
|         insert into by_teacherassessment | ||||
|         <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
|             <if test="jsid != null ">jsid,</if> | ||||
|             <if test="classid != null  and classid != ''">classid,</if> | ||||
|             <if test="deptId != null ">dept_id,</if> | ||||
|             <if test="month != null  and month != ''">month,</if> | ||||
|             <if test="yrlcbl != null ">yrlcbl,</if> | ||||
|             <if test="jskqbl != null ">jskqbl,</if> | ||||
|             <if test="yekqbl != null ">yekqbl,</if> | ||||
|             <if test="sgbl != null ">sgbl,</if> | ||||
|             <if test="wsbl != null ">wsbl,</if> | ||||
|             <if test="zfbl != null ">zfbl,</if> | ||||
|             <if test="createTime != null ">create_time,</if> | ||||
|         </trim> | ||||
|         <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||
|             <if test="jsid != null ">#{jsid},</if> | ||||
|             <if test="classid != null  and classid != ''">#{classid},</if> | ||||
|             <if test="deptId != null ">#{deptId},</if> | ||||
|             <if test="month != null  and month != ''">#{month},</if> | ||||
|             <if test="yrlcbl != null ">#{yrlcbl},</if> | ||||
|             <if test="jskqbl != null ">#{jskqbl},</if> | ||||
|             <if test="yekqbl != null ">#{yekqbl},</if> | ||||
|             <if test="sgbl != null ">#{sgbl},</if> | ||||
|             <if test="wsbl != null ">#{wsbl},</if> | ||||
|             <if test="zfbl != null ">#{zfbl},</if> | ||||
|             <if test="createTime != null ">#{createTime},</if> | ||||
|         </trim> | ||||
|     </insert> | ||||
|  | ||||
|     <update id="updateByTeacherassessment" parameterType="ByTeacherassessment"> | ||||
|         update by_teacherassessment | ||||
|         <trim prefix="SET" suffixOverrides=","> | ||||
|             <if test="jsid != null ">jsid = #{jsid},</if> | ||||
|             <if test="classid != null  and classid != ''">classid = #{classid},</if> | ||||
|             <if test="deptId != null ">dept_id = #{deptId},</if> | ||||
|             <if test="month != null  and month != ''">month = #{month},</if> | ||||
|             <if test="yrlcbl != null ">yrlcbl = #{yrlcbl},</if> | ||||
|             <if test="jskqbl != null ">jskqbl = #{jskqbl},</if> | ||||
|             <if test="yekqbl != null ">yekqbl = #{yekqbl},</if> | ||||
|             <if test="sgbl != null ">sgbl = #{sgbl},</if> | ||||
|             <if test="wsbl != null ">wsbl = #{wsbl},</if> | ||||
|             <if test="zfbl != null ">zfbl = #{zfbl},</if> | ||||
|             <if test="createTime != null ">create_time = #{createTime},</if> | ||||
|         </trim> | ||||
|         where id = #{id} | ||||
|     </update> | ||||
|  | ||||
|     <delete id="deleteByTeacherassessmentById" parameterType="Long"> | ||||
|         delete from by_teacherassessment where id = #{id} | ||||
|     </delete> | ||||
|  | ||||
|     <delete id="deleteByTeacherassessmentByIds" parameterType="String"> | ||||
|         delete from by_teacherassessment where id in | ||||
|         <foreach item="id" collection="array" open="(" separator="," close=")"> | ||||
|             #{id} | ||||
|         </foreach> | ||||
|     </delete> | ||||
|  | ||||
| </mapper> | ||||
		Reference in New Issue
	
	Block a user