第一次
parent
82796de6fc
commit
ef6ba230e7
|
@ -1,107 +0,0 @@
|
||||||
package com.ruoyi.edu.domain;
|
|
||||||
|
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
||||||
import com.ruoyi.common.annotation.Excel;
|
|
||||||
import com.ruoyi.common.core.domain.BaseEntity;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 学生管理对象 cs_student
|
|
||||||
*
|
|
||||||
* @author ruoyi
|
|
||||||
* @date 2023-04-17
|
|
||||||
*/
|
|
||||||
public class CsStudent extends BaseEntity
|
|
||||||
{
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/** id */
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/** 姓名 */
|
|
||||||
@Excel(name = "姓名")
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
/** 性别 */
|
|
||||||
@Excel(name = "性别")
|
|
||||||
private String sex;
|
|
||||||
|
|
||||||
/** 年龄 */
|
|
||||||
@Excel(name = "年龄")
|
|
||||||
private String age;
|
|
||||||
|
|
||||||
/** 部门 */
|
|
||||||
@Excel(name = "部门")
|
|
||||||
private String depart;
|
|
||||||
|
|
||||||
/** 班级 */
|
|
||||||
@Excel(name = "班级")
|
|
||||||
private String cclass;
|
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
public void setSex(String sex)
|
|
||||||
{
|
|
||||||
this.sex = sex;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSex()
|
|
||||||
{
|
|
||||||
return sex;
|
|
||||||
}
|
|
||||||
public void setAge(String age)
|
|
||||||
{
|
|
||||||
this.age = age;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAge()
|
|
||||||
{
|
|
||||||
return age;
|
|
||||||
}
|
|
||||||
public void setDepart(String depart)
|
|
||||||
{
|
|
||||||
this.depart = depart;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDepart()
|
|
||||||
{
|
|
||||||
return depart;
|
|
||||||
}
|
|
||||||
public void setCclass(String cclass)
|
|
||||||
{
|
|
||||||
this.cclass = cclass;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCclass()
|
|
||||||
{
|
|
||||||
return cclass;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("name", getName())
|
|
||||||
.append("sex", getSex())
|
|
||||||
.append("age", getAge())
|
|
||||||
.append("depart", getDepart())
|
|
||||||
.append("cclass", getCclass())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,94 +0,0 @@
|
||||||
package com.ruoyi.edu.service.impl;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import com.ruoyi.edu.mapper.CsStudentMapper;
|
|
||||||
import com.ruoyi.edu.domain.CsStudent;
|
|
||||||
import com.ruoyi.edu.service.ICsStudentService;
|
|
||||||
import com.ruoyi.common.core.text.Convert;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 学生管理Service业务层处理
|
|
||||||
*
|
|
||||||
* @author ruoyi
|
|
||||||
* @date 2023-04-17
|
|
||||||
*/
|
|
||||||
@Service
|
|
||||||
public class CsStudentServiceImpl implements ICsStudentService
|
|
||||||
{
|
|
||||||
@Autowired
|
|
||||||
private CsStudentMapper csStudentMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询学生管理
|
|
||||||
*
|
|
||||||
* @param id 学生管理主键
|
|
||||||
* @return 学生管理
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public CsStudent selectCsStudentById(Long id)
|
|
||||||
{
|
|
||||||
return csStudentMapper.selectCsStudentById(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询学生管理列表
|
|
||||||
*
|
|
||||||
* @param csStudent 学生管理
|
|
||||||
* @return 学生管理
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public List<CsStudent> selectCsStudentList(CsStudent csStudent)
|
|
||||||
{
|
|
||||||
return csStudentMapper.selectCsStudentList(csStudent);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增学生管理
|
|
||||||
*
|
|
||||||
* @param csStudent 学生管理
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int insertCsStudent(CsStudent csStudent)
|
|
||||||
{
|
|
||||||
return csStudentMapper.insertCsStudent(csStudent);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改学生管理
|
|
||||||
*
|
|
||||||
* @param csStudent 学生管理
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int updateCsStudent(CsStudent csStudent)
|
|
||||||
{
|
|
||||||
return csStudentMapper.updateCsStudent(csStudent);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除学生管理
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的学生管理主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int deleteCsStudentByIds(String ids)
|
|
||||||
{
|
|
||||||
return csStudentMapper.deleteCsStudentByIds(Convert.toStrArray(ids));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除学生管理信息
|
|
||||||
*
|
|
||||||
* @param id 学生管理主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int deleteCsStudentById(Long id)
|
|
||||||
{
|
|
||||||
return csStudentMapper.deleteCsStudentById(id);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,77 +0,0 @@
|
||||||
<?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.edu.mapper.CsStudentMapper">
|
|
||||||
|
|
||||||
<resultMap type="CsStudent" id="CsStudentResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="name" column="name" />
|
|
||||||
<result property="sex" column="sex" />
|
|
||||||
<result property="age" column="age" />
|
|
||||||
<result property="depart" column="depart" />
|
|
||||||
<result property="cclass" column="cclass" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectCsStudentVo">
|
|
||||||
select id, name, sex, age, depart, cclass from cs_student
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectCsStudentList" parameterType="CsStudent" resultMap="CsStudentResult">
|
|
||||||
<include refid="selectCsStudentVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
||||||
<if test="sex != null and sex != ''"> and sex = #{sex}</if>
|
|
||||||
<if test="age != null and age != ''"> and age = #{age}</if>
|
|
||||||
<if test="depart != null and depart != ''"> and depart = #{depart}</if>
|
|
||||||
<if test="cclass != null and cclass != ''"> and cclass = #{cclass}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectCsStudentById" parameterType="Long" resultMap="CsStudentResult">
|
|
||||||
<include refid="selectCsStudentVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertCsStudent" parameterType="CsStudent" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into cs_student
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="name != null">name,</if>
|
|
||||||
<if test="sex != null">sex,</if>
|
|
||||||
<if test="age != null">age,</if>
|
|
||||||
<if test="depart != null">depart,</if>
|
|
||||||
<if test="cclass != null">cclass,</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="name != null">#{name},</if>
|
|
||||||
<if test="sex != null">#{sex},</if>
|
|
||||||
<if test="age != null">#{age},</if>
|
|
||||||
<if test="depart != null">#{depart},</if>
|
|
||||||
<if test="cclass != null">#{cclass},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateCsStudent" parameterType="CsStudent">
|
|
||||||
update cs_student
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="name != null">name = #{name},</if>
|
|
||||||
<if test="sex != null">sex = #{sex},</if>
|
|
||||||
<if test="age != null">age = #{age},</if>
|
|
||||||
<if test="depart != null">depart = #{depart},</if>
|
|
||||||
<if test="cclass != null">cclass = #{cclass},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteCsStudentById" parameterType="Long">
|
|
||||||
delete from cs_student where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteCsStudentByIds" parameterType="String">
|
|
||||||
delete from cs_student where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
</mapper>
|
|
|
@ -1,71 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
||||||
<head>
|
|
||||||
<th:block th:include="include :: header('新增学生管理')" />
|
|
||||||
</head>
|
|
||||||
<body class="white-bg">
|
|
||||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
||||||
<form class="form-horizontal m" id="form-student-add">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">姓名:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="name" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">性别:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<!-- <input name="sex" class="form-control" type="text">-->
|
|
||||||
<select name="sex" class="form-control" type="text">
|
|
||||||
<option value="男">男</option>
|
|
||||||
<option value="女">女</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">年龄:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="age" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">部门:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<!-- <input name="depart" class="form-control" type="text">-->
|
|
||||||
<select name="depart" class="form-control" type="text">
|
|
||||||
<option value="软件工程">软件工程</option>
|
|
||||||
<option value="大数据">大数据</option>
|
|
||||||
<option value="人工智能">人工智能</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">班级:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<!-- <input name="cclass" class="form-control" type="text">-->
|
|
||||||
<select name="cclass" class="form-control" type="text">
|
|
||||||
<option value="20J01">20J01</option>
|
|
||||||
<option value="20J02">20J02</option>
|
|
||||||
<option value="20H05">20H05</option>
|
|
||||||
<option value="20游05">20游05</option>
|
|
||||||
<option value="20J05">20J05</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<th:block th:include="include :: footer" />
|
|
||||||
<script th:inline="javascript">
|
|
||||||
var prefix = ctx + "edu/student"
|
|
||||||
$("#form-student-add").validate({
|
|
||||||
focusCleanup: true
|
|
||||||
});
|
|
||||||
|
|
||||||
function submitHandler() {
|
|
||||||
if ($.validate.form()) {
|
|
||||||
$.operate.save(prefix + "/add", $('#form-student-add').serialize());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,72 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
||||||
<head>
|
|
||||||
<th:block th:include="include :: header('修改学生管理')" />
|
|
||||||
</head>
|
|
||||||
<body class="white-bg">
|
|
||||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
||||||
<form class="form-horizontal m" id="form-student-edit" th:object="${csStudent}">
|
|
||||||
<input name="id" th:field="*{id}" type="hidden">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">姓名:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="name" th:field="*{name}" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">性别:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<!-- <input name="sex" th:field="*{sex}" class="form-control" type="text">-->
|
|
||||||
<select name="sex" th:field="*{sex}" class="form-control" type="text">
|
|
||||||
<option value="男">男</option>
|
|
||||||
<option value="女">女</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">年龄:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="age" th:field="*{age}" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">部门:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<!-- <input name="depart" th:field="*{depart}" class="form-control" type="text">-->
|
|
||||||
<select name="depart" th:field="*{depart}" class="form-control" type="text">
|
|
||||||
<option value="软件工程">软件工程</option>
|
|
||||||
<option value="大数据">大数据</option>
|
|
||||||
<option value="人工智能">人工智能</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">班级:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<!-- <input name="cclass" th:field="*{cclass}" class="form-control" type="text">-->
|
|
||||||
<select name="cclass" th:field="*{cclass}" class="form-control" type="text">
|
|
||||||
<option value="20J01">20J01</option>
|
|
||||||
<option value="20J02">20J02</option>
|
|
||||||
<option value="20H05">20H05</option>
|
|
||||||
<option value="20游05">20游05</option>
|
|
||||||
<option value="20J05">20J05</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<th:block th:include="include :: footer" />
|
|
||||||
<script th:inline="javascript">
|
|
||||||
var prefix = ctx + "edu/student";
|
|
||||||
$("#form-student-edit").validate({
|
|
||||||
focusCleanup: true
|
|
||||||
});
|
|
||||||
|
|
||||||
function submitHandler() {
|
|
||||||
if ($.validate.form()) {
|
|
||||||
$.operate.save(prefix + "/edit", $('#form-student-edit').serialize());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
6
pom.xml
6
pom.xml
|
@ -173,10 +173,11 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.ruoyi</groupId>
|
<groupId>com.ruoyi</groupId>
|
||||||
<artifactId>cs_student</artifactId>
|
<artifactId>ruoyi_edu</artifactId>
|
||||||
<version>${ruoyi.version}</version>
|
<version>${ruoyi.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!-- 核心模块-->
|
<!-- 核心模块-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.ruoyi</groupId>
|
<groupId>com.ruoyi</groupId>
|
||||||
|
@ -210,7 +211,8 @@
|
||||||
<module>ruoyi-common</module>
|
<module>ruoyi-common</module>
|
||||||
<module>cs_test</module>
|
<module>cs_test</module>
|
||||||
<module>cs_test1</module>
|
<module>cs_test1</module>
|
||||||
<module>cs_student</module>
|
<module>ruoyi_edu</module>
|
||||||
|
|
||||||
</modules>
|
</modules>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.ruoyi</groupId>
|
<groupId>com.ruoyi</groupId>
|
||||||
<artifactId>cs_student</artifactId>
|
<artifactId>ruoyi_edu</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
|
@ -9,13 +9,12 @@
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>cs_student</artifactId>
|
<artifactId>ruoyi_edu</artifactId>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>8</maven.compiler.source>
|
<maven.compiler.source>8</maven.compiler.source>
|
||||||
<maven.compiler.target>8</maven.compiler.target>
|
<maven.compiler.target>8</maven.compiler.target>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.ruoyi</groupId>
|
<groupId>com.ruoyi</groupId>
|
|
@ -0,0 +1,127 @@
|
||||||
|
package com.ruoyi.edu.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.edu.domain.EduClazz;
|
||||||
|
import com.ruoyi.edu.service.IEduClazzService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 班级管理Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/edu/clazz")
|
||||||
|
public class EduClazzController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "edu/clazz";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IEduClazzService eduClazzService;
|
||||||
|
|
||||||
|
@RequiresPermissions("edu:clazz:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String clazz()
|
||||||
|
{
|
||||||
|
return prefix + "/clazz";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询班级管理列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:clazz:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(EduClazz eduClazz)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<EduClazz> list = eduClazzService.selectEduClazzList(eduClazz);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出班级管理列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:clazz:export")
|
||||||
|
@Log(title = "班级管理", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(EduClazz eduClazz)
|
||||||
|
{
|
||||||
|
List<EduClazz> list = eduClazzService.selectEduClazzList(eduClazz);
|
||||||
|
ExcelUtil<EduClazz> util = new ExcelUtil<EduClazz>(EduClazz.class);
|
||||||
|
return util.exportExcel(list, "班级管理数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增班级管理
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存班级管理
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:clazz:add")
|
||||||
|
@Log(title = "班级管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(EduClazz eduClazz)
|
||||||
|
{
|
||||||
|
return toAjax(eduClazzService.insertEduClazz(eduClazz));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改班级管理
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:clazz:edit")
|
||||||
|
@GetMapping("/edit/{id}")
|
||||||
|
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||||
|
{
|
||||||
|
EduClazz eduClazz = eduClazzService.selectEduClazzById(id);
|
||||||
|
mmap.put("eduClazz", eduClazz);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存班级管理
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:clazz:edit")
|
||||||
|
@Log(title = "班级管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(EduClazz eduClazz)
|
||||||
|
{
|
||||||
|
return toAjax(eduClazzService.updateEduClazz(eduClazz));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除班级管理
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:clazz:remove")
|
||||||
|
@Log(title = "班级管理", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(eduClazzService.deleteEduClazzByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,127 @@
|
||||||
|
package com.ruoyi.edu.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.edu.domain.EduMenu;
|
||||||
|
import com.ruoyi.edu.service.IEduMenuService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 菜单管理Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/edu/menu")
|
||||||
|
public class EduMenuController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "edu/menu";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IEduMenuService eduMenuService;
|
||||||
|
|
||||||
|
@RequiresPermissions("edu:menu:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String menu()
|
||||||
|
{
|
||||||
|
return prefix + "/menu";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询菜单管理列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:menu:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(EduMenu eduMenu)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<EduMenu> list = eduMenuService.selectEduMenuList(eduMenu);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出菜单管理列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:menu:export")
|
||||||
|
@Log(title = "菜单管理", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(EduMenu eduMenu)
|
||||||
|
{
|
||||||
|
List<EduMenu> list = eduMenuService.selectEduMenuList(eduMenu);
|
||||||
|
ExcelUtil<EduMenu> util = new ExcelUtil<EduMenu>(EduMenu.class);
|
||||||
|
return util.exportExcel(list, "菜单管理数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增菜单管理
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存菜单管理
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:menu:add")
|
||||||
|
@Log(title = "菜单管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(EduMenu eduMenu)
|
||||||
|
{
|
||||||
|
return toAjax(eduMenuService.insertEduMenu(eduMenu));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改菜单管理
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:menu:edit")
|
||||||
|
@GetMapping("/edit/{id}")
|
||||||
|
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||||
|
{
|
||||||
|
EduMenu eduMenu = eduMenuService.selectEduMenuById(id);
|
||||||
|
mmap.put("eduMenu", eduMenu);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存菜单管理
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:menu:edit")
|
||||||
|
@Log(title = "菜单管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(EduMenu eduMenu)
|
||||||
|
{
|
||||||
|
return toAjax(eduMenuService.updateEduMenu(eduMenu));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除菜单管理
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:menu:remove")
|
||||||
|
@Log(title = "菜单管理", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(eduMenuService.deleteEduMenuByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
|
@ -12,8 +12,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
import com.ruoyi.common.annotation.Log;
|
import com.ruoyi.common.annotation.Log;
|
||||||
import com.ruoyi.common.enums.BusinessType;
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
import com.ruoyi.edu.domain.CsStudent;
|
import com.ruoyi.edu.domain.EduStudent;
|
||||||
import com.ruoyi.edu.service.ICsStudentService;
|
import com.ruoyi.edu.service.IEduStudentService;
|
||||||
import com.ruoyi.common.core.controller.BaseController;
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
import com.ruoyi.common.core.domain.AjaxResult;
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
@ -23,16 +23,16 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
* 学生管理Controller
|
* 学生管理Controller
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2023-04-17
|
* @date 2023-04-18
|
||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("/edu/student")
|
@RequestMapping("/edu/student")
|
||||||
public class CsStudentController extends BaseController
|
public class EduStudentController extends BaseController
|
||||||
{
|
{
|
||||||
private String prefix = "edu/student";
|
private String prefix = "edu/student";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ICsStudentService csStudentService;
|
private IEduStudentService eduStudentService;
|
||||||
|
|
||||||
@RequiresPermissions("edu:student:view")
|
@RequiresPermissions("edu:student:view")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
|
@ -47,10 +47,10 @@ public class CsStudentController extends BaseController
|
||||||
@RequiresPermissions("edu:student:list")
|
@RequiresPermissions("edu:student:list")
|
||||||
@PostMapping("/list")
|
@PostMapping("/list")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public TableDataInfo list(CsStudent csStudent)
|
public TableDataInfo list(EduStudent eduStudent)
|
||||||
{
|
{
|
||||||
startPage();
|
startPage();
|
||||||
List<CsStudent> list = csStudentService.selectCsStudentList(csStudent);
|
List<EduStudent> list = eduStudentService.selectEduStudentList(eduStudent);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,10 +61,10 @@ public class CsStudentController extends BaseController
|
||||||
@Log(title = "学生管理", businessType = BusinessType.EXPORT)
|
@Log(title = "学生管理", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxResult export(CsStudent csStudent)
|
public AjaxResult export(EduStudent eduStudent)
|
||||||
{
|
{
|
||||||
List<CsStudent> list = csStudentService.selectCsStudentList(csStudent);
|
List<EduStudent> list = eduStudentService.selectEduStudentList(eduStudent);
|
||||||
ExcelUtil<CsStudent> util = new ExcelUtil<CsStudent>(CsStudent.class);
|
ExcelUtil<EduStudent> util = new ExcelUtil<EduStudent>(EduStudent.class);
|
||||||
return util.exportExcel(list, "学生管理数据");
|
return util.exportExcel(list, "学生管理数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,9 +84,9 @@ public class CsStudentController extends BaseController
|
||||||
@Log(title = "学生管理", businessType = BusinessType.INSERT)
|
@Log(title = "学生管理", businessType = BusinessType.INSERT)
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxResult addSave(CsStudent csStudent)
|
public AjaxResult addSave(EduStudent eduStudent)
|
||||||
{
|
{
|
||||||
return toAjax(csStudentService.insertCsStudent(csStudent));
|
return toAjax(eduStudentService.insertEduStudent(eduStudent));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -96,8 +96,8 @@ public class CsStudentController extends BaseController
|
||||||
@GetMapping("/edit/{id}")
|
@GetMapping("/edit/{id}")
|
||||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||||
{
|
{
|
||||||
CsStudent csStudent = csStudentService.selectCsStudentById(id);
|
EduStudent eduStudent = eduStudentService.selectEduStudentById(id);
|
||||||
mmap.put("csStudent", csStudent);
|
mmap.put("eduStudent", eduStudent);
|
||||||
return prefix + "/edit";
|
return prefix + "/edit";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,9 +108,9 @@ public class CsStudentController extends BaseController
|
||||||
@Log(title = "学生管理", businessType = BusinessType.UPDATE)
|
@Log(title = "学生管理", businessType = BusinessType.UPDATE)
|
||||||
@PostMapping("/edit")
|
@PostMapping("/edit")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxResult editSave(CsStudent csStudent)
|
public AjaxResult editSave(EduStudent eduStudent)
|
||||||
{
|
{
|
||||||
return toAjax(csStudentService.updateCsStudent(csStudent));
|
return toAjax(eduStudentService.updateEduStudent(eduStudent));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -122,6 +122,6 @@ public class CsStudentController extends BaseController
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxResult remove(String ids)
|
public AjaxResult remove(String ids)
|
||||||
{
|
{
|
||||||
return toAjax(csStudentService.deleteCsStudentByIds(ids));
|
return toAjax(eduStudentService.deleteEduStudentByIds(ids));
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1,127 @@
|
||||||
|
package com.ruoyi.edu.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.edu.domain.EduTeacher;
|
||||||
|
import com.ruoyi.edu.service.IEduTeacherService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 教师管理Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/edu/teacher")
|
||||||
|
public class EduTeacherController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "edu/teacher";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IEduTeacherService eduTeacherService;
|
||||||
|
|
||||||
|
@RequiresPermissions("edu:teacher:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String teacher()
|
||||||
|
{
|
||||||
|
return prefix + "/teacher";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询教师管理列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:teacher:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(EduTeacher eduTeacher)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<EduTeacher> list = eduTeacherService.selectEduTeacherList(eduTeacher);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出教师管理列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:teacher:export")
|
||||||
|
@Log(title = "教师管理", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(EduTeacher eduTeacher)
|
||||||
|
{
|
||||||
|
List<EduTeacher> list = eduTeacherService.selectEduTeacherList(eduTeacher);
|
||||||
|
ExcelUtil<EduTeacher> util = new ExcelUtil<EduTeacher>(EduTeacher.class);
|
||||||
|
return util.exportExcel(list, "教师管理数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增教师管理
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存教师管理
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:teacher:add")
|
||||||
|
@Log(title = "教师管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(EduTeacher eduTeacher)
|
||||||
|
{
|
||||||
|
return toAjax(eduTeacherService.insertEduTeacher(eduTeacher));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改教师管理
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:teacher:edit")
|
||||||
|
@GetMapping("/edit/{id}")
|
||||||
|
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||||
|
{
|
||||||
|
EduTeacher eduTeacher = eduTeacherService.selectEduTeacherById(id);
|
||||||
|
mmap.put("eduTeacher", eduTeacher);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存教师管理
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:teacher:edit")
|
||||||
|
@Log(title = "教师管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(EduTeacher eduTeacher)
|
||||||
|
{
|
||||||
|
return toAjax(eduTeacherService.updateEduTeacher(eduTeacher));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除教师管理
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("edu:teacher:remove")
|
||||||
|
@Log(title = "教师管理", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(eduTeacherService.deleteEduTeacherByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,79 @@
|
||||||
|
package com.ruoyi.edu.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 班级管理对象 edu_clazz
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
public class EduClazz extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** id */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 班级名字 */
|
||||||
|
@Excel(name = "班级名字")
|
||||||
|
private String clazzName;
|
||||||
|
|
||||||
|
/** 班级人数 */
|
||||||
|
@Excel(name = "班级人数")
|
||||||
|
private String clazzCount;
|
||||||
|
|
||||||
|
/** 状态 */
|
||||||
|
@Excel(name = "状态")
|
||||||
|
private String visible;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setClazzName(String clazzName)
|
||||||
|
{
|
||||||
|
this.clazzName = clazzName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClazzName()
|
||||||
|
{
|
||||||
|
return clazzName;
|
||||||
|
}
|
||||||
|
public void setClazzCount(String clazzCount)
|
||||||
|
{
|
||||||
|
this.clazzCount = clazzCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClazzCount()
|
||||||
|
{
|
||||||
|
return clazzCount;
|
||||||
|
}
|
||||||
|
public void setVisible(String visible)
|
||||||
|
{
|
||||||
|
this.visible = visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getVisible()
|
||||||
|
{
|
||||||
|
return visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("clazzName", getClazzName())
|
||||||
|
.append("clazzCount", getClazzCount())
|
||||||
|
.append("visible", getVisible())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,121 @@
|
||||||
|
package com.ruoyi.edu.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 菜单管理对象 edu_menu
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
public class EduMenu extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 菜单名 */
|
||||||
|
@Excel(name = "菜单名")
|
||||||
|
private String menuName;
|
||||||
|
|
||||||
|
/** 路由 */
|
||||||
|
@Excel(name = "路由")
|
||||||
|
private String menuUrl;
|
||||||
|
|
||||||
|
/** 菜单图标 */
|
||||||
|
@Excel(name = "菜单图标")
|
||||||
|
private String menuImg;
|
||||||
|
|
||||||
|
/** 菜单状态 */
|
||||||
|
@Excel(name = "菜单状态")
|
||||||
|
private String menuVisible;
|
||||||
|
|
||||||
|
/** 隐藏状态(0 学生 ,1 教师,2 管理员) */
|
||||||
|
@Excel(name = "隐藏状态", readConverterExp = "0=,学=生,,=1,教=师,2,管=理员")
|
||||||
|
private Long menuFlag;
|
||||||
|
|
||||||
|
/** 菜单排序 */
|
||||||
|
@Excel(name = "菜单排序")
|
||||||
|
private Long menuOrdernum;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setMenuName(String menuName)
|
||||||
|
{
|
||||||
|
this.menuName = menuName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMenuName()
|
||||||
|
{
|
||||||
|
return menuName;
|
||||||
|
}
|
||||||
|
public void setMenuUrl(String menuUrl)
|
||||||
|
{
|
||||||
|
this.menuUrl = menuUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMenuUrl()
|
||||||
|
{
|
||||||
|
return menuUrl;
|
||||||
|
}
|
||||||
|
public void setMenuImg(String menuImg)
|
||||||
|
{
|
||||||
|
this.menuImg = menuImg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMenuImg()
|
||||||
|
{
|
||||||
|
return menuImg;
|
||||||
|
}
|
||||||
|
public void setMenuVisible(String menuVisible)
|
||||||
|
{
|
||||||
|
this.menuVisible = menuVisible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMenuVisible()
|
||||||
|
{
|
||||||
|
return menuVisible;
|
||||||
|
}
|
||||||
|
public void setMenuFlag(Long menuFlag)
|
||||||
|
{
|
||||||
|
this.menuFlag = menuFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getMenuFlag()
|
||||||
|
{
|
||||||
|
return menuFlag;
|
||||||
|
}
|
||||||
|
public void setMenuOrdernum(Long menuOrdernum)
|
||||||
|
{
|
||||||
|
this.menuOrdernum = menuOrdernum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getMenuOrdernum()
|
||||||
|
{
|
||||||
|
return menuOrdernum;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("menuName", getMenuName())
|
||||||
|
.append("menuUrl", getMenuUrl())
|
||||||
|
.append("menuImg", getMenuImg())
|
||||||
|
.append("menuVisible", getMenuVisible())
|
||||||
|
.append("menuFlag", getMenuFlag())
|
||||||
|
.append("menuOrdernum", getMenuOrdernum())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,93 @@
|
||||||
|
package com.ruoyi.edu.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 学生管理对象 edu_student
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
public class EduStudent extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** id */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 学号 */
|
||||||
|
@Excel(name = "学号")
|
||||||
|
private String stuSno;
|
||||||
|
|
||||||
|
/** 姓名 */
|
||||||
|
@Excel(name = "姓名")
|
||||||
|
private String stuName;
|
||||||
|
|
||||||
|
/** 新班级 */
|
||||||
|
@Excel(name = "新班级")
|
||||||
|
private String stuNcid;
|
||||||
|
|
||||||
|
/** 旧班级 */
|
||||||
|
@Excel(name = "旧班级")
|
||||||
|
private String stuOcid;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setStuSno(String stuSno)
|
||||||
|
{
|
||||||
|
this.stuSno = stuSno;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStuSno()
|
||||||
|
{
|
||||||
|
return stuSno;
|
||||||
|
}
|
||||||
|
public void setStuName(String stuName)
|
||||||
|
{
|
||||||
|
this.stuName = stuName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStuName()
|
||||||
|
{
|
||||||
|
return stuName;
|
||||||
|
}
|
||||||
|
public void setStuNcid(String stuNcid)
|
||||||
|
{
|
||||||
|
this.stuNcid = stuNcid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStuNcid()
|
||||||
|
{
|
||||||
|
return stuNcid;
|
||||||
|
}
|
||||||
|
public void setStuOcid(String stuOcid)
|
||||||
|
{
|
||||||
|
this.stuOcid = stuOcid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStuOcid()
|
||||||
|
{
|
||||||
|
return stuOcid;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("stuSno", getStuSno())
|
||||||
|
.append("stuName", getStuName())
|
||||||
|
.append("stuNcid", getStuNcid())
|
||||||
|
.append("stuOcid", getStuOcid())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,107 @@
|
||||||
|
package com.ruoyi.edu.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 教师管理对象 edu_teacher
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
public class EduTeacher extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** ID */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 工号 */
|
||||||
|
@Excel(name = "工号")
|
||||||
|
private Long teaSno;
|
||||||
|
|
||||||
|
/** 教师姓名 */
|
||||||
|
@Excel(name = "教师姓名")
|
||||||
|
private String teaName;
|
||||||
|
|
||||||
|
/** 身份 */
|
||||||
|
@Excel(name = "身份")
|
||||||
|
private String flag;
|
||||||
|
|
||||||
|
/** 职称 */
|
||||||
|
@Excel(name = "职称")
|
||||||
|
private String teaTitle;
|
||||||
|
|
||||||
|
/** 所属部门 */
|
||||||
|
@Excel(name = "所属部门")
|
||||||
|
private Long deptId;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setTeaSno(Long teaSno)
|
||||||
|
{
|
||||||
|
this.teaSno = teaSno;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTeaSno()
|
||||||
|
{
|
||||||
|
return teaSno;
|
||||||
|
}
|
||||||
|
public void setTeaName(String teaName)
|
||||||
|
{
|
||||||
|
this.teaName = teaName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTeaName()
|
||||||
|
{
|
||||||
|
return teaName;
|
||||||
|
}
|
||||||
|
public void setFlag(String flag)
|
||||||
|
{
|
||||||
|
this.flag = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFlag()
|
||||||
|
{
|
||||||
|
return flag;
|
||||||
|
}
|
||||||
|
public void setTeaTitle(String teaTitle)
|
||||||
|
{
|
||||||
|
this.teaTitle = teaTitle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTeaTitle()
|
||||||
|
{
|
||||||
|
return teaTitle;
|
||||||
|
}
|
||||||
|
public void setDeptId(Long deptId)
|
||||||
|
{
|
||||||
|
this.deptId = deptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDeptId()
|
||||||
|
{
|
||||||
|
return deptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("teaSno", getTeaSno())
|
||||||
|
.append("teaName", getTeaName())
|
||||||
|
.append("flag", getFlag())
|
||||||
|
.append("teaTitle", getTeaTitle())
|
||||||
|
.append("deptId", getDeptId())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.edu.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.edu.domain.EduClazz;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 班级管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
public interface EduClazzMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询班级管理
|
||||||
|
*
|
||||||
|
* @param id 班级管理主键
|
||||||
|
* @return 班级管理
|
||||||
|
*/
|
||||||
|
public EduClazz selectEduClazzById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询班级管理列表
|
||||||
|
*
|
||||||
|
* @param eduClazz 班级管理
|
||||||
|
* @return 班级管理集合
|
||||||
|
*/
|
||||||
|
public List<EduClazz> selectEduClazzList(EduClazz eduClazz);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增班级管理
|
||||||
|
*
|
||||||
|
* @param eduClazz 班级管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertEduClazz(EduClazz eduClazz);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改班级管理
|
||||||
|
*
|
||||||
|
* @param eduClazz 班级管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateEduClazz(EduClazz eduClazz);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除班级管理
|
||||||
|
*
|
||||||
|
* @param id 班级管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEduClazzById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除班级管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEduClazzByIds(String[] ids);
|
||||||
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.edu.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.edu.domain.EduMenu;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 菜单管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
public interface EduMenuMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询菜单管理
|
||||||
|
*
|
||||||
|
* @param id 菜单管理主键
|
||||||
|
* @return 菜单管理
|
||||||
|
*/
|
||||||
|
public EduMenu selectEduMenuById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询菜单管理列表
|
||||||
|
*
|
||||||
|
* @param eduMenu 菜单管理
|
||||||
|
* @return 菜单管理集合
|
||||||
|
*/
|
||||||
|
public List<EduMenu> selectEduMenuList(EduMenu eduMenu);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增菜单管理
|
||||||
|
*
|
||||||
|
* @param eduMenu 菜单管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertEduMenu(EduMenu eduMenu);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改菜单管理
|
||||||
|
*
|
||||||
|
* @param eduMenu 菜单管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateEduMenu(EduMenu eduMenu);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除菜单管理
|
||||||
|
*
|
||||||
|
* @param id 菜单管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEduMenuById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除菜单管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEduMenuByIds(String[] ids);
|
||||||
|
}
|
|
@ -1,15 +1,15 @@
|
||||||
package com.ruoyi.edu.mapper;
|
package com.ruoyi.edu.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.ruoyi.edu.domain.CsStudent;
|
import com.ruoyi.edu.domain.EduStudent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 学生管理Mapper接口
|
* 学生管理Mapper接口
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2023-04-17
|
* @date 2023-04-18
|
||||||
*/
|
*/
|
||||||
public interface CsStudentMapper
|
public interface EduStudentMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询学生管理
|
* 查询学生管理
|
||||||
|
@ -17,31 +17,31 @@ public interface CsStudentMapper
|
||||||
* @param id 学生管理主键
|
* @param id 学生管理主键
|
||||||
* @return 学生管理
|
* @return 学生管理
|
||||||
*/
|
*/
|
||||||
public CsStudent selectCsStudentById(Long id);
|
public EduStudent selectEduStudentById(Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询学生管理列表
|
* 查询学生管理列表
|
||||||
*
|
*
|
||||||
* @param csStudent 学生管理
|
* @param eduStudent 学生管理
|
||||||
* @return 学生管理集合
|
* @return 学生管理集合
|
||||||
*/
|
*/
|
||||||
public List<CsStudent> selectCsStudentList(CsStudent csStudent);
|
public List<EduStudent> selectEduStudentList(EduStudent eduStudent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增学生管理
|
* 新增学生管理
|
||||||
*
|
*
|
||||||
* @param csStudent 学生管理
|
* @param eduStudent 学生管理
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertCsStudent(CsStudent csStudent);
|
public int insertEduStudent(EduStudent eduStudent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改学生管理
|
* 修改学生管理
|
||||||
*
|
*
|
||||||
* @param csStudent 学生管理
|
* @param eduStudent 学生管理
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateCsStudent(CsStudent csStudent);
|
public int updateEduStudent(EduStudent eduStudent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除学生管理
|
* 删除学生管理
|
||||||
|
@ -49,7 +49,7 @@ public interface CsStudentMapper
|
||||||
* @param id 学生管理主键
|
* @param id 学生管理主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteCsStudentById(Long id);
|
public int deleteEduStudentById(Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除学生管理
|
* 批量删除学生管理
|
||||||
|
@ -57,5 +57,5 @@ public interface CsStudentMapper
|
||||||
* @param ids 需要删除的数据主键集合
|
* @param ids 需要删除的数据主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteCsStudentByIds(String[] ids);
|
public int deleteEduStudentByIds(String[] ids);
|
||||||
}
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.edu.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.edu.domain.EduTeacher;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 教师管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
public interface EduTeacherMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询教师管理
|
||||||
|
*
|
||||||
|
* @param id 教师管理主键
|
||||||
|
* @return 教师管理
|
||||||
|
*/
|
||||||
|
public EduTeacher selectEduTeacherById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询教师管理列表
|
||||||
|
*
|
||||||
|
* @param eduTeacher 教师管理
|
||||||
|
* @return 教师管理集合
|
||||||
|
*/
|
||||||
|
public List<EduTeacher> selectEduTeacherList(EduTeacher eduTeacher);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增教师管理
|
||||||
|
*
|
||||||
|
* @param eduTeacher 教师管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertEduTeacher(EduTeacher eduTeacher);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改教师管理
|
||||||
|
*
|
||||||
|
* @param eduTeacher 教师管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateEduTeacher(EduTeacher eduTeacher);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除教师管理
|
||||||
|
*
|
||||||
|
* @param id 教师管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEduTeacherById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除教师管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEduTeacherByIds(String[] ids);
|
||||||
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.edu.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.edu.domain.EduClazz;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 班级管理Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
public interface IEduClazzService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询班级管理
|
||||||
|
*
|
||||||
|
* @param id 班级管理主键
|
||||||
|
* @return 班级管理
|
||||||
|
*/
|
||||||
|
public EduClazz selectEduClazzById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询班级管理列表
|
||||||
|
*
|
||||||
|
* @param eduClazz 班级管理
|
||||||
|
* @return 班级管理集合
|
||||||
|
*/
|
||||||
|
public List<EduClazz> selectEduClazzList(EduClazz eduClazz);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增班级管理
|
||||||
|
*
|
||||||
|
* @param eduClazz 班级管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertEduClazz(EduClazz eduClazz);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改班级管理
|
||||||
|
*
|
||||||
|
* @param eduClazz 班级管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateEduClazz(EduClazz eduClazz);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除班级管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的班级管理主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEduClazzByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除班级管理信息
|
||||||
|
*
|
||||||
|
* @param id 班级管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEduClazzById(Long id);
|
||||||
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.edu.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.edu.domain.EduMenu;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 菜单管理Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
public interface IEduMenuService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询菜单管理
|
||||||
|
*
|
||||||
|
* @param id 菜单管理主键
|
||||||
|
* @return 菜单管理
|
||||||
|
*/
|
||||||
|
public EduMenu selectEduMenuById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询菜单管理列表
|
||||||
|
*
|
||||||
|
* @param eduMenu 菜单管理
|
||||||
|
* @return 菜单管理集合
|
||||||
|
*/
|
||||||
|
public List<EduMenu> selectEduMenuList(EduMenu eduMenu);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增菜单管理
|
||||||
|
*
|
||||||
|
* @param eduMenu 菜单管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertEduMenu(EduMenu eduMenu);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改菜单管理
|
||||||
|
*
|
||||||
|
* @param eduMenu 菜单管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateEduMenu(EduMenu eduMenu);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除菜单管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的菜单管理主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEduMenuByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除菜单管理信息
|
||||||
|
*
|
||||||
|
* @param id 菜单管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEduMenuById(Long id);
|
||||||
|
}
|
|
@ -1,15 +1,15 @@
|
||||||
package com.ruoyi.edu.service;
|
package com.ruoyi.edu.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.ruoyi.edu.domain.CsStudent;
|
import com.ruoyi.edu.domain.EduStudent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 学生管理Service接口
|
* 学生管理Service接口
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2023-04-17
|
* @date 2023-04-18
|
||||||
*/
|
*/
|
||||||
public interface ICsStudentService
|
public interface IEduStudentService
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询学生管理
|
* 查询学生管理
|
||||||
|
@ -17,31 +17,31 @@ public interface ICsStudentService
|
||||||
* @param id 学生管理主键
|
* @param id 学生管理主键
|
||||||
* @return 学生管理
|
* @return 学生管理
|
||||||
*/
|
*/
|
||||||
public CsStudent selectCsStudentById(Long id);
|
public EduStudent selectEduStudentById(Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询学生管理列表
|
* 查询学生管理列表
|
||||||
*
|
*
|
||||||
* @param csStudent 学生管理
|
* @param eduStudent 学生管理
|
||||||
* @return 学生管理集合
|
* @return 学生管理集合
|
||||||
*/
|
*/
|
||||||
public List<CsStudent> selectCsStudentList(CsStudent csStudent);
|
public List<EduStudent> selectEduStudentList(EduStudent eduStudent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增学生管理
|
* 新增学生管理
|
||||||
*
|
*
|
||||||
* @param csStudent 学生管理
|
* @param eduStudent 学生管理
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertCsStudent(CsStudent csStudent);
|
public int insertEduStudent(EduStudent eduStudent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改学生管理
|
* 修改学生管理
|
||||||
*
|
*
|
||||||
* @param csStudent 学生管理
|
* @param eduStudent 学生管理
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateCsStudent(CsStudent csStudent);
|
public int updateEduStudent(EduStudent eduStudent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除学生管理
|
* 批量删除学生管理
|
||||||
|
@ -49,7 +49,7 @@ public interface ICsStudentService
|
||||||
* @param ids 需要删除的学生管理主键集合
|
* @param ids 需要删除的学生管理主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteCsStudentByIds(String ids);
|
public int deleteEduStudentByIds(String ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除学生管理信息
|
* 删除学生管理信息
|
||||||
|
@ -57,5 +57,5 @@ public interface ICsStudentService
|
||||||
* @param id 学生管理主键
|
* @param id 学生管理主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteCsStudentById(Long id);
|
public int deleteEduStudentById(Long id);
|
||||||
}
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.edu.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.edu.domain.EduTeacher;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 教师管理Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
public interface IEduTeacherService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询教师管理
|
||||||
|
*
|
||||||
|
* @param id 教师管理主键
|
||||||
|
* @return 教师管理
|
||||||
|
*/
|
||||||
|
public EduTeacher selectEduTeacherById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询教师管理列表
|
||||||
|
*
|
||||||
|
* @param eduTeacher 教师管理
|
||||||
|
* @return 教师管理集合
|
||||||
|
*/
|
||||||
|
public List<EduTeacher> selectEduTeacherList(EduTeacher eduTeacher);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增教师管理
|
||||||
|
*
|
||||||
|
* @param eduTeacher 教师管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertEduTeacher(EduTeacher eduTeacher);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改教师管理
|
||||||
|
*
|
||||||
|
* @param eduTeacher 教师管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateEduTeacher(EduTeacher eduTeacher);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除教师管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的教师管理主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEduTeacherByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除教师管理信息
|
||||||
|
*
|
||||||
|
* @param id 教师管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEduTeacherById(Long id);
|
||||||
|
}
|
|
@ -0,0 +1,94 @@
|
||||||
|
package com.ruoyi.edu.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.edu.mapper.EduClazzMapper;
|
||||||
|
import com.ruoyi.edu.domain.EduClazz;
|
||||||
|
import com.ruoyi.edu.service.IEduClazzService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 班级管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class EduClazzServiceImpl implements IEduClazzService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private EduClazzMapper eduClazzMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询班级管理
|
||||||
|
*
|
||||||
|
* @param id 班级管理主键
|
||||||
|
* @return 班级管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public EduClazz selectEduClazzById(Long id)
|
||||||
|
{
|
||||||
|
return eduClazzMapper.selectEduClazzById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询班级管理列表
|
||||||
|
*
|
||||||
|
* @param eduClazz 班级管理
|
||||||
|
* @return 班级管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<EduClazz> selectEduClazzList(EduClazz eduClazz)
|
||||||
|
{
|
||||||
|
return eduClazzMapper.selectEduClazzList(eduClazz);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增班级管理
|
||||||
|
*
|
||||||
|
* @param eduClazz 班级管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertEduClazz(EduClazz eduClazz)
|
||||||
|
{
|
||||||
|
return eduClazzMapper.insertEduClazz(eduClazz);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改班级管理
|
||||||
|
*
|
||||||
|
* @param eduClazz 班级管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateEduClazz(EduClazz eduClazz)
|
||||||
|
{
|
||||||
|
return eduClazzMapper.updateEduClazz(eduClazz);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除班级管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的班级管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEduClazzByIds(String ids)
|
||||||
|
{
|
||||||
|
return eduClazzMapper.deleteEduClazzByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除班级管理信息
|
||||||
|
*
|
||||||
|
* @param id 班级管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEduClazzById(Long id)
|
||||||
|
{
|
||||||
|
return eduClazzMapper.deleteEduClazzById(id);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,94 @@
|
||||||
|
package com.ruoyi.edu.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.edu.mapper.EduMenuMapper;
|
||||||
|
import com.ruoyi.edu.domain.EduMenu;
|
||||||
|
import com.ruoyi.edu.service.IEduMenuService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 菜单管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class EduMenuServiceImpl implements IEduMenuService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private EduMenuMapper eduMenuMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询菜单管理
|
||||||
|
*
|
||||||
|
* @param id 菜单管理主键
|
||||||
|
* @return 菜单管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public EduMenu selectEduMenuById(Long id)
|
||||||
|
{
|
||||||
|
return eduMenuMapper.selectEduMenuById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询菜单管理列表
|
||||||
|
*
|
||||||
|
* @param eduMenu 菜单管理
|
||||||
|
* @return 菜单管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<EduMenu> selectEduMenuList(EduMenu eduMenu)
|
||||||
|
{
|
||||||
|
return eduMenuMapper.selectEduMenuList(eduMenu);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增菜单管理
|
||||||
|
*
|
||||||
|
* @param eduMenu 菜单管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertEduMenu(EduMenu eduMenu)
|
||||||
|
{
|
||||||
|
return eduMenuMapper.insertEduMenu(eduMenu);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改菜单管理
|
||||||
|
*
|
||||||
|
* @param eduMenu 菜单管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateEduMenu(EduMenu eduMenu)
|
||||||
|
{
|
||||||
|
return eduMenuMapper.updateEduMenu(eduMenu);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除菜单管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的菜单管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEduMenuByIds(String ids)
|
||||||
|
{
|
||||||
|
return eduMenuMapper.deleteEduMenuByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除菜单管理信息
|
||||||
|
*
|
||||||
|
* @param id 菜单管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEduMenuById(Long id)
|
||||||
|
{
|
||||||
|
return eduMenuMapper.deleteEduMenuById(id);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,94 @@
|
||||||
|
package com.ruoyi.edu.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.edu.mapper.EduStudentMapper;
|
||||||
|
import com.ruoyi.edu.domain.EduStudent;
|
||||||
|
import com.ruoyi.edu.service.IEduStudentService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 学生管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class EduStudentServiceImpl implements IEduStudentService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private EduStudentMapper eduStudentMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询学生管理
|
||||||
|
*
|
||||||
|
* @param id 学生管理主键
|
||||||
|
* @return 学生管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public EduStudent selectEduStudentById(Long id)
|
||||||
|
{
|
||||||
|
return eduStudentMapper.selectEduStudentById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询学生管理列表
|
||||||
|
*
|
||||||
|
* @param eduStudent 学生管理
|
||||||
|
* @return 学生管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<EduStudent> selectEduStudentList(EduStudent eduStudent)
|
||||||
|
{
|
||||||
|
return eduStudentMapper.selectEduStudentList(eduStudent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增学生管理
|
||||||
|
*
|
||||||
|
* @param eduStudent 学生管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertEduStudent(EduStudent eduStudent)
|
||||||
|
{
|
||||||
|
return eduStudentMapper.insertEduStudent(eduStudent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改学生管理
|
||||||
|
*
|
||||||
|
* @param eduStudent 学生管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateEduStudent(EduStudent eduStudent)
|
||||||
|
{
|
||||||
|
return eduStudentMapper.updateEduStudent(eduStudent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除学生管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的学生管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEduStudentByIds(String ids)
|
||||||
|
{
|
||||||
|
return eduStudentMapper.deleteEduStudentByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除学生管理信息
|
||||||
|
*
|
||||||
|
* @param id 学生管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEduStudentById(Long id)
|
||||||
|
{
|
||||||
|
return eduStudentMapper.deleteEduStudentById(id);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,94 @@
|
||||||
|
package com.ruoyi.edu.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.edu.mapper.EduTeacherMapper;
|
||||||
|
import com.ruoyi.edu.domain.EduTeacher;
|
||||||
|
import com.ruoyi.edu.service.IEduTeacherService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 教师管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-04-18
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class EduTeacherServiceImpl implements IEduTeacherService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private EduTeacherMapper eduTeacherMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询教师管理
|
||||||
|
*
|
||||||
|
* @param id 教师管理主键
|
||||||
|
* @return 教师管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public EduTeacher selectEduTeacherById(Long id)
|
||||||
|
{
|
||||||
|
return eduTeacherMapper.selectEduTeacherById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询教师管理列表
|
||||||
|
*
|
||||||
|
* @param eduTeacher 教师管理
|
||||||
|
* @return 教师管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<EduTeacher> selectEduTeacherList(EduTeacher eduTeacher)
|
||||||
|
{
|
||||||
|
return eduTeacherMapper.selectEduTeacherList(eduTeacher);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增教师管理
|
||||||
|
*
|
||||||
|
* @param eduTeacher 教师管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertEduTeacher(EduTeacher eduTeacher)
|
||||||
|
{
|
||||||
|
return eduTeacherMapper.insertEduTeacher(eduTeacher);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改教师管理
|
||||||
|
*
|
||||||
|
* @param eduTeacher 教师管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateEduTeacher(EduTeacher eduTeacher)
|
||||||
|
{
|
||||||
|
return eduTeacherMapper.updateEduTeacher(eduTeacher);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除教师管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的教师管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEduTeacherByIds(String ids)
|
||||||
|
{
|
||||||
|
return eduTeacherMapper.deleteEduTeacherByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除教师管理信息
|
||||||
|
*
|
||||||
|
* @param id 教师管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEduTeacherById(Long id)
|
||||||
|
{
|
||||||
|
return eduTeacherMapper.deleteEduTeacherById(id);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,67 @@
|
||||||
|
<?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.edu.mapper.EduClazzMapper">
|
||||||
|
|
||||||
|
<resultMap type="EduClazz" id="EduClazzResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="clazzName" column="clazz_name" />
|
||||||
|
<result property="clazzCount" column="clazz_count" />
|
||||||
|
<result property="visible" column="visible" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectEduClazzVo">
|
||||||
|
select id, clazz_name, clazz_count, visible from edu_clazz
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectEduClazzList" parameterType="EduClazz" resultMap="EduClazzResult">
|
||||||
|
<include refid="selectEduClazzVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="clazzName != null and clazzName != ''"> and clazz_name like concat('%', #{clazzName}, '%')</if>
|
||||||
|
<if test="clazzCount != null and clazzCount != ''"> and clazz_count = #{clazzCount}</if>
|
||||||
|
<if test="visible != null and visible != ''"> and visible = #{visible}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectEduClazzById" parameterType="Long" resultMap="EduClazzResult">
|
||||||
|
<include refid="selectEduClazzVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertEduClazz" parameterType="EduClazz" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into edu_clazz
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="clazzName != null">clazz_name,</if>
|
||||||
|
<if test="clazzCount != null">clazz_count,</if>
|
||||||
|
<if test="visible != null">visible,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="clazzName != null">#{clazzName},</if>
|
||||||
|
<if test="clazzCount != null">#{clazzCount},</if>
|
||||||
|
<if test="visible != null">#{visible},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateEduClazz" parameterType="EduClazz">
|
||||||
|
update edu_clazz
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="clazzName != null">clazz_name = #{clazzName},</if>
|
||||||
|
<if test="clazzCount != null">clazz_count = #{clazzCount},</if>
|
||||||
|
<if test="visible != null">visible = #{visible},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteEduClazzById" parameterType="Long">
|
||||||
|
delete from edu_clazz where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteEduClazzByIds" parameterType="String">
|
||||||
|
delete from edu_clazz where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,82 @@
|
||||||
|
<?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.edu.mapper.EduMenuMapper">
|
||||||
|
|
||||||
|
<resultMap type="EduMenu" id="EduMenuResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="menuName" column="menu_name" />
|
||||||
|
<result property="menuUrl" column="menu_url" />
|
||||||
|
<result property="menuImg" column="menu_img" />
|
||||||
|
<result property="menuVisible" column="menu_visible" />
|
||||||
|
<result property="menuFlag" column="menu_flag" />
|
||||||
|
<result property="menuOrdernum" column="menu_ordernum" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectEduMenuVo">
|
||||||
|
select id, menu_name, menu_url, menu_img, menu_visible, menu_flag, menu_ordernum from edu_menu
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectEduMenuList" parameterType="EduMenu" resultMap="EduMenuResult">
|
||||||
|
<include refid="selectEduMenuVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="menuName != null and menuName != ''"> and menu_name like concat('%', #{menuName}, '%')</if>
|
||||||
|
<if test="menuUrl != null and menuUrl != ''"> and menu_url = #{menuUrl}</if>
|
||||||
|
<if test="menuImg != null and menuImg != ''"> and menu_img = #{menuImg}</if>
|
||||||
|
<if test="menuVisible != null and menuVisible != ''"> and menu_visible = #{menuVisible}</if>
|
||||||
|
<if test="menuFlag != null "> and menu_flag = #{menuFlag}</if>
|
||||||
|
<if test="menuOrdernum != null "> and menu_ordernum = #{menuOrdernum}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectEduMenuById" parameterType="Long" resultMap="EduMenuResult">
|
||||||
|
<include refid="selectEduMenuVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertEduMenu" parameterType="EduMenu" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into edu_menu
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="menuName != null">menu_name,</if>
|
||||||
|
<if test="menuUrl != null">menu_url,</if>
|
||||||
|
<if test="menuImg != null">menu_img,</if>
|
||||||
|
<if test="menuVisible != null">menu_visible,</if>
|
||||||
|
<if test="menuFlag != null">menu_flag,</if>
|
||||||
|
<if test="menuOrdernum != null">menu_ordernum,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="menuName != null">#{menuName},</if>
|
||||||
|
<if test="menuUrl != null">#{menuUrl},</if>
|
||||||
|
<if test="menuImg != null">#{menuImg},</if>
|
||||||
|
<if test="menuVisible != null">#{menuVisible},</if>
|
||||||
|
<if test="menuFlag != null">#{menuFlag},</if>
|
||||||
|
<if test="menuOrdernum != null">#{menuOrdernum},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateEduMenu" parameterType="EduMenu">
|
||||||
|
update edu_menu
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="menuName != null">menu_name = #{menuName},</if>
|
||||||
|
<if test="menuUrl != null">menu_url = #{menuUrl},</if>
|
||||||
|
<if test="menuImg != null">menu_img = #{menuImg},</if>
|
||||||
|
<if test="menuVisible != null">menu_visible = #{menuVisible},</if>
|
||||||
|
<if test="menuFlag != null">menu_flag = #{menuFlag},</if>
|
||||||
|
<if test="menuOrdernum != null">menu_ordernum = #{menuOrdernum},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteEduMenuById" parameterType="Long">
|
||||||
|
delete from edu_menu where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteEduMenuByIds" parameterType="String">
|
||||||
|
delete from edu_menu where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,72 @@
|
||||||
|
<?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.edu.mapper.EduStudentMapper">
|
||||||
|
|
||||||
|
<resultMap type="EduStudent" id="EduStudentResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="stuSno" column="stu_sno" />
|
||||||
|
<result property="stuName" column="stu_name" />
|
||||||
|
<result property="stuNcid" column="stu_ncid" />
|
||||||
|
<result property="stuOcid" column="stu_ocid" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectEduStudentVo">
|
||||||
|
select id, stu_sno, stu_name, stu_ncid, stu_ocid from edu_student
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectEduStudentList" parameterType="EduStudent" resultMap="EduStudentResult">
|
||||||
|
<include refid="selectEduStudentVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="stuSno != null and stuSno != ''"> and stu_sno = #{stuSno}</if>
|
||||||
|
<if test="stuName != null and stuName != ''"> and stu_name like concat('%', #{stuName}, '%')</if>
|
||||||
|
<if test="stuNcid != null and stuNcid != ''"> and stu_ncid = #{stuNcid}</if>
|
||||||
|
<if test="stuOcid != null and stuOcid != ''"> and stu_ocid = #{stuOcid}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectEduStudentById" parameterType="Long" resultMap="EduStudentResult">
|
||||||
|
<include refid="selectEduStudentVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertEduStudent" parameterType="EduStudent" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into edu_student
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="stuSno != null">stu_sno,</if>
|
||||||
|
<if test="stuName != null">stu_name,</if>
|
||||||
|
<if test="stuNcid != null">stu_ncid,</if>
|
||||||
|
<if test="stuOcid != null">stu_ocid,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="stuSno != null">#{stuSno},</if>
|
||||||
|
<if test="stuName != null">#{stuName},</if>
|
||||||
|
<if test="stuNcid != null">#{stuNcid},</if>
|
||||||
|
<if test="stuOcid != null">#{stuOcid},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateEduStudent" parameterType="EduStudent">
|
||||||
|
update edu_student
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="stuSno != null">stu_sno = #{stuSno},</if>
|
||||||
|
<if test="stuName != null">stu_name = #{stuName},</if>
|
||||||
|
<if test="stuNcid != null">stu_ncid = #{stuNcid},</if>
|
||||||
|
<if test="stuOcid != null">stu_ocid = #{stuOcid},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteEduStudentById" parameterType="Long">
|
||||||
|
delete from edu_student where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteEduStudentByIds" parameterType="String">
|
||||||
|
delete from edu_student where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,77 @@
|
||||||
|
<?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.edu.mapper.EduTeacherMapper">
|
||||||
|
|
||||||
|
<resultMap type="EduTeacher" id="EduTeacherResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="teaSno" column="tea_sno" />
|
||||||
|
<result property="teaName" column="tea_name" />
|
||||||
|
<result property="flag" column="flag" />
|
||||||
|
<result property="teaTitle" column="tea_title" />
|
||||||
|
<result property="deptId" column="dept_id" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectEduTeacherVo">
|
||||||
|
select id, tea_sno, tea_name, flag, tea_title, dept_id from edu_teacher
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectEduTeacherList" parameterType="EduTeacher" resultMap="EduTeacherResult">
|
||||||
|
<include refid="selectEduTeacherVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="teaSno != null "> and tea_sno = #{teaSno}</if>
|
||||||
|
<if test="teaName != null and teaName != ''"> and tea_name like concat('%', #{teaName}, '%')</if>
|
||||||
|
<if test="flag != null and flag != ''"> and flag = #{flag}</if>
|
||||||
|
<if test="teaTitle != null and teaTitle != ''"> and tea_title = #{teaTitle}</if>
|
||||||
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectEduTeacherById" parameterType="Long" resultMap="EduTeacherResult">
|
||||||
|
<include refid="selectEduTeacherVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertEduTeacher" parameterType="EduTeacher" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into edu_teacher
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="teaSno != null">tea_sno,</if>
|
||||||
|
<if test="teaName != null">tea_name,</if>
|
||||||
|
<if test="flag != null">flag,</if>
|
||||||
|
<if test="teaTitle != null">tea_title,</if>
|
||||||
|
<if test="deptId != null">dept_id,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="teaSno != null">#{teaSno},</if>
|
||||||
|
<if test="teaName != null">#{teaName},</if>
|
||||||
|
<if test="flag != null">#{flag},</if>
|
||||||
|
<if test="teaTitle != null">#{teaTitle},</if>
|
||||||
|
<if test="deptId != null">#{deptId},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateEduTeacher" parameterType="EduTeacher">
|
||||||
|
update edu_teacher
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="teaSno != null">tea_sno = #{teaSno},</if>
|
||||||
|
<if test="teaName != null">tea_name = #{teaName},</if>
|
||||||
|
<if test="flag != null">flag = #{flag},</if>
|
||||||
|
<if test="teaTitle != null">tea_title = #{teaTitle},</if>
|
||||||
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteEduTeacherById" parameterType="Long">
|
||||||
|
delete from edu_teacher where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteEduTeacherByIds" parameterType="String">
|
||||||
|
delete from edu_teacher where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,43 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('新增班级管理')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-clazz-add">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">班级名字:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="clazzName" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">班级人数:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="clazzCount" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">状态:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="visible" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "edu/clazz"
|
||||||
|
$("#form-clazz-add").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/add", $('#form-clazz-add').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,102 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('班级管理列表')" />
|
||||||
|
</head>
|
||||||
|
<body class="gray-bg">
|
||||||
|
<div class="container-div">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12 search-collapse">
|
||||||
|
<form id="formId">
|
||||||
|
<div class="select-list">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<label>班级名字:</label>
|
||||||
|
<input type="text" name="clazzName"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>班级人数:</label>
|
||||||
|
<input type="text" name="clazzCount"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>状态:</label>
|
||||||
|
<input type="text" name="visible"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||||
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="btn-group-sm" id="toolbar" role="group">
|
||||||
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="edu:clazz:add">
|
||||||
|
<i class="fa fa-plus"></i> 添加
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="edu:clazz:edit">
|
||||||
|
<i class="fa fa-edit"></i> 修改
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="edu:clazz:remove">
|
||||||
|
<i class="fa fa-remove"></i> 删除
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="edu:clazz:export">
|
||||||
|
<i class="fa fa-download"></i> 导出
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12 select-table table-striped">
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var editFlag = [[${@permission.hasPermi('edu:clazz:edit')}]];
|
||||||
|
var removeFlag = [[${@permission.hasPermi('edu:clazz:remove')}]];
|
||||||
|
var prefix = ctx + "edu/clazz";
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/list",
|
||||||
|
createUrl: prefix + "/add",
|
||||||
|
updateUrl: prefix + "/edit/{id}",
|
||||||
|
removeUrl: prefix + "/remove",
|
||||||
|
exportUrl: prefix + "/export",
|
||||||
|
modalName: "班级管理",
|
||||||
|
columns: [{
|
||||||
|
checkbox: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'id',
|
||||||
|
title: 'id',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'clazzName',
|
||||||
|
title: '班级名字'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'clazzCount',
|
||||||
|
title: '班级人数'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'visible',
|
||||||
|
title: '状态'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
align: 'center',
|
||||||
|
formatter: function(value, row, index) {
|
||||||
|
var actions = [];
|
||||||
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||||
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||||
|
return actions.join('');
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,44 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('修改班级管理')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-clazz-edit" th:object="${eduClazz}">
|
||||||
|
<input name="id" th:field="*{id}" type="hidden">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">班级名字:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="clazzName" th:field="*{clazzName}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">班级人数:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="clazzCount" th:field="*{clazzCount}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">状态:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="visible" th:field="*{visible}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "edu/clazz";
|
||||||
|
$("#form-clazz-edit").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/edit", $('#form-clazz-edit').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,61 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('新增菜单管理')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-menu-add">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">菜单名:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="menuName" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">路由:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="menuUrl" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">菜单图标:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="menuImg" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">菜单状态:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="menuVisible" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">隐藏状态:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="menuFlag" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">菜单排序:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="menuOrdernum" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "edu/menu"
|
||||||
|
$("#form-menu-add").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/add", $('#form-menu-add').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,62 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('修改菜单管理')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-menu-edit" th:object="${eduMenu}">
|
||||||
|
<input name="id" th:field="*{id}" type="hidden">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">菜单名:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="menuName" th:field="*{menuName}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">路由:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="menuUrl" th:field="*{menuUrl}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">菜单图标:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="menuImg" th:field="*{menuImg}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">菜单状态:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="menuVisible" th:field="*{menuVisible}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">隐藏状态:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="menuFlag" th:field="*{menuFlag}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">菜单排序:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="menuOrdernum" th:field="*{menuOrdernum}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "edu/menu";
|
||||||
|
$("#form-menu-edit").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/edit", $('#form-menu-edit').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,126 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('菜单管理列表')" />
|
||||||
|
</head>
|
||||||
|
<body class="gray-bg">
|
||||||
|
<div class="container-div">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12 search-collapse">
|
||||||
|
<form id="formId">
|
||||||
|
<div class="select-list">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<label>菜单名:</label>
|
||||||
|
<input type="text" name="menuName"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>路由:</label>
|
||||||
|
<input type="text" name="menuUrl"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>菜单图标:</label>
|
||||||
|
<input type="text" name="menuImg"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>菜单状态:</label>
|
||||||
|
<input type="text" name="menuVisible"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>隐藏状态:</label>
|
||||||
|
<input type="text" name="menuFlag"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>菜单排序:</label>
|
||||||
|
<input type="text" name="menuOrdernum"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||||
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="btn-group-sm" id="toolbar" role="group">
|
||||||
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="edu:menu:add">
|
||||||
|
<i class="fa fa-plus"></i> 添加
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="edu:menu:edit">
|
||||||
|
<i class="fa fa-edit"></i> 修改
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="edu:menu:remove">
|
||||||
|
<i class="fa fa-remove"></i> 删除
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="edu:menu:export">
|
||||||
|
<i class="fa fa-download"></i> 导出
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12 select-table table-striped">
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var editFlag = [[${@permission.hasPermi('edu:menu:edit')}]];
|
||||||
|
var removeFlag = [[${@permission.hasPermi('edu:menu:remove')}]];
|
||||||
|
var prefix = ctx + "edu/menu";
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/list",
|
||||||
|
createUrl: prefix + "/add",
|
||||||
|
updateUrl: prefix + "/edit/{id}",
|
||||||
|
removeUrl: prefix + "/remove",
|
||||||
|
exportUrl: prefix + "/export",
|
||||||
|
modalName: "菜单管理",
|
||||||
|
columns: [{
|
||||||
|
checkbox: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'id',
|
||||||
|
title: '',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'menuName',
|
||||||
|
title: '菜单名'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'menuUrl',
|
||||||
|
title: '路由'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'menuImg',
|
||||||
|
title: '菜单图标'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'menuVisible',
|
||||||
|
title: '菜单状态'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'menuFlag',
|
||||||
|
title: '隐藏状态'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'menuOrdernum',
|
||||||
|
title: '菜单排序'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
align: 'center',
|
||||||
|
formatter: function(value, row, index) {
|
||||||
|
var actions = [];
|
||||||
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||||
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||||
|
return actions.join('');
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,49 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('新增学生管理')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-student-add">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">学号:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="stuSno" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">姓名:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="stuName" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">新班级:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="stuNcid" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">旧班级:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="stuOcid" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "edu/student"
|
||||||
|
$("#form-student-add").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/add", $('#form-student-add').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,50 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('修改学生管理')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-student-edit" th:object="${eduStudent}">
|
||||||
|
<input name="id" th:field="*{id}" type="hidden">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">学号:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="stuSno" th:field="*{stuSno}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">姓名:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="stuName" th:field="*{stuName}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">新班级:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="stuNcid" th:field="*{stuNcid}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">旧班级:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="stuOcid" th:field="*{stuOcid}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "edu/student";
|
||||||
|
$("#form-student-edit").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/edit", $('#form-student-edit').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -10,25 +10,21 @@
|
||||||
<form id="formId">
|
<form id="formId">
|
||||||
<div class="select-list">
|
<div class="select-list">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>
|
||||||
|
<label>学号:</label>
|
||||||
|
<input type="text" name="stuSno"/>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>姓名:</label>
|
<label>姓名:</label>
|
||||||
<input type="text" name="name"/>
|
<input type="text" name="stuName"/>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>性别:</label>
|
<label>新班级:</label>
|
||||||
<input type="text" name="sex"/>
|
<input type="text" name="stuNcid"/>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>年龄:</label>
|
<label>旧班级:</label>
|
||||||
<input type="text" name="age"/>
|
<input type="text" name="stuOcid"/>
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label>部门:</label>
|
|
||||||
<input type="text" name="depart"/>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label>班级:</label>
|
|
||||||
<input type="text" name="cclass"/>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||||
|
@ -81,24 +77,20 @@
|
||||||
visible: false
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'name',
|
field: 'stuSno',
|
||||||
|
title: '学号'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'stuName',
|
||||||
title: '姓名'
|
title: '姓名'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'sex',
|
field: 'stuNcid',
|
||||||
title: '性别'
|
title: '新班级'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'age',
|
field: 'stuOcid',
|
||||||
title: '年龄'
|
title: '旧班级'
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'depart',
|
|
||||||
title: '部门'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'cclass',
|
|
||||||
title: '班级'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
|
@ -0,0 +1,55 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('新增教师管理')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-teacher-add">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">工号:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="teaSno" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">教师姓名:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="teaName" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">身份:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="flag" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">职称:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="teaTitle" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">所属部门:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="deptId" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "edu/teacher"
|
||||||
|
$("#form-teacher-add").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/add", $('#form-teacher-add').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,56 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('修改教师管理')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-teacher-edit" th:object="${eduTeacher}">
|
||||||
|
<input name="id" th:field="*{id}" type="hidden">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">工号:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="teaSno" th:field="*{teaSno}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">教师姓名:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="teaName" th:field="*{teaName}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">身份:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="flag" th:field="*{flag}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">职称:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="teaTitle" th:field="*{teaTitle}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">所属部门:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="deptId" th:field="*{deptId}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "edu/teacher";
|
||||||
|
$("#form-teacher-edit").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/edit", $('#form-teacher-edit').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,118 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('教师管理列表')" />
|
||||||
|
</head>
|
||||||
|
<body class="gray-bg">
|
||||||
|
<div class="container-div">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12 search-collapse">
|
||||||
|
<form id="formId">
|
||||||
|
<div class="select-list">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<label>工号:</label>
|
||||||
|
<input type="text" name="teaSno"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>教师姓名:</label>
|
||||||
|
<input type="text" name="teaName"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>身份:</label>
|
||||||
|
<input type="text" name="flag"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>职称:</label>
|
||||||
|
<input type="text" name="teaTitle"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>所属部门:</label>
|
||||||
|
<input type="text" name="deptId"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||||
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="btn-group-sm" id="toolbar" role="group">
|
||||||
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="edu:teacher:add">
|
||||||
|
<i class="fa fa-plus"></i> 添加
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="edu:teacher:edit">
|
||||||
|
<i class="fa fa-edit"></i> 修改
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="edu:teacher:remove">
|
||||||
|
<i class="fa fa-remove"></i> 删除
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="edu:teacher:export">
|
||||||
|
<i class="fa fa-download"></i> 导出
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12 select-table table-striped">
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var editFlag = [[${@permission.hasPermi('edu:teacher:edit')}]];
|
||||||
|
var removeFlag = [[${@permission.hasPermi('edu:teacher:remove')}]];
|
||||||
|
var prefix = ctx + "edu/teacher";
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/list",
|
||||||
|
createUrl: prefix + "/add",
|
||||||
|
updateUrl: prefix + "/edit/{id}",
|
||||||
|
removeUrl: prefix + "/remove",
|
||||||
|
exportUrl: prefix + "/export",
|
||||||
|
modalName: "教师管理",
|
||||||
|
columns: [{
|
||||||
|
checkbox: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'id',
|
||||||
|
title: 'ID',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'teaSno',
|
||||||
|
title: '工号'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'teaName',
|
||||||
|
title: '教师姓名'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'flag',
|
||||||
|
title: '身份'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'teaTitle',
|
||||||
|
title: '职称'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'deptId',
|
||||||
|
title: '所属部门'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
align: 'center',
|
||||||
|
formatter: function(value, row, index) {
|
||||||
|
var actions = [];
|
||||||
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||||
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||||
|
return actions.join('');
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue