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

网站图片大小深圳外贸seo

网站图片大小,深圳外贸seo,相亲网站怎么做,电子商务网站系统规划末尾获取源码 开发语言:Java Java开发工具:JDK1.8 后端框架:SSM 前端:采用JSP技术开发 数据库:MySQL5.7和Navicat管理工具结合 服务器:Tomcat8.5 开发软件:IDEA / Eclipse 是否Maven项目&#x…

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


目录

一、项目简介

二、数据库设计

数据库E-R图设计

数据库表结构设计

 角色信息表

代取订单表

 快递信息表

三、系统项目截图

角色信息管理

快递信息管理

代取订单管理

新闻公告管理

四、核心代码

4.1登录相关

4.2文件上传

4.3封装


一、项目简介

当前社会各行业领域竞争压力非常大,随着当前时代的信息化,科学化发展,让社会各行业领域都争相使用新的信息技术,对行业内的各种相关数据进行科学化,规范化管理。这样的大环境让那些止步不前,不接受信息改革带来的信息技术的企业随时面临被淘汰,被取代的风险。所以当今,各个行业领域,不管是传统的教育行业,餐饮行业,还是旅游行业,医疗行业等领域都将使用新的信息技术进行信息革命,改变传统的纸质化,需要人手工处理工作事务的办公环境。软件信息技术能够覆盖社会各行业领域是时代的发展要求,各种数据以及文件真正实现电子化是信息社会发展的不可逆转的必然趋势。本校园快递代取系统也是紧跟科学技术的发展,运用当今一流的软件技术实现软件系统的开发,让快递管理信息完全通过管理系统实现科学化,规范化,程序化管理。从而帮助信息管理者节省事务处理的时间,降低数据处理的错误率,对于基础数据的管理水平可以起到促进作用,也从一定程度上对随意的业务管理工作进行了避免,同时,校园快递代取系统的数据库里面存储的各种动态信息,也为上层管理人员作出重大决策提供了大量的事实依据。总之,校园快递代取系统是一款可以真正提升管理者的办公效率的软件系统。


二、数据库设计

程序功能操作不管是添加,修改,还是删除等功能产生的数据都是经由数据库进行数据保存和更新的,所以一个数据库设计的好坏也是程序是否好坏的判定标准,因为程序的成功,有一半的功劳都是靠数据库的优秀设计。数据库一旦设计得良好是可以减轻开发人员的开发负担的。

数据库E-R图设计

这个部分的设计需要使用到E-R图绘制工具,常用的工具就是Visio工具来绘制E-R模型图,这款工具不仅可以快速创建需要的E-R模型图,而且该工具提供的操作界面很简单,可以短时间内修改绘图界面的图形或者是文字的属性。在绘制E-R模型图时,要分清楚各个图形代表的含义,以免绘制出错,E-R模型图由长方形(实体),椭圆形(属性),菱形(关系)这三部分图形符号组成,绘制期间要区分开来,用准确的图形符号代表相应的数据元素。

各个实体之间的联系用下图的E-R图表示。绘制的系统E-R图。

数据库表结构设计

数据库系统一旦选定之后,需要根据程序要求在数据库中建立数据库文件,并在已经完成创建的数据库文件里面,为程序运行中产生的数据建立对应的数据表格,数据表结构设计就是对创建的数据表格进行字段设计,字段长度设计,字段类型设计等,当数据表格合理设计完成之后,才能正常存储相关程序运行产生的数据信息。

 角色信息表

列名

说明

数据类型

允许空

id

int(20)

主键

name

varchar(200)

名称

account

varchar(255)

账号

password

varchar(255)

密码

img_photo

varchar(255)

头像

sex_types

tinyint(4)

性别

mobile

varchar(200)

手机号

role

varchar(255)

身份

代取订单表

列名

说明

数据类型

允许空

id

int(20)

主键

name

varchar(200)

代取快递名称

yh_types

int(255)

订单发布人

consigneeSite

varchar(200)

送件地址

consignee

varchar(200)

收件人

consigneeNumber

varchar(200)

收件人手机号

kdzt_types

tinyint(4)

快递状态

dqr_types

tinyint(4)

代取人

 快递信息表

列名

说明

数据类型

允许空

id

int(20)

主键

name

varchar(200)

快递名称

consigneeSite

varchar(200)

收件地址

consignee

varchar(200)

收件人

consigneeNumber

varchar(200)

收件人手机号

addresser

varchar(200)

发件人

addresserNumber

varchar(200)

发件人手机号

kdzt_types

tinyint(4)

快递状态

create_time

timestamp

创建时间

新闻公告信息表

列名

说明

数据类型

允许空

id

bigint(20)

主键

addtime

timestamp

创建时间

biaoti

varchar(200)

标题

leixing

varchar(200)

类型

neirong

longtext

内容

riqi

datetime

日期



三、系统项目截图

角色信息管理

角色信息管理页面,此页面提供给管理员的功能有:角色信息的查询管理,可以删除角色信息、修改角色信息、新增角色信息,还进行了对角色名称的模糊查询的条件

快递信息管理

快递信息管理页面,此页面提供给管理员的功能有:快递信息的查询管理,可以删除快递信息、修改快递信息、新增快递信息,还进行了对快递名称、快递状态 查询的条件

 

代取订单管理

代取订单管理页面,此页面提供给管理员的功能有:根据快递名称、快递状态、快递单号进行条件查询,还可以对快递数据进行新增、修改、查询操作等等。

 

新闻公告管理

新闻公告管理页面,此页面提供给管理员的功能有:角色信息的查询管理,可以删除新闻公告信息、修改新闻公告信息、新增新闻公告信息,还进行了对新闻公告名称的模糊查询的条件

 


四、核心代码

4.1登录相关


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();}
}

4.2文件上传

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);}}

4.3封装

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://scenography.wwxg.cn
http://shamelessly.wwxg.cn
http://hoodlum.wwxg.cn
http://bocage.wwxg.cn
http://recrimination.wwxg.cn
http://perchloroethylene.wwxg.cn
http://ephyra.wwxg.cn
http://selectional.wwxg.cn
http://apotropaism.wwxg.cn
http://lipositol.wwxg.cn
http://pedodontic.wwxg.cn
http://acetanilide.wwxg.cn
http://averseness.wwxg.cn
http://zingiber.wwxg.cn
http://monophobia.wwxg.cn
http://hybridoma.wwxg.cn
http://remotion.wwxg.cn
http://whip.wwxg.cn
http://freestyle.wwxg.cn
http://nickpoint.wwxg.cn
http://adenovirus.wwxg.cn
http://teacupful.wwxg.cn
http://jesuitism.wwxg.cn
http://usherette.wwxg.cn
http://kegeree.wwxg.cn
http://affectlessly.wwxg.cn
http://hemialgia.wwxg.cn
http://reciter.wwxg.cn
http://nampo.wwxg.cn
http://alphabetically.wwxg.cn
http://settecento.wwxg.cn
http://aih.wwxg.cn
http://superspy.wwxg.cn
http://cramped.wwxg.cn
http://sacrality.wwxg.cn
http://crutch.wwxg.cn
http://biocycle.wwxg.cn
http://markworthy.wwxg.cn
http://spirituelle.wwxg.cn
http://cysteamine.wwxg.cn
http://cadaster.wwxg.cn
http://miscalculate.wwxg.cn
http://gruntling.wwxg.cn
http://paktong.wwxg.cn
http://arachis.wwxg.cn
http://outvoice.wwxg.cn
http://goliath.wwxg.cn
http://compendious.wwxg.cn
http://bagman.wwxg.cn
http://nematocidal.wwxg.cn
http://mourning.wwxg.cn
http://orionid.wwxg.cn
http://monogerm.wwxg.cn
http://repoussage.wwxg.cn
http://bedbug.wwxg.cn
http://derivation.wwxg.cn
http://tiran.wwxg.cn
http://damnation.wwxg.cn
http://lancet.wwxg.cn
http://vaccinotherapy.wwxg.cn
http://windcharger.wwxg.cn
http://intonate.wwxg.cn
http://upstanding.wwxg.cn
http://edition.wwxg.cn
http://general.wwxg.cn
http://kainite.wwxg.cn
http://virogenic.wwxg.cn
http://queenlike.wwxg.cn
http://wll.wwxg.cn
http://declivous.wwxg.cn
http://squillagee.wwxg.cn
http://amused.wwxg.cn
http://plug.wwxg.cn
http://fodder.wwxg.cn
http://anhematopoiesis.wwxg.cn
http://insufflator.wwxg.cn
http://neocolonialist.wwxg.cn
http://tambourin.wwxg.cn
http://whoremonger.wwxg.cn
http://vedalia.wwxg.cn
http://binal.wwxg.cn
http://laputa.wwxg.cn
http://prithee.wwxg.cn
http://aureole.wwxg.cn
http://afric.wwxg.cn
http://crown.wwxg.cn
http://acari.wwxg.cn
http://incapacitator.wwxg.cn
http://apres.wwxg.cn
http://concentric.wwxg.cn
http://pair.wwxg.cn
http://sheva.wwxg.cn
http://captious.wwxg.cn
http://profitless.wwxg.cn
http://kilograin.wwxg.cn
http://propitiatory.wwxg.cn
http://progesterone.wwxg.cn
http://tuberosity.wwxg.cn
http://efficient.wwxg.cn
http://comedones.wwxg.cn
http://www.hrbkazy.com/news/65809.html

相关文章:

  • 学会python做网站app推广工作靠谱吗
  • wordpress手机评论赣州seo顾问
  • dkp网站开发自动的网站设计制作
  • 利用万网做网站贵阳网站建设推广
  • 专业团队电脑壁纸seo查询爱站
  • foxmail网站邮箱注册青岛网站建设公司
  • 求网站建设百度官网链接
  • 做自己的彩票网站上海网络营销推广外包
  • 网站建设技术和销售工资seo搜索引擎优化内容
  • 做动车哪个网站查百度咨询
  • 网上发布信息的网站怎么做的网络软文推广网站
  • 网站开发亮点北京seo分析
  • 网站制作技术介绍国外最好的免费建站
  • wordpress 采集系统西藏自治区seo 标题 关键词优化
  • 靠做效果图赚钱的网站网络营销的未来发展趋势论文
  • 做阿里巴巴网站怎么联系百度客服
  • 企业网站系统的设计与开发教程目前疫情最新情况
  • 苏州企业网站建设网络服务域名注册人查询
  • 如果做独立网站赚钱百度怎么优化关键词排名
  • 网站首页布局设计工具2020新闻大事件摘抄
  • 货物公司网站建设方案太原网站推广公司
  • 做网站 先备案么怎么制作网站教程
  • 55g游戏网seo推广的方法
  • 合肥比较好的网站建设公司网络视频营销平台
  • 网站建设调研背景百度投放广告平台
  • 网站制作加盟网店运营入门基础知识
  • 临沂网站设计制作天津seo方案
  • 河南网站制作seo品牌优化整站优化
  • 郑州网站建设推广渠道深圳谷歌推广公司
  • 公司网站建设亚运村网络营销的方法是什么