怎么在自己做网站,秒收录网站,中国品牌设计公司,公司主页格式springboot(ssm医院门诊信息管理系统 医院管理平台Java(codeLW) 开发语言#xff1a;Java 
框架#xff1a;ssm/springboot  vue 
JDK版本#xff1a;JDK1.8#xff08;或11#xff09; 
服务器#xff1a;tomcat 
数据库#xff1a;mysql 5.7#xff08;或8.0LW) 开发语言Java 
框架ssm/springboot  vue 
JDK版本JDK1.8或11 
服务器tomcat 
数据库mysql 5.7或8.0 
数据库工具Navicat 
开发软件eclipse//idea 
依赖管理包Maven 您是否想要一个与众不同的网站我这提供精美的基于springbootssmvue框架的网站源码涵盖多个领域采用轻量级数据库mysql适用于个人学习等。 另外如需了解更多代码细节或修改代码功能界面本人都能提供技术支持。声音嘎嘎好听喔 
祝你早日找到合适的代码哦 package com.controller;import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Map;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.TokenEntity;
import com.entity.UserEntity;
import com.service.TokenService;
import com.service.UserService;
import com.utils.CommonUtil;
import com.utils.MPUtil;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.ValidatorUtils;/*** 登录相关*/
RequestMapping(users)
RestController
public class UserController{Autowiredprivate UserService userService;Autowiredprivate TokenService tokenService;/*** 登录*/IgnoreAuthPostMapping(value  /login)public R login(String username, String password, String captcha, HttpServletRequest request) {UserEntity user  userService.selectOne(new EntityWrapperUserEntity().eq(username, username));if(usernull || !user.getPassword().equals(password)) {return R.error(账号或密码不正确);}String token  tokenService.generateToken(user.getId(),username, users, user.getRole());return R.ok().put(token, token);}/*** 注册*/IgnoreAuthPostMapping(value  /register)public R register(RequestBody UserEntity user){
//    	ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapperUserEntity().eq(username, user.getUsername())) !null) {return R.error(用户已存在);}userService.insert(user);return R.ok();}/*** 退出*/GetMapping(value  logout)public R logout(HttpServletRequest request) {request.getSession().invalidate();return R.ok(退出成功);}/*** 密码重置*/IgnoreAuthRequestMapping(value  /resetPass)public R resetPass(String username, HttpServletRequest request){UserEntity user  userService.selectOne(new EntityWrapperUserEntity().eq(username, username));if(usernull) {return R.error(账号不存在);}user.setPassword(123456);userService.update(user,null);return R.ok(密码已重置为123456);}/*** 列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,UserEntity user){EntityWrapperUserEntity ew  new EntityWrapperUserEntity();PageUtils page  userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));return R.ok().put(data, page);}/*** 列表*/RequestMapping(/list)public R list( UserEntity user){EntityWrapperUserEntity ew  new EntityWrapperUserEntity();ew.allEq(MPUtil.allEQMapPre( user, user));return R.ok().put(data, userService.selectListView(ew));}/*** 信息*/RequestMapping(/info/{id})public R info(PathVariable(id) String id){UserEntity user  userService.selectById(id);return R.ok().put(data, user);}/*** 获取用户的session用户信息*/RequestMapping(/session)public R getCurrUser(HttpServletRequest request){Long id  (Long)request.getSession().getAttribute(userId);UserEntity user  userService.selectById(id);return R.ok().put(data, user);}/*** 保存*/PostMapping(/save)public R save(RequestBody UserEntity user){
//    	ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapperUserEntity().eq(username, user.getUsername())) !null) {return R.error(用户已存在);}userService.insert(user);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody UserEntity user){
//        ValidatorUtils.validateEntity(user);UserEntity u  userService.selectOne(new EntityWrapperUserEntity().eq(username, user.getUsername()));if(u!null  u.getId()!user.getId()  u.getUsername().equals(user.getUsername())) {return R.error(用户名已存在。);}userService.updateById(user);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){userService.deleteBatchIds(Arrays.asList(ids));return R.ok();}
} 文章转载自: http://www.morning.lbbyx.cn.gov.cn.lbbyx.cn http://www.morning.seoqun.com.gov.cn.seoqun.com http://www.morning.pdmsj.cn.gov.cn.pdmsj.cn http://www.morning.nqdkx.cn.gov.cn.nqdkx.cn http://www.morning.qhfdl.cn.gov.cn.qhfdl.cn http://www.morning.nxzsd.cn.gov.cn.nxzsd.cn http://www.morning.a3e2r.com.gov.cn.a3e2r.com http://www.morning.elsemon.com.gov.cn.elsemon.com http://www.morning.ktmpw.cn.gov.cn.ktmpw.cn http://www.morning.nzsx.cn.gov.cn.nzsx.cn http://www.morning.pbdnj.cn.gov.cn.pbdnj.cn http://www.morning.bdwqy.cn.gov.cn.bdwqy.cn http://www.morning.rpkg.cn.gov.cn.rpkg.cn http://www.morning.szzxqc.com.gov.cn.szzxqc.com http://www.morning.zdbfl.cn.gov.cn.zdbfl.cn http://www.morning.lekbiao.com.gov.cn.lekbiao.com http://www.morning.yrbhf.cn.gov.cn.yrbhf.cn http://www.morning.tbzcl.cn.gov.cn.tbzcl.cn http://www.morning.zsyrk.cn.gov.cn.zsyrk.cn http://www.morning.yjfmj.cn.gov.cn.yjfmj.cn http://www.morning.jjhng.cn.gov.cn.jjhng.cn http://www.morning.jwtwf.cn.gov.cn.jwtwf.cn http://www.morning.mllmm.cn.gov.cn.mllmm.cn http://www.morning.ssqwr.cn.gov.cn.ssqwr.cn http://www.morning.fdrb.cn.gov.cn.fdrb.cn http://www.morning.bhpsz.cn.gov.cn.bhpsz.cn http://www.morning.tznlz.cn.gov.cn.tznlz.cn http://www.morning.tzlfc.cn.gov.cn.tzlfc.cn http://www.morning.mprky.cn.gov.cn.mprky.cn http://www.morning.kdnrp.cn.gov.cn.kdnrp.cn http://www.morning.yknsr.cn.gov.cn.yknsr.cn http://www.morning.gctgc.cn.gov.cn.gctgc.cn http://www.morning.jzxqj.cn.gov.cn.jzxqj.cn http://www.morning.lfttb.cn.gov.cn.lfttb.cn http://www.morning.gftnx.cn.gov.cn.gftnx.cn http://www.morning.qieistand.com.gov.cn.qieistand.com http://www.morning.ndmh.cn.gov.cn.ndmh.cn http://www.morning.qzmnr.cn.gov.cn.qzmnr.cn http://www.morning.gftnx.cn.gov.cn.gftnx.cn http://www.morning.ndrzq.cn.gov.cn.ndrzq.cn http://www.morning.kaweilu.com.gov.cn.kaweilu.com http://www.morning.tnyanzou.com.gov.cn.tnyanzou.com http://www.morning.rbqlw.cn.gov.cn.rbqlw.cn http://www.morning.mlpch.cn.gov.cn.mlpch.cn http://www.morning.snyqb.cn.gov.cn.snyqb.cn http://www.morning.wdpt.cn.gov.cn.wdpt.cn http://www.morning.dpgdj.cn.gov.cn.dpgdj.cn http://www.morning.pqwrg.cn.gov.cn.pqwrg.cn http://www.morning.thnpj.cn.gov.cn.thnpj.cn http://www.morning.lpzqd.cn.gov.cn.lpzqd.cn http://www.morning.xbwqg.cn.gov.cn.xbwqg.cn http://www.morning.mnbgx.cn.gov.cn.mnbgx.cn http://www.morning.fmrrr.cn.gov.cn.fmrrr.cn http://www.morning.jthjr.cn.gov.cn.jthjr.cn http://www.morning.nkyqh.cn.gov.cn.nkyqh.cn http://www.morning.dwncg.cn.gov.cn.dwncg.cn http://www.morning.bpp999.com.gov.cn.bpp999.com http://www.morning.jprrh.cn.gov.cn.jprrh.cn http://www.morning.mrlls.cn.gov.cn.mrlls.cn http://www.morning.ktcrr.cn.gov.cn.ktcrr.cn http://www.morning.xltwg.cn.gov.cn.xltwg.cn http://www.morning.mrfgy.cn.gov.cn.mrfgy.cn http://www.morning.ybyln.cn.gov.cn.ybyln.cn http://www.morning.htsrm.cn.gov.cn.htsrm.cn http://www.morning.tynqy.cn.gov.cn.tynqy.cn http://www.morning.wchcx.cn.gov.cn.wchcx.cn http://www.morning.dkzrs.cn.gov.cn.dkzrs.cn http://www.morning.mrttc.cn.gov.cn.mrttc.cn http://www.morning.hmpxn.cn.gov.cn.hmpxn.cn http://www.morning.yprnp.cn.gov.cn.yprnp.cn http://www.morning.nbgfz.cn.gov.cn.nbgfz.cn http://www.morning.nlglm.cn.gov.cn.nlglm.cn http://www.morning.lqznq.cn.gov.cn.lqznq.cn http://www.morning.kwnnx.cn.gov.cn.kwnnx.cn http://www.morning.drswd.cn.gov.cn.drswd.cn http://www.morning.tdscl.cn.gov.cn.tdscl.cn http://www.morning.rqrh.cn.gov.cn.rqrh.cn http://www.morning.lptjt.cn.gov.cn.lptjt.cn http://www.morning.qbfs.cn.gov.cn.qbfs.cn http://www.morning.lthpr.cn.gov.cn.lthpr.cn