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

网站管理和维护的主要工作有哪些沙井网站优化

网站管理和维护的主要工作有哪些,沙井网站优化,免费做简历下载的网站,婚庆策划公司排名末尾获取源码 开发语言#xff1a;Java Java开发工具#xff1a;JDK1.8 后端框架#xff1a;SSM 前端#xff1a;Vue 数据库#xff1a;MySQL5.7和Navicat管理工具结合 服务器#xff1a;Tomcat8.5 开发软件#xff1a;IDEA / Eclipse 是否Maven项目#xff1a;是 目录… 末尾获取源码 开发语言Java Java开发工具JDK1.8 后端框架SSM 前端Vue 数据库MySQL5.7和Navicat管理工具结合 服务器Tomcat8.5 开发软件IDEA / Eclipse 是否Maven项目是 目录 一、项目简介 二、系统功能 三、系统项目截图 管理员模块的实现 菜品信息管理 用户信息管理 我的订单管理 菜系管理 用户模块的实现 菜品信息 我的订单 员工模块的实现 餐桌状态管理 餐饮店模块的实现 菜品信息管理 销售统计管理 员工管理 四、核心代码 登录相关 文件上传 封装 一、项目简介 随着信息技术在管理上越来越深入而广泛的应用管理信息系统的实施在技术上已逐步成熟。本文介绍了餐饮掌上设备点餐系统的开发全过程。通过分析餐饮掌上设备点餐系统管理的不足创建了一个计算机管理餐饮掌上设备点餐系统的方案。文章介绍了餐饮掌上设备点餐系统的系统分析部分包括可行性分析等系统设计部分主要介绍了系统功能设计和数据库设计。 本餐饮掌上设备点餐系统有管理员用户餐饮店员工四个角色。管理员可以管理员工菜系餐桌菜品订单加盟申请等信息。用户可以查看并且下单员工可以查看用户的下单信息餐饮店可以管理相关的菜品和下单信息并且可以申请加盟等操作。因而具有一定的实用性。 本站后台采用Java的SSM框架进行后台管理开发前端采用VUE框架可以在浏览器上登录进行后台数据方面的管理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;/*** 登录*/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);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 EntityWrapperConfigEntity().eq(name, faceFile));if(configEntitynull) {configEntity new ConfigEntity();configEntity.setName(faceFile);configEntity.setValue(fileName);} else {configEntity.setValue(fileName);}configService.insertOrUpdate(configEntity);}return R.ok().put(file, fileName);}/*** 下载文件*/IgnoreAuthRequestMapping(/download)public ResponseEntitybyte[] 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 ResponseEntitybyte[](FileUtils.readFileToByteArray(file),headers, HttpStatus.CREATED);}} catch (IOException e) {e.printStackTrace();}return new ResponseEntitybyte[](HttpStatus.INTERNAL_SERVER_ERROR);}}封装 package com.utils;import java.util.HashMap; import java.util.Map;/*** 返回数据*/ public class R extends HashMapString, 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(MapString, 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://www.huolong8.cn/news/83715/

相关文章:

  • 企业网站的建设意义是什么网站建设免费加盟代理
  • 支付的网站建设费整么做账浅笑云虚拟主机
  • 做外发的网站推广普通话心得体会
  • 个人网站怎么自己备案青岛网站建设-中国互联
  • 什么最便宜网站建设屏蔽阿里云网站吗
  • 泰安网站建设泽讯天元建设集团有限公司
  • 怎样在手机做自己的网站6网站手机网页如何做
  • 宁波模板网页制作辽宁网站建站优化公司
  • 公司网站高端网站建设做新年公告图片的网站
  • 手机网站 兼容做新浪微博网站需要
  • 建设银行个人网站个人客户中国中标信息查询系统
  • 佛山百度网站快速排名wordpress文章中标签
  • 要加强网站内容的建设垦利网站设计
  • 淘客手机版网站怎么做乡镇网站建设方案
  • 一个公司如何把网站做好网站html模板免费下载
  • vue 做的网站怎样做免费抽皮肤的网站
  • 网站网站模板建网站 选安全
  • 网站建设策划书论文企业管理咨询公司怎么样
  • 网站建设 乐达云创百度明星人气榜入口
  • 织梦网站栏目wordpress无法加载预览图片
  • 做废铁在哪个网站推广十大经典事件营销案例分析
  • 网站关键词快速排名优化网站经营性备案流程
  • 域名和主机有了怎么做网站了解龙岗网站建设
  • 网站建设罗贤伟网站营销外包公司简介
  • 网站建设需要的服务器天津网站设计诺亚科技
  • 中国工程建设企业协会网站北京网站建设公司现状
  • 建筑建材网站设计费用提升学历选什么专业比较好
  • 商业网站建设大纲甘肃省省经合局网站建设的通知
  • 贵阳手机网站建设南通企业网站排名优化
  • 商务科技网站建设如何申请电商网站