java springboot驾校管理系统

news2024/10/5 16:23:50

开发技术:
SpringBoot+springmvc+Mybitis-Puls   mysql5.x    html ajax数据交互
开发工具:
 idea或eclipse   jdk1.8    maven
  (1)  管理员登陆
  (2)  所有学员信息列表查询
(3)所有学生考试信息
(4)学员科目一,科目二,科目三,科目四信息录入,信息列表查询
(5)学员信息录入
(6)学员缴费信息录入,缴费信息查询
(7)教练信息录入

package com.crm.CLdriving.controller;


import java.util.List;

import javax.validation.Valid;

import com.crm.CLdriving.common.PageResponse;
import com.crm.CLdriving.dto.PageReq.PageNumber;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.crm.CLdriving.common.BaseResponse;
import com.crm.CLdriving.dto.req.StudentDelectReqDto;
import com.crm.CLdriving.dto.req.StudentInsertReqDto;
import com.crm.CLdriving.dto.req.StudentSelectByIdReqDto;
import com.crm.CLdriving.dto.req.StudentSelectReqDto;
import com.crm.CLdriving.dto.req.StudentUpdateReqDto;
import com.crm.CLdriving.dto.resp.StudentSelectRespDto;
import com.crm.CLdriving.enu.ResponseEnum;
import com.crm.CLdriving.po.StudentPO;
import com.crm.CLdriving.service.StudentService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.log4j.Log4j2;

@Api(tags="学员信息管理")
@Controller
@Log4j2
@RequestMapping("student")
public class StudentController {
	
	@Autowired
	private StudentService studentService;
	
	@ApiOperation("学员信息录入接口") 
	@PostMapping(value="insert")
	@ResponseBody
	public BaseResponse<?> insert(@Valid @RequestBody StudentInsertReqDto studentInsertReqDto){
		log.info("c学员基本信息录入请求参数:"+JSON.toJSONString(studentInsertReqDto));
		return studentService.insert(studentInsertReqDto);
	}
	
	
	@ApiOperation("学员基本信息查询接口")
	@PostMapping("selectJB")
	@ResponseBody
	public PageResponse<List<StudentSelectRespDto>> selectjb(@RequestBody PageNumber pageNumber){
		return studentService.selectJB(pageNumber);
	}
	
	//筛选框 查询
	@PostMapping("selectXQ")
	@ResponseBody
	@ApiOperation("学员详细信息查询接口")
	public BaseResponse<List<StudentSelectRespDto>> selectxq(@Valid @RequestBody StudentSelectReqDto studentSelectReqDto) {
		log.info("c学员详细信息查询请求参数为:"+JSON.toJSONString(studentSelectReqDto));
		if ((studentSelectReqDto.getIdentityCard()==null || studentSelectReqDto.getIdentityCard()=="") &&
				(studentSelectReqDto.getName()==null || studentSelectReqDto.getName()=="")) {
			return BaseResponse.message(ResponseEnum.MYSXTJ);
		}
		return studentService.selectXQ(studentSelectReqDto);		
	}
	
	@PostMapping("selectById")
	@ResponseBody
	@ApiOperation("查询学员信息接口")
	public BaseResponse<StudentPO> selectById(@Valid @RequestBody StudentSelectByIdReqDto studentSelectByIdReqDto){
		return studentService.selectByid(studentSelectByIdReqDto);
	}
	
	@PostMapping("updateById")
	@ResponseBody
	@ApiOperation("更新学员信息接口")
	public BaseResponse<?> updateById(@Valid @RequestBody StudentUpdateReqDto studentUpdateReqDto) {
		log.info("c更新学员信息请求参数:"+JSON.toJSONString(studentUpdateReqDto));
		return studentService.updateByid(studentUpdateReqDto);
	}
	
	
	@PostMapping("delectByID")
	@ResponseBody
	@ApiOperation("删除学员信息接口")
	public BaseResponse<?> delectByID(@Valid @RequestBody StudentDelectReqDto studentDelectReqDto) {
		log.info("删除学员信息请求参数:"+JSON.toJSONString(studentDelectReqDto));
		return studentService.delectByid(studentDelectReqDto);
	}

}

 

package com.crm.CLdriving.controller;

import java.util.List;

import javax.validation.Valid;

import com.crm.CLdriving.common.PageResponse;
import com.crm.CLdriving.dto.PageReq.PageNumber;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.crm.CLdriving.common.BaseResponse;
import com.crm.CLdriving.dto.req.CoachDeleteReqDto;
import com.crm.CLdriving.dto.req.CoachInputReqDto;
import com.crm.CLdriving.dto.req.CoachInsertReqDto;
import com.crm.CLdriving.dto.req.CoachSelOneReqDto;
import com.crm.CLdriving.dto.req.CoachUpdateReqDto;
import com.crm.CLdriving.dto.resp.CoachSelectAllRespDto;
import com.crm.CLdriving.dto.resp.CoachSelectOneRespDto;
import com.crm.CLdriving.enu.ResponseEnum;
import com.crm.CLdriving.po.CoachPO;
import com.crm.CLdriving.service.CoachService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.log4j.Log4j2;

@Controller
@RequestMapping("coach")
@Log4j2
@Api(tags="教练信息管理")
public class CoachController {
	
	@Autowired
	private CoachService coachService;

	@PostMapping("insert")
	@ResponseBody
	@ApiOperation("录入教练信息接口")
	public BaseResponse<?> insert(@Valid @RequestBody CoachInsertReqDto coachInsertReqDto) {
		log.info(""+JSON.toJSONString(coachInsertReqDto));
		return coachService.insert(coachInsertReqDto);
	}
	
	@PostMapping("selectInput")
	@ResponseBody
	@ApiOperation("筛选框查询教练信息接口")
	public BaseResponse<List<CoachPO>> SelectInput(@RequestBody @Valid CoachInputReqDto coachInputReqDto){
		log.info("筛选框查询教练信息请求:"+JSON.toJSONString(coachInputReqDto));
		if ((coachInputReqDto.getIdentity()==null || coachInputReqDto.getIdentity()=="") &&
				(coachInputReqDto.getName()==null || coachInputReqDto.getName()=="")) {
			return BaseResponse.message(ResponseEnum.MYSXTJ);
		}
		return coachService.selectInput(coachInputReqDto);
	}
	
	@PostMapping("selectall")
	@ResponseBody
	@ApiOperation("查询 全部教练信息接口")
	public PageResponse<List<CoachSelectAllRespDto>> SelectAll(@RequestBody PageNumber pageNumber) {
		return coachService.selectall(pageNumber);
	}
	
	@PostMapping("selectone")
	@ResponseBody
	@ApiOperation("查询  教练信息接口")
	public BaseResponse<CoachSelectOneRespDto> SelectOne(@Valid @RequestBody CoachSelOneReqDto coachSelOneReqDto){
		log.info(""+JSON.toJSONString(coachSelOneReqDto));
		return coachService.selectone(coachSelOneReqDto);	
	}
	
	@PostMapping("update")
	@ResponseBody
	@ApiOperation("更新教练信息接口")
	public BaseResponse<?> update(@Valid @RequestBody CoachUpdateReqDto coachUpdateReqDto){
		log.info(""+JSON.toJSONString(coachUpdateReqDto));
		return coachService.update(coachUpdateReqDto);
	}
	
	@PostMapping("delete")
	@ResponseBody
	@ApiOperation("删除教练信息接口")
	public BaseResponse<?> Delete(@Valid @RequestBody CoachDeleteReqDto coachDeleteReqDto){
		log.info(""+JSON.toJSONString(coachDeleteReqDto));
		return coachService.delete(coachDeleteReqDto);
	}
	
}

 

package com.crm.CLdriving.controller;

import java.util.List;

import javax.validation.Valid;

import com.crm.CLdriving.common.PageResponse;
import com.crm.CLdriving.dto.PageReq.PageNumber;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.crm.CLdriving.common.BaseResponse;
import com.crm.CLdriving.dto.req.CostDeleteReqDto;
import com.crm.CLdriving.dto.req.CostInsertReqDto;
import com.crm.CLdriving.dto.req.CostSelectOneReqDto;
import com.crm.CLdriving.dto.req.CostSelectXQReqDto;
import com.crm.CLdriving.dto.req.CostUpdateReqDto;
import com.crm.CLdriving.enu.ResponseEnum;
import com.crm.CLdriving.po.CostPO;
import com.crm.CLdriving.service.CostService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.log4j.Log4j2;

@Controller
@RequestMapping("cost")
@Log4j2
@Api(tags="缴费信息管理")
public class CostController {
	
	@Autowired
	private CostService costService;
	
	@PostMapping("insert")
	@ApiOperation("录入缴费信息接口")
	@ResponseBody
	public BaseResponse<?> insert(@Valid @RequestBody CostInsertReqDto costInsertReqDto) {
		log.info("录入缴费信息请求参数"+JSON.toJSONString(costInsertReqDto));
		return costService.insert(costInsertReqDto);	
	}
	
	@PostMapping("select")
	@ApiOperation("查询缴费信息接口")
	@ResponseBody
	public PageResponse<List<CostPO>> select(@RequestBody PageNumber pageNumber) {
		return costService.selectall(pageNumber);
	}
	
	
	@PostMapping("selectXQ")
	@ApiOperation("查询一条缴费信息接口")
	@ResponseBody
	public BaseResponse<List<CostPO>> SelectXQ(@Valid @RequestBody CostSelectXQReqDto costSelectXQReqDto) {
		log.info("筛选框查询缴费信息:"+JSON.toJSONString(costSelectXQReqDto));
		if ((costSelectXQReqDto.getIdentityCard()==null || costSelectXQReqDto.getIdentityCard()=="") &&
				(costSelectXQReqDto.getName()==null || costSelectXQReqDto.getName()=="")) {
			return BaseResponse.message(ResponseEnum.MYSXTJ);
		}
		return costService.selectxq(costSelectXQReqDto);	
	}
	
	
	@PostMapping("selectone")
	@ResponseBody
	@ApiOperation("查询一条缴费信息")
	public BaseResponse<CostPO> SelectOne(@Valid @RequestBody CostSelectOneReqDto costSelectOneReqDto){
		return costService.selectone(costSelectOneReqDto);
		
	}
	
	@PostMapping("updateById")
	@ApiOperation("更新缴费信息接口")
	@ResponseBody
	public BaseResponse<?> Update(@Valid @RequestBody CostUpdateReqDto costUpdateReqDto){
		log.info("更新缴费信息请求参数为:"+JSON.toJSONString(costUpdateReqDto));
		return costService.update(costUpdateReqDto);
	}
	
	@PostMapping("deleteById")
	@ResponseBody
	@ApiOperation("删除缴费信息接口")
	public BaseResponse<?> DeleteById(@Valid @RequestBody CostDeleteReqDto costDeleteReqDto){
		return costService.deleteById(costDeleteReqDto);
		
	}
 
}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/879100.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Datawhale Django入门组队学习Task01

Task01 一.创建虚拟环境 python -m venv django_learn &#xff08;django_learn那里是自己定的环境名字&#xff09; 之前一直用conda管理虚拟环境&#xff0c;没咋用过virtualenv&#xff0c;然后我的powershell之前也设置了默认启动了base环境&#xff0c;然后输入activat…

目标检测(Object Detection)

文章目录 1. 目标检测1.1 目标检测简要概述及名词解释1.2 IOU1.3 TP TN FP FN1.4 precision&#xff08;精确度&#xff09;和recall&#xff08;召回率&#xff09; 2. 边框回归Bounding-Box regression3. Faster R-CNN3.1 Faster-RCNN&#xff1a;conv layer3.2 Faster-RCNN&…

如何搭建个人邮件服务hmailserver并实现远程发送邮件

文章目录 1. 安装hMailServer2. 设置hMailServer3. 客户端安装添加账号4. 测试发送邮件5. 安装cpolar6. 创建公网地址7. 测试远程发送邮件8. 固定连接公网地址9. 测试固定远程地址发送邮件 hMailServer 是一个邮件服务器,通过它我们可以搭建自己的邮件服务,通过cpolar内网映射工…

Destination Host Unreachable

背景&#xff1a;物理机的IP地址是192.168.31.189&#xff0c;虚拟机的IP地址是192.168.194.130 物理机ping得通虚拟机 虚拟机ping得通外网 可是虚拟机ping不通物理机 1、报错信息 Destination Host Unreachable 2、原因 用route -n命令查看路由表发现192.168.194.0没有走网…

设计HTML5图像和多媒体

在网页中的文本信息直观、明了&#xff0c;而多媒体信息更富内涵和视觉冲击力。恰当使用不同类型的多媒体可以展示个性&#xff0c;突出重点&#xff0c;吸引用户。在HTML5之前&#xff0c;需要借助插件为网页添加多媒体&#xff0c;如Adobe Flash Player、苹果的QuickTime等。…

R语言画图的-- ggplot2(实现图例的精细修改)

文章目录 1. 图的精确修改theme函数实现图的精细修改实现一页多图具体作图中的参数修改(某些特殊的参数)柱状图的参数修改 ggplot2是R中用来作图的很强的包&#xff0c;但是其用法比较大且各种参数比较复杂&#xff0c;我自己使用的时候还经常需要查阅一些关键参数等&#xff0…

Stable Diffusion + Deform制作指南

1.安装sd以及deform插件,更新后记得重启 需要安装ffmpeg https://ffmpeg.org/download.html 选择对应版本然后安装 如果是windows需要解压后将ffmpeg的bin目录配置在电脑的环境变量里面。 2.准备一张初始开始图片 3.填写参数,这里面参数要注意,宽高一定是32的倍数。如果填写…

R语言生存分析算法的简单组合

library(survival) library(randomForestSRC)# 生成模拟数据 set.seed(123) n <- 200 time <- rexp(n, rate 0.1) status <- rbinom(n, size 1, prob 0.7) var1 <- rnorm(n) var2 <- rnorm(n) var3 <- rnorm(n) data1 <- data.frame(time time, statu…

「网络」网络安全必须知道的19个知识分享

一、防火墙&#xff08;Firewall&#xff09; 定义&#xff1a;都知道防火墙是干什么用的&#xff0c;但我觉得需要特别提醒一下&#xff0c;防火墙抵御的是外部的攻击&#xff0c;并不能对内部的病毒 ( 如ARP病毒 ) 或攻击没什么太大作用。 功能 : 防火墙的功能主要是两个网…

『C语言初阶』第九章 -结构体

前言 今天小羊又来给铁汁们分享关于C语言的结构体&#xff0c;在C语言中&#xff0c;结构体类型属于一种构造类型&#xff08;其他的构造类型还有&#xff1a;数组类型&#xff0c;联合类型&#xff09;&#xff0c;今天我们主要简单了解一下结构体。 一、结构体是什么&#x…

02.FFMPEG的安装和添加硬件加速自编译

说一个极其郁闷的事情&#xff0c;就在昨天收到3399的一块板子后&#xff0c;往电脑上面一插&#xff0c;然后悲剧的事情就发生了&#xff0c;我的电脑蓝屏重启了&#xff0c;这下好了&#xff0c;我写到一半的帖子也不见了&#xff0c;我的SSH里面的记录全部消失了&#xff0c…

一文解析超标量处理器

一、引言 处理器&#xff08;central process unit,简称CPU&#xff09;是手机的核心部件&#xff0c;其主要功能是取指令并译码执行。CPU主要包括控制器和运算器两个部件&#xff0c;它对在手机中的所有硬件资源&#xff08;如存储器&#xff0c;输入输出单元&#xff09;进行…

等保案例 1

用户简介 吉林省人力资源和社会保障厅&#xff08;简称“吉林省人社厅”&#xff09;响应《网络安全法》的建设要求&#xff0c;为了向吉林省人民提供更好、更快、更稳定的信息化服务&#xff0c;根据《网络安全法》和等级保护2.0相关标准&#xff0c;落实网络安全与信息化建设…

AD20之PCB设计

一、原理图 1、CTRL鼠标滚轮 图纸的放大缩小 2、修改栅格颜色 3、选择图纸尺寸 4、编译原理图 选中项目右键 5、编译原理图后 出现原理图中所使用的元器件 或错误信息 元器件 编译原理图报错 6、编译原理图库后 选中右侧栏中元器件 可进行添加 或删除库中元器件 7、去…

欧拉OS 使用 CentOS 7 yum repo

一、下载CentOS的repo的yum文件 任何基于CentOS的yum的repo 的url是这样的&#xff1a; 但欧拉OS输出这个变量为&#xff1a;openEuler 20.03 (LTS-SP3) 那明显欧拉想要使用这个yum的url找不到这个版本&#xff0c; 所以直接讲这个变量替换为 7, Centos 7的7 然后执行&…

C进阶(1/7)——数据在内存中的存储

目录 前言&#xff1a; 一.数据类型介绍 类型基本归类&#xff1a; 整型家族&#xff1a; 浮点数家族&#xff1a; 构造类型&#xff1a; ​指针类型&#xff1a; 空类型&#xff1a; 二.整型在内存中的存储 1.原码&#xff0c;反码&#xff0c;补码 2.大小端介绍 3.练…

web基础入门和php语言基础入门 二

web基础入门和php语言基础入门 二 MySQL入门-续MySQL之数据查询操作MySQL其他知识点 php语言基础入门认识PHPPHP的工作流程安装PHP环境认识一个PHP程序PHP基础知识点进入正题 PHP与WEB交互PHP与MySQL交互总结 MySQL入门-续 MySQL之数据查询操作 WHERE 子句&#xff0c;条件限…

面向对象设计与分析40讲(20)消息驱动编程和事件驱动编程模型

文章目录 消息驱动编程事件驱动编程消息驱动和事件驱动的区别 消息驱动编程 消息驱动是一种编程模型&#xff0c;它基于事件和消息的传递来驱动程序的执行流程。在消息驱动的模型中&#xff0c;系统中的各个组件&#xff08;或对象&#xff09;通过发送和接收消息进行通信和协…

如何基于 ACK Serverless 快速部署 AI 推理服务

作者&#xff1a;元毅 随着 AI 浪潮的到来&#xff0c;各种 AI 应用层出不穷&#xff0c;众所周知 AI 应用对 GPU 资源强烈依赖&#xff0c;但 GPU 很昂贵&#xff0c;如何降低 GPU 资源使用成本成为用户首要问题。而 AI 与 Serverless 技术结合&#xff0c;完全可以达到按需使…

mysql中在有数据的表中新增一个主键处理方案

需求&#xff1a;因为业务需要修改表中原来的主键为新增的字段&#xff1b; 处理方案&#xff1a; 1、先将表名修改一下&#xff1b; 2、新增一个一样的表结构&#xff0c;表名与原表名一致&#xff0c;多了一个主键&#xff08;自增&#xff09;的字段&#xff1b; 3、把原…