改了首页,加了学生表。

pull/1136/head
15892072232 2025-10-23 11:46:18 +08:00
parent 91b63f9714
commit 1d9b584e2f
19 changed files with 859 additions and 19 deletions

View File

@ -0,0 +1,131 @@
package com.ruoyi.system.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;
/**
* student_info
*
* @author ruoyi
* @date 2025-10-23
*/
public class StudentInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 学生ID */
private Long studentId;
/** 学生姓名 */
@Excel(name = "学生姓名")
private String studentName;
/** 头像地址 */
@Excel(name = "头像地址")
private String avatar;
/** 个人介绍 */
@Excel(name = "个人介绍")
private String introduction;
/** 学生性别0男 1女 */
@Excel(name = "学生性别", readConverterExp = "0=男,1=女")
private String gender;
/** 学生状态0正常 1停用 */
@Excel(name = "学生状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
public void setStudentId(Long studentId)
{
this.studentId = studentId;
}
public Long getStudentId()
{
return studentId;
}
public void setStudentName(String studentName)
{
this.studentName = studentName;
}
public String getStudentName()
{
return studentName;
}
public void setAvatar(String avatar)
{
this.avatar = avatar;
}
public String getAvatar()
{
return avatar;
}
public void setIntroduction(String introduction)
{
this.introduction = introduction;
}
public String getIntroduction()
{
return introduction;
}
public void setGender(String gender)
{
this.gender = gender;
}
public String getGender()
{
return gender;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("studentId", getStudentId())
.append("studentName", getStudentName())
.append("avatar", getAvatar())
.append("introduction", getIntroduction())
.append("gender", getGender())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.StudentInfo;
/**
* Mapper
*
* @author ruoyi
* @date 2025-10-23
*/
public interface StudentInfoMapper
{
/**
*
*
* @param studentId
* @return
*/
public StudentInfo selectStudentInfoByStudentId(Long studentId);
/**
*
*
* @param studentInfo
* @return
*/
public List<StudentInfo> selectStudentInfoList(StudentInfo studentInfo);
/**
*
*
* @param studentInfo
* @return
*/
public int insertStudentInfo(StudentInfo studentInfo);
/**
*
*
* @param studentInfo
* @return
*/
public int updateStudentInfo(StudentInfo studentInfo);
/**
*
*
* @param studentId
* @return
*/
public int deleteStudentInfoByStudentId(Long studentId);
/**
*
*
* @param studentIds
* @return
*/
public int deleteStudentInfoByStudentIds(Long[] studentIds);
}

View File

@ -0,0 +1,69 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.StudentInfo;
/**
* Service
*
* @author ruoyi
* @date 2025-10-23
*/
public interface IStudentInfoService
{
/**
*
*
* @param studentId
* @return
*/
public StudentInfo selectStudentInfoByStudentId(Long studentId);
/**
*
*
* @param studentInfo
* @return
*/
public List<StudentInfo> selectStudentInfoList(StudentInfo studentInfo);
/**
*
*
* @param studentInfo
* @return
*/
public int insertStudentInfo(StudentInfo studentInfo);
/**
*
*
* @param studentInfo
* @return
*/
public int updateStudentInfo(StudentInfo studentInfo);
/**
*
*
* @param studentIds
* @return
*/
public int deleteStudentInfoByStudentIds(Long[] studentIds);
/**
*
*
* @param studentId
* @return
*/
public int deleteStudentInfoByStudentId(Long studentId);
/**
*
*
* @param studentInfo
* @return
*/
public int changeStudentStatus(StudentInfo studentInfo);
}

View File

@ -0,0 +1,109 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StudentInfoMapper;
import com.ruoyi.system.domain.StudentInfo;
import com.ruoyi.system.service.IStudentInfoService;
/**
* Service
*
* @author ruoyi
* @date 2025-10-23
*/
@Service
public class StudentInfoServiceImpl implements IStudentInfoService
{
@Autowired
private StudentInfoMapper studentInfoMapper;
/**
*
*
* @param studentId
* @return
*/
@Override
public StudentInfo selectStudentInfoByStudentId(Long studentId)
{
return studentInfoMapper.selectStudentInfoByStudentId(studentId);
}
/**
*
*
* @param studentInfo
* @return
*/
@Override
public List<StudentInfo> selectStudentInfoList(StudentInfo studentInfo)
{
return studentInfoMapper.selectStudentInfoList(studentInfo);
}
/**
*
*
* @param studentInfo
* @return
*/
@Override
public int insertStudentInfo(StudentInfo studentInfo)
{
studentInfo.setCreateTime(DateUtils.getNowDate());
return studentInfoMapper.insertStudentInfo(studentInfo);
}
/**
*
*
* @param studentInfo
* @return
*/
@Override
public int updateStudentInfo(StudentInfo studentInfo)
{
studentInfo.setUpdateTime(DateUtils.getNowDate());
return studentInfoMapper.updateStudentInfo(studentInfo);
}
/**
*
*
* @param studentIds
* @return
*/
@Override
public int deleteStudentInfoByStudentIds(Long[] studentIds)
{
return studentInfoMapper.deleteStudentInfoByStudentIds(studentIds);
}
/**
*
*
* @param studentId
* @return
*/
@Override
public int deleteStudentInfoByStudentId(Long studentId)
{
return studentInfoMapper.deleteStudentInfoByStudentId(studentId);
}
/**
*
*
* @param studentInfo
* @return
*/
@Override
public int changeStudentStatus(StudentInfo studentInfo)
{
studentInfo.setUpdateTime(DateUtils.getNowDate());
return studentInfoMapper.updateStudentInfo(studentInfo);
}
}

View File

@ -0,0 +1,98 @@
<?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.system.mapper.StudentInfoMapper">
<resultMap type="StudentInfo" id="StudentInfoResult">
<result property="studentId" column="student_id" />
<result property="studentName" column="student_name" />
<result property="avatar" column="avatar" />
<result property="introduction" column="introduction" />
<result property="gender" column="gender" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectStudentInfoVo">
select student_id, student_name, avatar, introduction, gender, status, del_flag, create_by, create_time, update_by, update_time, remark from student_info
</sql>
<select id="selectStudentInfoList" parameterType="StudentInfo" resultMap="StudentInfoResult">
<include refid="selectStudentInfoVo"/>
<where>
<if test="studentName != null and studentName != ''"> and student_name like concat('%', #{studentName}, '%')</if>
<if test="gender != null and gender != ''"> and gender = #{gender}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectStudentInfoByStudentId" parameterType="Long" resultMap="StudentInfoResult">
<include refid="selectStudentInfoVo"/>
where student_id = #{studentId}
</select>
<insert id="insertStudentInfo" parameterType="StudentInfo" useGeneratedKeys="true" keyProperty="studentId">
insert into student_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="studentName != null and studentName != ''">student_name,</if>
<if test="avatar != null">avatar,</if>
<if test="introduction != null">introduction,</if>
<if test="gender != null">gender,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="studentName != null and studentName != ''">#{studentName},</if>
<if test="avatar != null">#{avatar},</if>
<if test="introduction != null">#{introduction},</if>
<if test="gender != null">#{gender},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateStudentInfo" parameterType="StudentInfo">
update student_info
<trim prefix="SET" suffixOverrides=",">
<if test="studentName != null and studentName != ''">student_name = #{studentName},</if>
<if test="avatar != null">avatar = #{avatar},</if>
<if test="introduction != null">introduction = #{introduction},</if>
<if test="gender != null">gender = #{gender},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where student_id = #{studentId}
</update>
<delete id="deleteStudentInfoByStudentId" parameterType="Long">
delete from student_info where student_id = #{studentId}
</delete>
<delete id="deleteStudentInfoByStudentIds" parameterType="String">
delete from student_info where student_id in
<foreach item="studentId" collection="array" open="(" separator="," close=")">
#{studentId}
</foreach>
</delete>
</mapper>

View File

@ -1,4 +1,4 @@
# 页面标题
# 系统标题
VUE_APP_TITLE = 数据资源管理系统
# 开发环境配置

View File

@ -1,4 +1,4 @@
# 页面标题
# 系统标题
VUE_APP_TITLE = 数据资源管理系统
# 生产环境配置

View File

@ -1,4 +1,4 @@
# 页面标题
# 系统标题
VUE_APP_TITLE = 数据资源管理系统
BABEL_ENV = production

View File

@ -1,7 +1,7 @@
{
"name": "ruoyi",
"version": "3.9.0",
"description": "若依管理系统",
"description": "数据资源管理系统",
"author": "若依",
"license": "MIT",
"scripts": {

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询学生信息列表
export function listInfo(query) {
return request({
url: '/system/info/list',
method: 'get',
params: query
})
}
// 查询学生信息详细
export function getInfo(studentId) {
return request({
url: '/system/info/' + studentId,
method: 'get'
})
}
// 新增学生信息
export function addInfo(data) {
return request({
url: '/system/info',
method: 'post',
data: data
})
}
// 修改学生信息
export function updateInfo(data) {
return request({
url: '/system/info',
method: 'put',
data: data
})
}
// 删除学生信息
export function delInfo(studentId) {
return request({
url: '/system/info/' + studentId,
method: 'delete'
})
}

View File

@ -10,11 +10,11 @@
<search id="header-search" class="right-menu-item" />
<el-tooltip content="源码地址" effect="dark" placement="bottom">
<ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" />
<data-resource-git id="ruoyi-git" class="right-menu-item hover-effect" />
</el-tooltip>
<el-tooltip content="文档地址" effect="dark" placement="bottom">
<ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" />
<data-resource-doc id="ruoyi-doc" class="right-menu-item hover-effect" />
</el-tooltip>
<screenfull id="screenfull" class="right-menu-item hover-effect" />
@ -54,8 +54,8 @@ import Hamburger from '@/components/Hamburger'
import Screenfull from '@/components/Screenfull'
import SizeSelect from '@/components/SizeSelect'
import Search from '@/components/HeaderSearch'
import RuoYiGit from '@/components/RuoYi/Git'
import RuoYiDoc from '@/components/RuoYi/Doc'
import DataResourceGit from '@/components/RuoYi/Git'
import DataResourceDoc from '@/components/RuoYi/Doc'
export default {
emits: ['setLayout'],
@ -66,8 +66,8 @@ export default {
Screenfull,
SizeSelect,
Search,
RuoYiGit,
RuoYiDoc
DataResourceGit,
DataResourceDoc
},
computed: {
...mapGetters([

View File

@ -70,7 +70,7 @@ export const constantRoutes = [
path: 'index',
component: () => import('@/views/dashboard/index'),
name: 'Index',
meta: { title: '首页', icon: 'dashboard', affix: true }
meta: { title: '论文首页(郑)', icon: 'dashboard', affix: true }
}
]
},

View File

@ -2,7 +2,7 @@ module.exports = {
/**
* 网页标题
*/
title: process.env.VUE_APP_TITLE,
title: '数据资源管理系统',
/**
* 侧边栏主题 深色主题theme-dark浅色主题theme-light
@ -52,5 +52,5 @@ module.exports = {
/**
* 底部版权文本内容
*/
footerContent: 'Copyright © 2018-2025 RuoYi. All Rights Reserved.'
footerContent: 'Copyright © 2018-2025 数据资源管理系统 All Rights Reserved.'
}

View File

@ -2,10 +2,10 @@
<div class="app-container home">
<el-row :gutter="20">
<el-col :sm="24" :lg="12" style="padding-left: 20px">
<h2>若依后台管理框架</h2>
<h2>数据资源管理系统</h2>
<p>
一直想做一款后台管理系统看了很多优秀的开源项目但是发现没有合适自己的于是利用空闲休息时间开始自己写一套后台系统如此有了若依管理系统她可以用于所有的Web应用程序如网站管理后台网站会员中心CMSCRMOA等等当然您也可以对她进行深度定制以做出更强系统所有前端后台代码封装过后十分精简易上手出错概率低同时支持移动客户端访问系统会陆续更新一些实用功能
</p>
一直想做一款后台管理系统看了很多优秀的开源项目但是发现没有合适自己的于是利用空闲休息时间开始自己写一套后台系统如此有了数据资源管理系统她可以用于所有的Web应用程序如网站管理后台网站会员中心CMSCRMOA等等当然您也可以对她进行深度定制以做出更强系统所有前端后台代码封装过后十分精简易上手出错概率低同时支持移动客户端访问系统会陆续更新一些实用功能
</p>
<p>
<b>当前版本:</b> <span>v{{ version }}</span>
</p>

View File

@ -56,7 +56,7 @@
</el-form>
<!-- 底部 -->
<div class="el-login-footer">
<span>Copyright © 2018-2025 ruoyi.vip All Rights Reserved.</span>
<span>Copyright © 2018-2025 数据资源管理系统 All Rights Reserved.</span>
</div>
</div>
</template>

View File

@ -61,7 +61,7 @@
</el-form>
<!-- 底部 -->
<div class="el-register-footer">
<span>Copyright © 2018-2025 ruoyi.vip All Rights Reserved.</span>
<span>Copyright © 2018-2025 数据资源管理系统 All Rights Reserved.</span>
</div>
</div>
</template>

View File

@ -0,0 +1,306 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="学生姓名" prop="studentName">
<el-input
v-model="queryParams.studentName"
placeholder="请输入学生姓名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="学生性别" prop="gender">
<el-select v-model="queryParams.gender" placeholder="请选择学生性别" clearable>
<el-option
v-for="dict in dict.type.sys_user_sex"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:info:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:info:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:info:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['system:info:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="学生ID" align="center" prop="studentId" />
<el-table-column label="学生姓名" align="center" prop="studentName" />
<el-table-column label="头像地址" align="center" prop="avatar" width="100">
<template slot-scope="scope">
<image-preview :src="scope.row.avatar" :width="50" :height="50"/>
</template>
</el-table-column>
<el-table-column label="个人介绍" align="center" prop="introduction" />
<el-table-column label="学生性别" align="center" prop="gender">
<template slot-scope="scope">
<dict-tag :options="dict.type.sys_user_sex" :value="scope.row.gender"/>
</template>
</el-table-column>
<el-table-column label="学生状态" align="center" prop="status" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:info:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:info:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改学生信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="学生姓名" prop="studentName">
<el-input v-model="form.studentName" placeholder="请输入学生姓名" />
</el-form-item>
<el-form-item label="头像地址" prop="avatar">
<image-upload v-model="form.avatar"/>
</el-form-item>
<el-form-item label="个人介绍" prop="introduction">
<el-input v-model="form.introduction" type="textarea" placeholder="请输入内容" />
</el-form-item>
<el-form-item label="学生性别" prop="gender">
<el-select v-model="form.gender" placeholder="请选择学生性别">
<el-option
v-for="dict in dict.type.sys_user_sex"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="删除标志" prop="delFlag">
<el-input v-model="form.delFlag" placeholder="请输入删除标志" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listInfo, getInfo, delInfo, addInfo, updateInfo } from "@/api/system/info"
export default {
name: "Info",
dicts: ['sys_user_sex'],
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
infoList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
studentName: null,
gender: null,
status: null,
},
//
form: {},
//
rules: {
studentName: [
{ required: true, message: "学生姓名不能为空", trigger: "blur" }
],
}
}
},
created() {
this.getList()
},
methods: {
/** 查询学生信息列表 */
getList() {
this.loading = true
listInfo(this.queryParams).then(response => {
this.infoList = response.rows
this.total = response.total
this.loading = false
})
},
//
cancel() {
this.open = false
this.reset()
},
//
reset() {
this.form = {
studentId: null,
studentName: null,
avatar: null,
introduction: null,
gender: null,
status: null,
delFlag: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
remark: null
}
this.resetForm("form")
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1
this.getList()
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm")
this.handleQuery()
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.studentId)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset()
this.open = true
this.title = "添加学生信息"
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset()
const studentId = row.studentId || this.ids
getInfo(studentId).then(response => {
this.form = response.data
this.open = true
this.title = "修改学生信息"
})
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.studentId != null) {
updateInfo(this.form).then(response => {
this.$modal.msgSuccess("修改成功")
this.open = false
this.getList()
})
} else {
addInfo(this.form).then(response => {
this.$modal.msgSuccess("新增成功")
this.open = false
this.getList()
})
}
}
})
},
/** 删除按钮操作 */
handleDelete(row) {
const studentIds = row.studentId || this.ids
this.$modal.confirm('是否确认删除学生信息编号为"' + studentIds + '"的数据项?').then(function() {
return delInfo(studentIds)
}).then(() => {
this.getList()
this.$modal.msgSuccess("删除成功")
}).catch(() => {})
},
/** 导出按钮操作 */
handleExport() {
this.download('system/info/export', {
...this.queryParams
}, `info_${new Date().getTime()}.xlsx`)
}
}
}
</script>

View File

@ -7,7 +7,7 @@ function resolve(dir) {
const CompressionPlugin = require('compression-webpack-plugin')
const name = process.env.VUE_APP_TITLE || '若依管理系统' // 网页标题
const name = process.env.VUE_APP_TITLE || '数据资源管理系统' // 网页标题
const baseUrl = 'http://localhost:8080' // 后端接口

22
sql/infoMenu.sql 100644
View File

@ -0,0 +1,22 @@
-- 菜单 SQL
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('学生信息', '3', '1', 'info', 'system/info/index', 1, 0, 'C', '0', '0', 'system:info:list', '#', 'admin', sysdate(), '', null, '学生信息菜单');
-- 按钮父菜单ID
SELECT @parentId := LAST_INSERT_ID();
-- 按钮 SQL
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('学生信息查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'system:info:query', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('学生信息新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'system:info:add', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('学生信息修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'system:info:edit', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('学生信息删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'system:info:remove', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('学生信息导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'system:info:export', '#', 'admin', sysdate(), '', null, '');