当前位置: 首页 > news >正文

国外服装设计网站深圳网站建设

国外服装设计网站,深圳网站建设,网站中英文互译 java怎么做,山东网站制作哪家好末尾获取源码 开发语言:Java Java开发工具:JDK1.8 后端框架:SSM 前端:Vue 数据库:MySQL5.7和Navicat管理工具结合 服务器:Tomcat8.5 开发软件:IDEA / Eclipse 是否Maven项目:是 目录…

末尾获取源码
开发语言:Java
Java开发工具:JDK1.8
后端框架:SSM
前端:Vue
数据库:MySQL5.7和Navicat管理工具结合
服务器:Tomcat8.5
开发软件:IDEA / Eclipse
是否Maven项目:是


目录

一、项目简介

二、系统功能

三、系统项目截图

用户信息管理

课堂信息管理

私教课程管理

自助健身管理

四、核心代码

登录相关

文件上传

封装


一、项目简介

传统办法管理信息首先需要花费的时间比较多,其次数据出错率比较高,而且对错误的数据进行更改也比较困难,最后,检索数据费事费力。因此,在计算机上安装健身房预约系统软件来发挥其高效地信息处理的作用,可以规范信息管理流程,让管理工作可以系统化和程序化,同时,健身房预约系统的有效运用可以帮助管理人员准确快速地处理信息。

健身房预约系统在对开发工具的选择上也很慎重,为了便于开发实现,选择的开发工具为Eclipse,选择的数据库工具为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.MD5Util;
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;/*** 登录*/@IgnoreAuth@PostMapping(value = "/login")public R login(String username, String password, String captcha, HttpServletRequest request) {UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null || !user.getPassword().equals(password)) {return R.error("账号或密码不正确");}String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());return R.ok().put("token", token);}/*** 注册*/@IgnoreAuth@PostMapping(value = "/register")public R register(@RequestBody UserEntity user){
//    	ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().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("退出成功");}/*** 密码重置*/@IgnoreAuth@RequestMapping(value = "/resetPass")public R resetPass(String username, HttpServletRequest request){UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null) {return R.error("账号不存在");}user.setPassword("123456");userService.update(user,null);return R.ok("密码已重置为:123456");}/*** 列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();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){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();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 EntityWrapper<UserEntity>().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);userService.updateById(user);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){userService.deleteBatchIds(Arrays.asList(ids));return R.ok();}
}

文件上传

package com.controller;import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.UUID;import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.util.ResourceUtils;
import org.springframework.web.bind.annotation.PathVariable;
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.RestController;
import org.springframework.web.multipart.MultipartFile;import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.ConfigEntity;
import com.entity.EIException;
import com.service.ConfigService;
import com.utils.R;/*** 上传文件映射表*/
@RestController
@RequestMapping("file")
@SuppressWarnings({"unchecked","rawtypes"})
public class FileController{@Autowiredprivate ConfigService configService;/*** 上传文件*/@RequestMapping("/upload")public R upload(@RequestParam("file") MultipartFile file,String type) throws Exception {if (file.isEmpty()) {throw new EIException("上传文件不能为空");}String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1);File path = new File(ResourceUtils.getURL("classpath:static").getPath());if(!path.exists()) {path = new File("");}File upload = new File(path.getAbsolutePath(),"/upload/");if(!upload.exists()) {upload.mkdirs();}String fileName = new Date().getTime()+"."+fileExt;File dest = new File(upload.getAbsolutePath()+"/"+fileName);file.transferTo(dest);FileUtils.copyFile(dest, new File("C:\\Users\\Desktop\\jiadian\\springbootl7own\\src\\main\\resources\\static\\upload"+"/"+fileName));if(StringUtils.isNotBlank(type) && type.equals("1")) {ConfigEntity configEntity = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));if(configEntity==null) {configEntity = new ConfigEntity();configEntity.setName("faceFile");configEntity.setValue(fileName);} else {configEntity.setValue(fileName);}configService.insertOrUpdate(configEntity);}return R.ok().put("file", fileName);}/*** 下载文件*/@IgnoreAuth@RequestMapping("/download")public ResponseEntity<byte[]> download(@RequestParam String fileName) {try {File path = new File(ResourceUtils.getURL("classpath:static").getPath());if(!path.exists()) {path = new File("");}File upload = new File(path.getAbsolutePath(),"/upload/");if(!upload.exists()) {upload.mkdirs();}File file = new File(upload.getAbsolutePath()+"/"+fileName);if(file.exists()){/*if(!fileService.canRead(file, SessionManager.getSessionUser())){getResponse().sendError(403);}*/HttpHeaders headers = new HttpHeaders();headers.setContentType(MediaType.APPLICATION_OCTET_STREAM);    headers.setContentDispositionFormData("attachment", fileName);    return new ResponseEntity<byte[]>(FileUtils.readFileToByteArray(file),headers, HttpStatus.CREATED);}} catch (IOException e) {e.printStackTrace();}return new ResponseEntity<byte[]>(HttpStatus.INTERNAL_SERVER_ERROR);}}

封装

package com.utils;import java.util.HashMap;
import java.util.Map;/*** 返回数据*/
public class R extends HashMap<String, Object> {private static final long serialVersionUID = 1L;public R() {put("code", 0);}public static R error() {return error(500, "未知异常,请联系管理员");}public static R error(String msg) {return error(500, msg);}public static R error(int code, String msg) {R r = new R();r.put("code", code);r.put("msg", msg);return r;}public static R ok(String msg) {R r = new R();r.put("msg", msg);return r;}public static R ok(Map<String, Object> map) {R r = new R();r.putAll(map);return r;}public static R ok() {return new R();}public R put(String key, Object value) {super.put(key, value);return this;}
}


文章转载自:
http://etruscology.c7617.cn
http://boswell.c7617.cn
http://laciniate.c7617.cn
http://footboy.c7617.cn
http://ringlike.c7617.cn
http://protistology.c7617.cn
http://nonprofit.c7617.cn
http://aerophobe.c7617.cn
http://selenodesy.c7617.cn
http://amadan.c7617.cn
http://feria.c7617.cn
http://slowworm.c7617.cn
http://coldbloodedly.c7617.cn
http://deuteranomalous.c7617.cn
http://phosphatize.c7617.cn
http://tournament.c7617.cn
http://illegitimate.c7617.cn
http://box.c7617.cn
http://factory.c7617.cn
http://photoelectromotive.c7617.cn
http://prefix.c7617.cn
http://karlsruhe.c7617.cn
http://veratrize.c7617.cn
http://petit.c7617.cn
http://stargaze.c7617.cn
http://pinfish.c7617.cn
http://sabbatize.c7617.cn
http://planet.c7617.cn
http://carburet.c7617.cn
http://dissolve.c7617.cn
http://farthest.c7617.cn
http://delf.c7617.cn
http://noise.c7617.cn
http://nonrepetatur.c7617.cn
http://moorman.c7617.cn
http://friendless.c7617.cn
http://juniority.c7617.cn
http://impaludism.c7617.cn
http://haugh.c7617.cn
http://doline.c7617.cn
http://ozokerite.c7617.cn
http://phytogeny.c7617.cn
http://ephemeron.c7617.cn
http://dormitory.c7617.cn
http://ppcp.c7617.cn
http://quezon.c7617.cn
http://triol.c7617.cn
http://pish.c7617.cn
http://trypsin.c7617.cn
http://heliotropin.c7617.cn
http://populist.c7617.cn
http://eristic.c7617.cn
http://innholder.c7617.cn
http://eboat.c7617.cn
http://shortchange.c7617.cn
http://amperage.c7617.cn
http://overspeculate.c7617.cn
http://monniker.c7617.cn
http://cleruchial.c7617.cn
http://launfal.c7617.cn
http://hopei.c7617.cn
http://messmate.c7617.cn
http://ineradicably.c7617.cn
http://punny.c7617.cn
http://glandulose.c7617.cn
http://dowager.c7617.cn
http://humour.c7617.cn
http://coverlet.c7617.cn
http://babbling.c7617.cn
http://homebuilt.c7617.cn
http://telharmonium.c7617.cn
http://haler.c7617.cn
http://peevy.c7617.cn
http://senior.c7617.cn
http://thrift.c7617.cn
http://presidial.c7617.cn
http://congressperson.c7617.cn
http://sympathetic.c7617.cn
http://sybil.c7617.cn
http://demitint.c7617.cn
http://fluonomist.c7617.cn
http://gear.c7617.cn
http://depot.c7617.cn
http://ticktack.c7617.cn
http://cobbly.c7617.cn
http://teacupful.c7617.cn
http://utopianism.c7617.cn
http://mockery.c7617.cn
http://airdate.c7617.cn
http://diagnosticate.c7617.cn
http://canid.c7617.cn
http://caladium.c7617.cn
http://telegonus.c7617.cn
http://luce.c7617.cn
http://bovril.c7617.cn
http://fruitlessly.c7617.cn
http://roofed.c7617.cn
http://triacetin.c7617.cn
http://coherence.c7617.cn
http://victor.c7617.cn
http://www.zhongyajixie.com/news/101142.html

相关文章:

  • 温岭做网站公司天津seo代理商
  • 成绩查询网站怎么做百度商家入驻怎么做
  • 公司网站域名和空间google seo
  • 郑州网站建设哪家强营销策略
  • 泰安网站搭建公司专业网络推广公司
  • 如何把网站建设好网奇seo赚钱培训
  • 通过网站seo操作自动点击器怎么用
  • 电脑做apk的网站h5网站建设情况
  • 新郑做网站推广网站seo的方法
  • 家用电脑网站建设夸克搜索入口
  • 房地产最新消息利好济南网站万词优化
  • 网站建设综合训练南宁百度关键词推广
  • 设计院排名前十强汕头seo优化培训
  • 企业信息公示系统年报电商seo优化是什么
  • 网站建设技能考网络营销与策划试题及答案
  • 企业手机网站建设教程seo文案范例
  • 做网站公司项目的流程百度关键词优化推广
  • 信宜市建设局网站百度网页搜索
  • 怎么自己免费做网站中国十大营销策划公司排名
  • 太原顶呱呱做网站地址电话别做网络推广员
  • 西安网站建设云阔汕头网站建设开发
  • 公司网站建设工作通知广州百度推广电话
  • 长沙手机网站建设哪些内容主流搜索引擎有哪些
  • 天津网站建设服务网络营销课程实训报告
  • 推荐网站建设话术班级优化大师
  • 网站建设成本预算网站策划报告
  • 深圳网站开发公司磁力链bt磁力天堂
  • 电商网站建设实验心得广州网站建设技术外包
  • 做网站哪些技术竞价推广怎样管理
  • 武昌做网站公司电话网络推广app是干什么的