From 6577e41520a91ef6218adfd680cf7c478884fe16 Mon Sep 17 00:00:00 2001
From: sk1551 <15175617877@163.com>
Date: Fri, 24 Apr 2020 11:31:35 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=99=E5=B8=88=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E6=B8=85=E7=A9=BA=E6=95=B0=E6=8D=AE=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/src/views/system/teacher/index.vue | 4 ++--
.../mybatis/system/ByTeacherJbxxMapper.xml | 18 ++++++++++++------
2 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/ruoyi-ui/src/views/system/teacher/index.vue b/ruoyi-ui/src/views/system/teacher/index.vue
index 2233a7dc4..1c057b656 100644
--- a/ruoyi-ui/src/views/system/teacher/index.vue
+++ b/ruoyi-ui/src/views/system/teacher/index.vue
@@ -109,7 +109,7 @@
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:teacher:remove']"
- >删除
+ >清空
@@ -373,7 +373,7 @@ export default {
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm(
- '是否确认删除教师基本信息编号为"' + ids + '"的数据项?',
+ '是否确认清空教师基本信息编号为"' + ids + '"的数据项?',
"警告",
{
confirmButtonText: "确定",
diff --git a/ruoyi/src/main/resources/mybatis/system/ByTeacherJbxxMapper.xml b/ruoyi/src/main/resources/mybatis/system/ByTeacherJbxxMapper.xml
index 2ea6e1252..07c9d6d64 100644
--- a/ruoyi/src/main/resources/mybatis/system/ByTeacherJbxxMapper.xml
+++ b/ruoyi/src/main/resources/mybatis/system/ByTeacherJbxxMapper.xml
@@ -122,15 +122,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
-
- delete from by_teacher_jbxx where id = #{id}
-
-
- delete from by_teacher_jbxx where id in
+
+
+ update by_teacher_jbxx
+ set zjhm=null, csrq=null, byyx=null, zy=null, xl=null, xw=null, cjgzrq=null, zgzs=null, createuserid=null
+ where id = #{id}
+
+
+
+ update by_teacher_jbxx
+ set zjhm=null, csrq=null, byyx=null, zy=null, xl=null, xw=null, cjgzrq=null, zgzs=null, createuserid=null
+ where id in
#{id}
-
+
\ No newline at end of file