教师管理学校分别显示
This commit is contained in:
		| @@ -6,7 +6,6 @@ import java.util.List; | ||||
| import com.ruoyi.project.common.SchoolCommon; | ||||
| import com.ruoyi.project.system.domain.ByTeacherJbxx; | ||||
| import com.ruoyi.project.system.service.*; | ||||
| import com.ruoyi.project.system.service.impl.ByTeacherJbxxServiceImpl; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.security.access.prepost.PreAuthorize; | ||||
| import org.springframework.validation.annotation.Validated; | ||||
| @@ -173,6 +172,7 @@ public class SysUserController extends BaseController | ||||
|         { | ||||
|             ByTeacherJbxx byTeacherJbxx = new ByTeacherJbxx(); | ||||
|             //并赋值给教师userid | ||||
|             //user可以直接获取出入数据的主键值 | ||||
|             byTeacherJbxx.setUserid(user.getUserId()); | ||||
|             byTeacherJbxx.setCreatetime(new Date()); | ||||
|             //插入数据到教师表 | ||||
|   | ||||
| @@ -1,6 +1,8 @@ | ||||
| package com.ruoyi.project.system.service.impl; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| import com.ruoyi.framework.aspectj.lang.annotation.DataScope; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.stereotype.Service; | ||||
| import com.ruoyi.project.system.mapper.ByTeacherJbxxMapper; | ||||
| @@ -38,6 +40,7 @@ public class ByTeacherJbxxServiceImpl implements IByTeacherJbxxService | ||||
|      * @return 教师基本信息 | ||||
|      */ | ||||
|     @Override | ||||
|     @DataScope(deptAlias = "u") | ||||
|     public List<ByTeacherJbxx> selectByTeacherJbxxList(ByTeacherJbxx byTeacherJbxx) | ||||
|     { | ||||
|         return byTeacherJbxxMapper.selectByTeacherJbxxList(byTeacherJbxx); | ||||
|   | ||||
| @@ -57,7 +57,7 @@ spring: | ||||
|   # redis 配置 | ||||
|   redis: | ||||
|     # 地址 | ||||
|     host: localhost | ||||
|     host: 120.53.14.147 | ||||
|     # 端口,默认为6379 | ||||
|     port: 6379 | ||||
|     # 密码 | ||||
|   | ||||
| @@ -50,9 +50,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  | ||||
|     <select id="selectByTeacherJbxxList" parameterType="ByTeacherJbxx" resultMap="ByTeacherJbxxResult"> | ||||
|         select t.id, t.userid, t.zjhm, t.csrq, t.byyx, t.zy, t.xl, t.xw, t.cjgzrq, t.zgzs, t.createuserid, t.createtime, | ||||
|         u.user_id, u.nick_name | ||||
|         u.user_id, u.nick_name,u.dept_id,u.del_flag | ||||
|         from by_teacher_jbxx t | ||||
|         left join sys_user u on t.userid = u.user_id | ||||
|         where u.del_flag='0' | ||||
|         <if test="userid != null "> and userid = #{userid}</if> | ||||
|         <if test="zjhm != null  and zjhm != ''"> and zjhm = #{zjhm}</if> | ||||
|         <if test="csrq != null "> and csrq = #{csrq}</if> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user