基于SSM的社区文化宣传网站

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



一、项目简介

随着科学技术的飞速发展,社会的方方面面、各行各业都在努力与现代的先进技术接轨,通过科技手段来提高自身的优势,社区文化宣传网站当然也不能排除在外。社区文化宣传网站是以实际运用为开发背景,运用软件工程开发方法,采用jsp技术构建的一个管理系统。整个开发过程首先对软件系统进行需求分析,得出系统的主要功能。接着对系统进行总体设计和详细设计。总体设计主要包括系统总体结构设计、系统数据结构设计、系统功能设计和系统安全设计等;详细设计主要包括模块实现的关键代码,系统数据库访问和主要功能模块的具体实现等。最后对系统进行功能测试,并对测试结果进行分析总结,及时改进系统中存在的不足,为以后的系统维护提供了方便,也为今后开发类似系统提供了借鉴和帮助。

本社区文化宣传网站采用的数据库是Mysql,使用JSP技术开发。在设计过程中,充分保证了系统代码的良好可读性、实用性、易扩展性、通用性、便于后期维护、操作方便以及页面简洁等特点。


二、系统功能

本社区文化宣传网站主要包括两大功能模块,即用户功能模块和管理员功能模块。

(1)管理员模块:个人中心、用户管理、社区新闻管理、社区公告管理、社区活动管理、医疗服务管理、社区美食管理、家政服务管理、活动报名管理、家政预约管理、系统管理。

(2)用户模块:首页、社区新闻、社区公告、社区活动、医疗服务、社区美食、家政服务、个人中心。



三、系统项目截图

3.1前台首页

社区文化宣传网站,在社区文化宣传网站可以查看首页、社区新闻、社区公告、社区活动、医疗服务、社区美食、家政服务、我的、跳转到后台等内容

基于SSM的社区文化宣传网站_第1张图片

用户注册、用户登录,通过注册填写用户名、密码、用户姓名、用户手机等信息进行注册、登录操作

基于SSM的社区文化宣传网站_第2张图片 基于SSM的社区文化宣传网站_第3张图片

社区活动,在社区活动页面可以查看活动名称、活动图片、报名条件、开始时间、结束时间、活动内容、活动地点、举办方、联系电话等信息进行活动报名、点我收藏操作

基于SSM的社区文化宣传网站_第4张图片 

社区美食,在社区美食页面可以查看店铺名称、经营类型、美食图片、店铺地址、营业时间、主打美食、联系电话、联系人等信息进行点我收藏操作

基于SSM的社区文化宣传网站_第5张图片 

3.2后台管理

 管理员登录,通过填写用户名、密码等信息,输入完成后选择登录即可进入社区文化宣传网站

社区文化宣传网站,在社区文化宣传网站可以查看个人中心、用户管理、社区新闻管理、社区公告管理、社区活动管理、医疗服务管理、社区美食管理、家政服务管理、活动报名管理、家政预约管理、系统管理等内容

基于SSM的社区文化宣传网站_第6张图片 用户管理,在用户管理页面可以查看用户名、密码、用户姓名、性别、头像、用户手机等信息进行查看、修改、删除操作

基于SSM的社区文化宣传网站_第7张图片

社区新闻管理,在社区新闻管理页面可以查看新闻标题、文章来源、发布时间、新闻内容、新闻图片、发布人等信息进行修改、删除、查看等操作

基于SSM的社区文化宣传网站_第8张图片 

社区公告管理,在社区公告管理页面可以查看公告标题、封面图片、公告内容、发布时间、发布人、附件等信息进行查看、修改、删除操作

基于SSM的社区文化宣传网站_第9张图片 

社区活动管理,在社区活动管理页面可以查看活动名称、活动图片、报名条件、开始时间、结束时间、活动内容、活动地点、举办方、联系电话等信息进行查看、修改、删除

基于SSM的社区文化宣传网站_第10张图片 

医疗服务管理,在医疗服务管理页面可以查看医院名称、医院地址、医院图片、服务介绍、联系人、联系电话等信息进行查看、修改、删除操作

基于SSM的社区文化宣传网站_第11张图片 

社区美食管理,在社区美食管理页面可以查看店铺名称、经营类型、美食图片、店铺地址、营业时间、主打美食、联系电话、联系人等信息进行查看、修改、删除操作

基于SSM的社区文化宣传网站_第12张图片 家政服务管理,在家政服务管理页面可以查看家政姓名、性别、年龄、照片、服务类型、服务价格、家政电话、服务介绍等信息进行查看、修改、删除操作

基于SSM的社区文化宣传网站_第13张图片

活动报名管理,在活动报名管理页面可以查看报名编号、活动名称、活动图片、举办方、联系电话、开始时间、结束时间、用户名、用户姓名、报名时间、备注等信息进行查看、修改、删除操作

基于SSM的社区文化宣传网站_第14张图片 

家政预约管理,在家政预约管理页面可以查看家政姓名、服务类型、性别、照片、服务价格、预约时间、用户名、用户姓名、用户手机、地址、备注、是否支付等信息进行查看、修改、删除操作

基于SSM的社区文化宣传网站_第15张图片 

轮播图;该页面为轮播图管理界面。管理员可以在此页面进行首页轮播图的管理,通过新建操作可在轮播图中加入新的图片,还可以对以上传的图片进行修改操作,以及图片的删除操作

基于SSM的社区文化宣传网站_第16张图片 


四、核心代码

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{
	
	@Autowired
	private UserService userService;
	
	@Autowired
	private TokenService tokenService;

	/**
	 * 登录
	 */
	@IgnoreAuth
	@PostMapping(value = "/login")
	public R login(String username, String password, String captcha, HttpServletRequest request) {
		UserEntity user = userService.selectOne(new EntityWrapper().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().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().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 params,UserEntity user){
        EntityWrapper ew = new EntityWrapper();
    	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 ew = new EntityWrapper();
      	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().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{
	@Autowired
    private 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().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 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(FileUtils.readFileToByteArray(file),headers, HttpStatus.CREATED);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
		return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
	}
	
}

4.3封装

package com.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * 返回数据
 */
public class R extends HashMap {
	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 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;
	}
}

4.4sql语句

/*
SQLyog Ultimate v11.3 (64 bit)
MySQL - 5.7.32-log : Database - jspm9w23w
*********************************************************************
*/

/*!40101 SET NAMES utf8 */;

/*!40101 SET SQL_MODE=''*/;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`jspm9w23w` /*!40100 DEFAULT CHARACTER SET utf8 */;

USE `jspm9w23w`;

/*Table structure for table `config` */

DROP TABLE IF EXISTS `config`;

CREATE TABLE `config` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `name` varchar(100) NOT NULL COMMENT '配置参数名称',
  `value` varchar(100) DEFAULT NULL COMMENT '配置参数值',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='配置文件';

/*Data for the table `config` */

insert  into `config`(`id`,`name`,`value`) values (1,'picture1','http://localhost:8080/jspm9w23w/upload/picture1.jpg');
insert  into `config`(`id`,`name`,`value`) values (2,'picture2','http://localhost:8080/jspm9w23w/upload/picture2.jpg');
insert  into `config`(`id`,`name`,`value`) values (3,'picture3','http://localhost:8080/jspm9w23w/upload/picture3.jpg');
insert  into `config`(`id`,`name`,`value`) values (6,'homepage',NULL);

/*Table structure for table `huodongbaoming` */

DROP TABLE IF EXISTS `huodongbaoming`;

CREATE TABLE `huodongbaoming` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `baomingbianhao` varchar(200) DEFAULT NULL COMMENT '报名编号',
  `huodongmingcheng` varchar(200) DEFAULT NULL COMMENT '活动名称',
  `huodongtupian` varchar(200) DEFAULT NULL COMMENT '活动图片',
  `jubanfang` varchar(200) DEFAULT NULL COMMENT '举办方',
  `lianxidianhua` varchar(200) DEFAULT NULL COMMENT '联系电话',
  `kaishishijian` varchar(200) DEFAULT NULL COMMENT '开始时间',
  `jieshushijian` varchar(200) DEFAULT NULL COMMENT '结束时间',
  `yonghuming` varchar(200) DEFAULT NULL COMMENT '用户名',
  `yonghuxingming` varchar(200) DEFAULT NULL COMMENT '用户姓名',
  `baomingshijian` datetime DEFAULT NULL COMMENT '报名时间',
  `beizhu` varchar(200) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`),
  UNIQUE KEY `baomingbianhao` (`baomingbianhao`)
) ENGINE=InnoDB AUTO_INCREMENT=1613974303111 DEFAULT CHARSET=utf8 COMMENT='活动报名';

/*Data for the table `huodongbaoming` */

insert  into `huodongbaoming`(`id`,`addtime`,`baomingbianhao`,`huodongmingcheng`,`huodongtupian`,`jubanfang`,`lianxidianhua`,`kaishishijian`,`jieshushijian`,`yonghuming`,`yonghuxingming`,`baomingshijian`,`beizhu`) values (81,'2021-02-22 14:04:43','报名编号1','活动名称1','http://localhost:8080/jspm9w23w/upload/huodongbaoming_huodongtupian1.jpg','举办方1','联系电话1','开始时间1','结束时间1','用户名1','用户姓名1','2021-02-22 14:04:43','备注1');
insert  into `huodongbaoming`(`id`,`addtime`,`baomingbianhao`,`huodongmingcheng`,`huodongtupian`,`jubanfang`,`lianxidianhua`,`kaishishijian`,`jieshushijian`,`yonghuming`,`yonghuxingming`,`baomingshijian`,`beizhu`) values (82,'2021-02-22 14:04:43','报名编号2','活动名称2','http://localhost:8080/jspm9w23w/upload/huodongbaoming_huodongtupian2.jpg','举办方2','联系电话2','开始时间2','结束时间2','用户名2','用户姓名2','2021-02-22 14:04:43','备注2');
insert  into `huodongbaoming`(`id`,`addtime`,`baomingbianhao`,`huodongmingcheng`,`huodongtupian`,`jubanfang`,`lianxidianhua`,`kaishishijian`,`jieshushijian`,`yonghuming`,`yonghuxingming`,`baomingshijian`,`beizhu`) values (83,'2021-02-22 14:04:43','报名编号3','活动名称3','http://localhost:8080/jspm9w23w/upload/huodongbaoming_huodongtupian3.jpg','举办方3','联系电话3','开始时间3','结束时间3','用户名3','用户姓名3','2021-02-22 14:04:43','备注3');
insert  into `huodongbaoming`(`id`,`addtime`,`baomingbianhao`,`huodongmingcheng`,`huodongtupian`,`jubanfang`,`lianxidianhua`,`kaishishijian`,`jieshushijian`,`yonghuming`,`yonghuxingming`,`baomingshijian`,`beizhu`) values (84,'2021-02-22 14:04:43','报名编号4','活动名称4','http://localhost:8080/jspm9w23w/upload/huodongbaoming_huodongtupian4.jpg','举办方4','联系电话4','开始时间4','结束时间4','用户名4','用户姓名4','2021-02-22 14:04:43','备注4');
insert  into `huodongbaoming`(`id`,`addtime`,`baomingbianhao`,`huodongmingcheng`,`huodongtupian`,`jubanfang`,`lianxidianhua`,`kaishishijian`,`jieshushijian`,`yonghuming`,`yonghuxingming`,`baomingshijian`,`beizhu`) values (85,'2021-02-22 14:04:43','报名编号5','活动名称5','http://localhost:8080/jspm9w23w/upload/huodongbaoming_huodongtupian5.jpg','举办方5','联系电话5','开始时间5','结束时间5','用户名5','用户姓名5','2021-02-22 14:04:43','备注5');
insert  into `huodongbaoming`(`id`,`addtime`,`baomingbianhao`,`huodongmingcheng`,`huodongtupian`,`jubanfang`,`lianxidianhua`,`kaishishijian`,`jieshushijian`,`yonghuming`,`yonghuxingming`,`baomingshijian`,`beizhu`) values (86,'2021-02-22 14:04:43','报名编号6','活动名称6','http://localhost:8080/jspm9w23w/upload/huodongbaoming_huodongtupian6.jpg','举办方6','联系电话6','开始时间6','结束时间6','用户名6','用户姓名6','2021-02-22 14:04:43','备注6');
insert  into `huodongbaoming`(`id`,`addtime`,`baomingbianhao`,`huodongmingcheng`,`huodongtupian`,`jubanfang`,`lianxidianhua`,`kaishishijian`,`jieshushijian`,`yonghuming`,`yonghuxingming`,`baomingshijian`,`beizhu`) values (1613974303110,'2021-02-22 14:11:42','202122214113755630095','活动名称1','http://localhost:8080/jspm9w23w/upload/shequhuodong_huodongtupian1.jpg','举办方1','联系电话1','2021-02-22','2021-02-22','1','xxx用户','2021-02-22 14:11:40','xxxx');

/*Table structure for table `jiazhengfuwu` */

DROP TABLE IF EXISTS `jiazhengfuwu`;

CREATE TABLE `jiazhengfuwu` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `jiazhengxingming` varchar(200) DEFAULT NULL COMMENT '家政姓名',
  `xingbie` varchar(200) DEFAULT NULL COMMENT '性别',
  `nianling` int(11) DEFAULT NULL COMMENT '年龄',
  `zhaopian` varchar(200) DEFAULT NULL COMMENT '照片',
  `fuwuleixing` varchar(200) DEFAULT NULL COMMENT '服务类型',
  `fuwujiage` varchar(200) NOT NULL COMMENT '服务价格',
  `jiazhengdianhua` varchar(200) DEFAULT NULL COMMENT '家政电话',
  `fuwujieshao` longtext COMMENT '服务介绍',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8 COMMENT='家政服务';

/*Data for the table `jiazhengfuwu` */

insert  into `jiazhengfuwu`(`id`,`addtime`,`jiazhengxingming`,`xingbie`,`nianling`,`zhaopian`,`fuwuleixing`,`fuwujiage`,`jiazhengdianhua`,`fuwujieshao`) values (71,'2021-02-22 14:04:43','家政姓名1','男',1,'http://localhost:8080/jspm9w23w/upload/jiazhengfuwu_zhaopian1.jpg','服务类型1','服务价格1','家政电话1','服务介绍1');
insert  into `jiazhengfuwu`(`id`,`addtime`,`jiazhengxingming`,`xingbie`,`nianling`,`zhaopian`,`fuwuleixing`,`fuwujiage`,`jiazhengdianhua`,`fuwujieshao`) values (72,'2021-02-22 14:04:43','家政姓名2','男',2,'http://localhost:8080/jspm9w23w/upload/jiazhengfuwu_zhaopian2.jpg','服务类型2','服务价格2','家政电话2','服务介绍2');
insert  into `jiazhengfuwu`(`id`,`addtime`,`jiazhengxingming`,`xingbie`,`nianling`,`zhaopian`,`fuwuleixing`,`fuwujiage`,`jiazhengdianhua`,`fuwujieshao`) values (73,'2021-02-22 14:04:43','家政姓名3','男',3,'http://localhost:8080/jspm9w23w/upload/jiazhengfuwu_zhaopian3.jpg','服务类型3','服务价格3','家政电话3','服务介绍3');
insert  into `jiazhengfuwu`(`id`,`addtime`,`jiazhengxingming`,`xingbie`,`nianling`,`zhaopian`,`fuwuleixing`,`fuwujiage`,`jiazhengdianhua`,`fuwujieshao`) values (74,'2021-02-22 14:04:43','家政姓名4','男',4,'http://localhost:8080/jspm9w23w/upload/jiazhengfuwu_zhaopian4.jpg','服务类型4','服务价格4','家政电话4','服务介绍4');
insert  into `jiazhengfuwu`(`id`,`addtime`,`jiazhengxingming`,`xingbie`,`nianling`,`zhaopian`,`fuwuleixing`,`fuwujiage`,`jiazhengdianhua`,`fuwujieshao`) values (75,'2021-02-22 14:04:43','家政姓名5','男',5,'http://localhost:8080/jspm9w23w/upload/jiazhengfuwu_zhaopian5.jpg','服务类型5','服务价格5','家政电话5','服务介绍5');
insert  into `jiazhengfuwu`(`id`,`addtime`,`jiazhengxingming`,`xingbie`,`nianling`,`zhaopian`,`fuwuleixing`,`fuwujiage`,`jiazhengdianhua`,`fuwujieshao`) values (76,'2021-02-22 14:04:43','家政姓名6','男',6,'http://localhost:8080/jspm9w23w/upload/jiazhengfuwu_zhaopian6.jpg','服务类型6','服务价格6','家政电话6','服务介绍6');

/*Table structure for table `jiazhengyuyue` */

DROP TABLE IF EXISTS `jiazhengyuyue`;

CREATE TABLE `jiazhengyuyue` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `jiazhengxingming` varchar(200) DEFAULT NULL COMMENT '家政姓名',
  `fuwuleixing` varchar(200) DEFAULT NULL COMMENT '服务类型',
  `xingbie` varchar(200) DEFAULT NULL COMMENT '性别',
  `zhaopian` varchar(200) DEFAULT NULL COMMENT '照片',
  `fuwujiage` varchar(200) DEFAULT NULL COMMENT '服务价格',
  `yuyueshijian` date DEFAULT NULL COMMENT '预约时间',
  `yonghuming` varchar(200) DEFAULT NULL COMMENT '用户名',
  `yonghuxingming` varchar(200) DEFAULT NULL COMMENT '用户姓名',
  `yonghushouji` varchar(200) DEFAULT NULL COMMENT '用户手机',
  `dizhi` varchar(200) NOT NULL COMMENT '地址',
  `beizhu` varchar(200) DEFAULT NULL COMMENT '备注',
  `ispay` varchar(200) DEFAULT '未支付' COMMENT '是否支付',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1613974331797 DEFAULT CHARSET=utf8 COMMENT='家政预约';

/*Data for the table `jiazhengyuyue` */

insert  into `jiazhengyuyue`(`id`,`addtime`,`jiazhengxingming`,`fuwuleixing`,`xingbie`,`zhaopian`,`fuwujiage`,`yuyueshijian`,`yonghuming`,`yonghuxingming`,`yonghushouji`,`dizhi`,`beizhu`,`ispay`) values (91,'2021-02-22 14:04:43','家政姓名1','服务类型1','性别1','http://localhost:8080/jspm9w23w/upload/jiazhengyuyue_zhaopian1.jpg','服务价格1','2021-02-22','用户名1','用户姓名1','用户手机1','地址1','备注1','未支付');
insert  into `jiazhengyuyue`(`id`,`addtime`,`jiazhengxingming`,`fuwuleixing`,`xingbie`,`zhaopian`,`fuwujiage`,`yuyueshijian`,`yonghuming`,`yonghuxingming`,`yonghushouji`,`dizhi`,`beizhu`,`ispay`) values (92,'2021-02-22 14:04:43','家政姓名2','服务类型2','性别2','http://localhost:8080/jspm9w23w/upload/jiazhengyuyue_zhaopian2.jpg','服务价格2','2021-02-22','用户名2','用户姓名2','用户手机2','地址2','备注2','未支付');
insert  into `jiazhengyuyue`(`id`,`addtime`,`jiazhengxingming`,`fuwuleixing`,`xingbie`,`zhaopian`,`fuwujiage`,`yuyueshijian`,`yonghuming`,`yonghuxingming`,`yonghushouji`,`dizhi`,`beizhu`,`ispay`) values (93,'2021-02-22 14:04:43','家政姓名3','服务类型3','性别3','http://localhost:8080/jspm9w23w/upload/jiazhengyuyue_zhaopian3.jpg','服务价格3','2021-02-22','用户名3','用户姓名3','用户手机3','地址3','备注3','未支付');
insert  into `jiazhengyuyue`(`id`,`addtime`,`jiazhengxingming`,`fuwuleixing`,`xingbie`,`zhaopian`,`fuwujiage`,`yuyueshijian`,`yonghuming`,`yonghuxingming`,`yonghushouji`,`dizhi`,`beizhu`,`ispay`) values (94,'2021-02-22 14:04:43','家政姓名4','服务类型4','性别4','http://localhost:8080/jspm9w23w/upload/jiazhengyuyue_zhaopian4.jpg','服务价格4','2021-02-22','用户名4','用户姓名4','用户手机4','地址4','备注4','未支付');
insert  into `jiazhengyuyue`(`id`,`addtime`,`jiazhengxingming`,`fuwuleixing`,`xingbie`,`zhaopian`,`fuwujiage`,`yuyueshijian`,`yonghuming`,`yonghuxingming`,`yonghushouji`,`dizhi`,`beizhu`,`ispay`) values (95,'2021-02-22 14:04:43','家政姓名5','服务类型5','性别5','http://localhost:8080/jspm9w23w/upload/jiazhengyuyue_zhaopian5.jpg','服务价格5','2021-02-22','用户名5','用户姓名5','用户手机5','地址5','备注5','未支付');
insert  into `jiazhengyuyue`(`id`,`addtime`,`jiazhengxingming`,`fuwuleixing`,`xingbie`,`zhaopian`,`fuwujiage`,`yuyueshijian`,`yonghuming`,`yonghuxingming`,`yonghushouji`,`dizhi`,`beizhu`,`ispay`) values (96,'2021-02-22 14:04:43','家政姓名6','服务类型6','性别6','http://localhost:8080/jspm9w23w/upload/jiazhengyuyue_zhaopian6.jpg','服务价格6','2021-02-22','用户名6','用户姓名6','用户手机6','地址6','备注6','未支付');
insert  into `jiazhengyuyue`(`id`,`addtime`,`jiazhengxingming`,`fuwuleixing`,`xingbie`,`zhaopian`,`fuwujiage`,`yuyueshijian`,`yonghuming`,`yonghuxingming`,`yonghushouji`,`dizhi`,`beizhu`,`ispay`) values (1613974331796,'2021-02-22 14:12:10','家政姓名1','服务类型1','男','http://localhost:8080/jspm9w23w/upload/jiazhengfuwu_zhaopian1.jpg','服务价格1','2021-02-25','1','xxx用户','13811111111','xxxxx','xxxx','已支付');

/*Table structure for table `shequgonggao` */

DROP TABLE IF EXISTS `shequgonggao`;

CREATE TABLE `shequgonggao` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `gonggaobiaoti` varchar(200) DEFAULT NULL COMMENT '公告标题',
  `fengmiantupian` varchar(200) DEFAULT NULL COMMENT '封面图片',
  `gonggaoneirong` longtext COMMENT '公告内容',
  `fabushijian` varchar(200) DEFAULT NULL COMMENT '发布时间',
  `faburen` varchar(200) DEFAULT NULL COMMENT '发布人',
  `fujian` varchar(200) DEFAULT NULL COMMENT '附件',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COMMENT='社区公告';

/*Data for the table `shequgonggao` */

insert  into `shequgonggao`(`id`,`addtime`,`gonggaobiaoti`,`fengmiantupian`,`gonggaoneirong`,`fabushijian`,`faburen`,`fujian`) values (31,'2021-02-22 14:04:43','公告标题1','http://localhost:8080/jspm9w23w/upload/shequgonggao_fengmiantupian1.jpg','公告内容1','发布时间1','发布人1','');
insert  into `shequgonggao`(`id`,`addtime`,`gonggaobiaoti`,`fengmiantupian`,`gonggaoneirong`,`fabushijian`,`faburen`,`fujian`) values (32,'2021-02-22 14:04:43','公告标题2','http://localhost:8080/jspm9w23w/upload/shequgonggao_fengmiantupian2.jpg','公告内容2','发布时间2','发布人2','');
insert  into `shequgonggao`(`id`,`addtime`,`gonggaobiaoti`,`fengmiantupian`,`gonggaoneirong`,`fabushijian`,`faburen`,`fujian`) values (33,'2021-02-22 14:04:43','公告标题3','http://localhost:8080/jspm9w23w/upload/shequgonggao_fengmiantupian3.jpg','公告内容3','发布时间3','发布人3','');
insert  into `shequgonggao`(`id`,`addtime`,`gonggaobiaoti`,`fengmiantupian`,`gonggaoneirong`,`fabushijian`,`faburen`,`fujian`) values (34,'2021-02-22 14:04:43','公告标题4','http://localhost:8080/jspm9w23w/upload/shequgonggao_fengmiantupian4.jpg','公告内容4','发布时间4','发布人4','');
insert  into `shequgonggao`(`id`,`addtime`,`gonggaobiaoti`,`fengmiantupian`,`gonggaoneirong`,`fabushijian`,`faburen`,`fujian`) values (35,'2021-02-22 14:04:43','公告标题5','http://localhost:8080/jspm9w23w/upload/shequgonggao_fengmiantupian5.jpg','公告内容5','发布时间5','发布人5','');
insert  into `shequgonggao`(`id`,`addtime`,`gonggaobiaoti`,`fengmiantupian`,`gonggaoneirong`,`fabushijian`,`faburen`,`fujian`) values (36,'2021-02-22 14:04:43','公告标题6','http://localhost:8080/jspm9w23w/upload/shequgonggao_fengmiantupian6.jpg','公告内容6','发布时间6','发布人6','');

/*Table structure for table `shequhuodong` */

DROP TABLE IF EXISTS `shequhuodong`;

CREATE TABLE `shequhuodong` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `huodongmingcheng` varchar(200) DEFAULT NULL COMMENT '活动名称',
  `huodongtupian` varchar(200) DEFAULT NULL COMMENT '活动图片',
  `baomingtiaojian` varchar(200) DEFAULT NULL COMMENT '报名条件',
  `kaishishijian` date DEFAULT NULL COMMENT '开始时间',
  `jieshushijian` date DEFAULT NULL COMMENT '结束时间',
  `huodongneirong` longtext COMMENT '活动内容',
  `huodongdidian` varchar(200) DEFAULT NULL COMMENT '活动地点',
  `jubanfang` varchar(200) DEFAULT NULL COMMENT '举办方',
  `lianxidianhua` varchar(200) DEFAULT NULL COMMENT '联系电话',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8 COMMENT='社区活动';

/*Data for the table `shequhuodong` */

insert  into `shequhuodong`(`id`,`addtime`,`huodongmingcheng`,`huodongtupian`,`baomingtiaojian`,`kaishishijian`,`jieshushijian`,`huodongneirong`,`huodongdidian`,`jubanfang`,`lianxidianhua`) values (41,'2021-02-22 14:04:43','活动名称1','http://localhost:8080/jspm9w23w/upload/shequhuodong_huodongtupian1.jpg','报名条件1','2021-02-22','2021-02-22','活动内容1','活动地点1','举办方1','联系电话1');
insert  into `shequhuodong`(`id`,`addtime`,`huodongmingcheng`,`huodongtupian`,`baomingtiaojian`,`kaishishijian`,`jieshushijian`,`huodongneirong`,`huodongdidian`,`jubanfang`,`lianxidianhua`) values (42,'2021-02-22 14:04:43','活动名称2','http://localhost:8080/jspm9w23w/upload/shequhuodong_huodongtupian2.jpg','报名条件2','2021-02-22','2021-02-22','活动内容2','活动地点2','举办方2','联系电话2');
insert  into `shequhuodong`(`id`,`addtime`,`huodongmingcheng`,`huodongtupian`,`baomingtiaojian`,`kaishishijian`,`jieshushijian`,`huodongneirong`,`huodongdidian`,`jubanfang`,`lianxidianhua`) values (43,'2021-02-22 14:04:43','活动名称3','http://localhost:8080/jspm9w23w/upload/shequhuodong_huodongtupian3.jpg','报名条件3','2021-02-22','2021-02-22','活动内容3','活动地点3','举办方3','联系电话3');
insert  into `shequhuodong`(`id`,`addtime`,`huodongmingcheng`,`huodongtupian`,`baomingtiaojian`,`kaishishijian`,`jieshushijian`,`huodongneirong`,`huodongdidian`,`jubanfang`,`lianxidianhua`) values (44,'2021-02-22 14:04:43','活动名称4','http://localhost:8080/jspm9w23w/upload/shequhuodong_huodongtupian4.jpg','报名条件4','2021-02-22','2021-02-22','活动内容4','活动地点4','举办方4','联系电话4');
insert  into `shequhuodong`(`id`,`addtime`,`huodongmingcheng`,`huodongtupian`,`baomingtiaojian`,`kaishishijian`,`jieshushijian`,`huodongneirong`,`huodongdidian`,`jubanfang`,`lianxidianhua`) values (45,'2021-02-22 14:04:43','活动名称5','http://localhost:8080/jspm9w23w/upload/shequhuodong_huodongtupian5.jpg','报名条件5','2021-02-22','2021-02-22','活动内容5','活动地点5','举办方5','联系电话5');
insert  into `shequhuodong`(`id`,`addtime`,`huodongmingcheng`,`huodongtupian`,`baomingtiaojian`,`kaishishijian`,`jieshushijian`,`huodongneirong`,`huodongdidian`,`jubanfang`,`lianxidianhua`) values (46,'2021-02-22 14:04:43','活动名称6','http://localhost:8080/jspm9w23w/upload/shequhuodong_huodongtupian6.jpg','报名条件6','2021-02-22','2021-02-22','活动内容6','活动地点6','举办方6','联系电话6');

/*Table structure for table `shequmeishi` */

DROP TABLE IF EXISTS `shequmeishi`;

CREATE TABLE `shequmeishi` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `dianpumingcheng` varchar(200) DEFAULT NULL COMMENT '店铺名称',
  `jingyingleixing` varchar(200) DEFAULT NULL COMMENT '经营类型',
  `meishitupian` varchar(200) DEFAULT NULL COMMENT '美食图片',
  `dianpudizhi` varchar(200) DEFAULT NULL COMMENT '店铺地址',
  `yingyeshijian` varchar(200) DEFAULT NULL COMMENT '营业时间',
  `zhudameishi` longtext COMMENT '主打美食',
  `lianxidianhua` varchar(200) DEFAULT NULL COMMENT '联系电话',
  `lianxiren` varchar(200) DEFAULT NULL COMMENT '联系人',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8 COMMENT='社区美食';

/*Data for the table `shequmeishi` */

insert  into `shequmeishi`(`id`,`addtime`,`dianpumingcheng`,`jingyingleixing`,`meishitupian`,`dianpudizhi`,`yingyeshijian`,`zhudameishi`,`lianxidianhua`,`lianxiren`) values (61,'2021-02-22 14:04:43','店铺名称1','经营类型1','http://localhost:8080/jspm9w23w/upload/shequmeishi_meishitupian1.jpg','店铺地址1','营业时间1','主打美食1','13823888881','联系人1');
insert  into `shequmeishi`(`id`,`addtime`,`dianpumingcheng`,`jingyingleixing`,`meishitupian`,`dianpudizhi`,`yingyeshijian`,`zhudameishi`,`lianxidianhua`,`lianxiren`) values (62,'2021-02-22 14:04:43','店铺名称2','经营类型2','http://localhost:8080/jspm9w23w/upload/shequmeishi_meishitupian2.jpg','店铺地址2','营业时间2','主打美食2','13823888882','联系人2');
insert  into `shequmeishi`(`id`,`addtime`,`dianpumingcheng`,`jingyingleixing`,`meishitupian`,`dianpudizhi`,`yingyeshijian`,`zhudameishi`,`lianxidianhua`,`lianxiren`) values (63,'2021-02-22 14:04:43','店铺名称3','经营类型3','http://localhost:8080/jspm9w23w/upload/shequmeishi_meishitupian3.jpg','店铺地址3','营业时间3','主打美食3','13823888883','联系人3');
insert  into `shequmeishi`(`id`,`addtime`,`dianpumingcheng`,`jingyingleixing`,`meishitupian`,`dianpudizhi`,`yingyeshijian`,`zhudameishi`,`lianxidianhua`,`lianxiren`) values (64,'2021-02-22 14:04:43','店铺名称4','经营类型4','http://localhost:8080/jspm9w23w/upload/shequmeishi_meishitupian4.jpg','店铺地址4','营业时间4','主打美食4','13823888884','联系人4');
insert  into `shequmeishi`(`id`,`addtime`,`dianpumingcheng`,`jingyingleixing`,`meishitupian`,`dianpudizhi`,`yingyeshijian`,`zhudameishi`,`lianxidianhua`,`lianxiren`) values (65,'2021-02-22 14:04:43','店铺名称5','经营类型5','http://localhost:8080/jspm9w23w/upload/shequmeishi_meishitupian5.jpg','店铺地址5','营业时间5','主打美食5','13823888885','联系人5');
insert  into `shequmeishi`(`id`,`addtime`,`dianpumingcheng`,`jingyingleixing`,`meishitupian`,`dianpudizhi`,`yingyeshijian`,`zhudameishi`,`lianxidianhua`,`lianxiren`) values (66,'2021-02-22 14:04:43','店铺名称6','经营类型6','http://localhost:8080/jspm9w23w/upload/shequmeishi_meishitupian6.jpg','店铺地址6','营业时间6','主打美食6','13823888886','联系人6');

/*Table structure for table `shequxinwen` */

DROP TABLE IF EXISTS `shequxinwen`;

CREATE TABLE `shequxinwen` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `xinwenbiaoti` varchar(200) DEFAULT NULL COMMENT '新闻标题',
  `wenzhanglaiyuan` varchar(200) DEFAULT NULL COMMENT '文章来源',
  `fabushijian` date DEFAULT NULL COMMENT '发布时间',
  `xinwenneirong` longtext COMMENT '新闻内容',
  `xinwentupian` varchar(200) DEFAULT NULL COMMENT '新闻图片',
  `faburen` varchar(200) DEFAULT NULL COMMENT '发布人',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1613974098108 DEFAULT CHARSET=utf8 COMMENT='社区新闻';

/*Data for the table `shequxinwen` */

insert  into `shequxinwen`(`id`,`addtime`,`xinwenbiaoti`,`wenzhanglaiyuan`,`fabushijian`,`xinwenneirong`,`xinwentupian`,`faburen`) values (21,'2021-02-22 14:04:43','新闻标题1','文章来源1','2021-02-22','新闻内容1','http://localhost:8080/jspm9w23w/upload/shequxinwen_xinwentupian1.jpg','发布人1');
insert  into `shequxinwen`(`id`,`addtime`,`xinwenbiaoti`,`wenzhanglaiyuan`,`fabushijian`,`xinwenneirong`,`xinwentupian`,`faburen`) values (22,'2021-02-22 14:04:43','新闻标题2','文章来源2','2021-02-22','新闻内容2','http://localhost:8080/jspm9w23w/upload/shequxinwen_xinwentupian2.jpg','发布人2');
insert  into `shequxinwen`(`id`,`addtime`,`xinwenbiaoti`,`wenzhanglaiyuan`,`fabushijian`,`xinwenneirong`,`xinwentupian`,`faburen`) values (23,'2021-02-22 14:04:43','新闻标题3','文章来源3','2021-02-22','新闻内容3','http://localhost:8080/jspm9w23w/upload/shequxinwen_xinwentupian3.jpg','发布人3');
insert  into `shequxinwen`(`id`,`addtime`,`xinwenbiaoti`,`wenzhanglaiyuan`,`fabushijian`,`xinwenneirong`,`xinwentupian`,`faburen`) values (24,'2021-02-22 14:04:43','新闻标题4','文章来源4','2021-02-22','新闻内容4','http://localhost:8080/jspm9w23w/upload/shequxinwen_xinwentupian4.jpg','发布人4');
insert  into `shequxinwen`(`id`,`addtime`,`xinwenbiaoti`,`wenzhanglaiyuan`,`fabushijian`,`xinwenneirong`,`xinwentupian`,`faburen`) values (25,'2021-02-22 14:04:43','新闻标题5','文章来源5','2021-02-22','新闻内容5','http://localhost:8080/jspm9w23w/upload/shequxinwen_xinwentupian5.jpg','发布人5');
insert  into `shequxinwen`(`id`,`addtime`,`xinwenbiaoti`,`wenzhanglaiyuan`,`fabushijian`,`xinwenneirong`,`xinwentupian`,`faburen`) values (26,'2021-02-22 14:04:43','新闻标题6','文章来源6','2021-02-22','新闻内容6','http://localhost:8080/jspm9w23w/upload/shequxinwen_xinwentupian6.jpg','发布人6');
insert  into `shequxinwen`(`id`,`addtime`,`xinwenbiaoti`,`wenzhanglaiyuan`,`fabushijian`,`xinwenneirong`,`xinwentupian`,`faburen`) values (1613974098107,'2021-02-22 14:08:17','xxx新闻','互联网','2021-02-22','xxxx\r\n','http://localhost:8080/jspm9w23w/upload/1613974095955.jpg','xxx');

/*Table structure for table `storeup` */

DROP TABLE IF EXISTS `storeup`;

CREATE TABLE `storeup` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `userid` bigint(20) NOT NULL COMMENT '用户id',
  `refid` bigint(20) DEFAULT NULL COMMENT '收藏id',
  `tablename` varchar(200) DEFAULT NULL COMMENT '表名',
  `name` varchar(200) NOT NULL COMMENT '收藏名称',
  `picture` varchar(200) NOT NULL COMMENT '收藏图片',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1613974319963 DEFAULT CHARSET=utf8 COMMENT='收藏表';

/*Data for the table `storeup` */

insert  into `storeup`(`id`,`addtime`,`userid`,`refid`,`tablename`,`name`,`picture`) values (1613974293444,'2021-02-22 14:11:33',1613974255731,41,'shequhuodong','活动名称1','http://localhost:8080/jspm9w23w/upload/shequhuodong_huodongtupian1.jpg');
insert  into `storeup`(`id`,`addtime`,`userid`,`refid`,`tablename`,`name`,`picture`) values (1613974319962,'2021-02-22 14:11:59',1613974255731,71,'jiazhengfuwu','家政姓名1','http://localhost:8080/jspm9w23w/upload/jiazhengfuwu_zhaopian1.jpg');

/*Table structure for table `token` */

DROP TABLE IF EXISTS `token`;

CREATE TABLE `token` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `userid` bigint(20) NOT NULL COMMENT '用户id',
  `username` varchar(100) NOT NULL COMMENT '用户名',
  `tablename` varchar(100) DEFAULT NULL COMMENT '表名',
  `role` varchar(100) DEFAULT NULL COMMENT '角色',
  `token` varchar(200) NOT NULL COMMENT '密码',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `expiratedtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='token表';

/*Data for the table `token` */

insert  into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (1,1,'abo','users','管理员','u5g6cpfcl44wzzsp2qznq03smws6sei5','2021-02-22 14:05:59','2021-02-22 15:12:38');
insert  into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (2,1613974255731,'1','yonghu','用户','zsl0591ihhfzeoek40o1ccp3p5o77j4y','2021-02-22 14:11:00','2021-02-22 15:11:00');

/*Table structure for table `users` */

DROP TABLE IF EXISTS `users`;

CREATE TABLE `users` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `username` varchar(100) NOT NULL COMMENT '用户名',
  `password` varchar(100) NOT NULL COMMENT '密码',
  `role` varchar(100) DEFAULT '管理员' COMMENT '角色',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='用户表';

/*Data for the table `users` */

insert  into `users`(`id`,`username`,`password`,`role`,`addtime`) values (1,'abo','abo','管理员','2021-02-22 14:04:43');

/*Table structure for table `yiliaofuwu` */

DROP TABLE IF EXISTS `yiliaofuwu`;

CREATE TABLE `yiliaofuwu` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `yiyuanmingcheng` varchar(200) DEFAULT NULL COMMENT '医院名称',
  `yiyuandizhi` varchar(200) DEFAULT NULL COMMENT '医院地址',
  `yiyuantupian` varchar(200) DEFAULT NULL COMMENT '医院图片',
  `fuwujieshao` longtext COMMENT '服务介绍',
  `lianxiren` varchar(200) DEFAULT NULL COMMENT '联系人',
  `lianxidianhua` varchar(200) DEFAULT NULL COMMENT '联系电话',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8 COMMENT='医疗服务';

/*Data for the table `yiliaofuwu` */

insert  into `yiliaofuwu`(`id`,`addtime`,`yiyuanmingcheng`,`yiyuandizhi`,`yiyuantupian`,`fuwujieshao`,`lianxiren`,`lianxidianhua`) values (51,'2021-02-22 14:04:43','医院名称1','医院地址1','http://localhost:8080/jspm9w23w/upload/yiliaofuwu_yiyuantupian1.jpg','服务介绍1','联系人1','13823888881');
insert  into `yiliaofuwu`(`id`,`addtime`,`yiyuanmingcheng`,`yiyuandizhi`,`yiyuantupian`,`fuwujieshao`,`lianxiren`,`lianxidianhua`) values (52,'2021-02-22 14:04:43','医院名称2','医院地址2','http://localhost:8080/jspm9w23w/upload/yiliaofuwu_yiyuantupian2.jpg','服务介绍2','联系人2','13823888882');
insert  into `yiliaofuwu`(`id`,`addtime`,`yiyuanmingcheng`,`yiyuandizhi`,`yiyuantupian`,`fuwujieshao`,`lianxiren`,`lianxidianhua`) values (53,'2021-02-22 14:04:43','医院名称3','医院地址3','http://localhost:8080/jspm9w23w/upload/yiliaofuwu_yiyuantupian3.jpg','服务介绍3','联系人3','13823888883');
insert  into `yiliaofuwu`(`id`,`addtime`,`yiyuanmingcheng`,`yiyuandizhi`,`yiyuantupian`,`fuwujieshao`,`lianxiren`,`lianxidianhua`) values (54,'2021-02-22 14:04:43','医院名称4','医院地址4','http://localhost:8080/jspm9w23w/upload/yiliaofuwu_yiyuantupian4.jpg','服务介绍4','联系人4','13823888884');
insert  into `yiliaofuwu`(`id`,`addtime`,`yiyuanmingcheng`,`yiyuandizhi`,`yiyuantupian`,`fuwujieshao`,`lianxiren`,`lianxidianhua`) values (55,'2021-02-22 14:04:43','医院名称5','医院地址5','http://localhost:8080/jspm9w23w/upload/yiliaofuwu_yiyuantupian5.jpg','服务介绍5','联系人5','13823888885');
insert  into `yiliaofuwu`(`id`,`addtime`,`yiyuanmingcheng`,`yiyuandizhi`,`yiyuantupian`,`fuwujieshao`,`lianxiren`,`lianxidianhua`) values (56,'2021-02-22 14:04:43','医院名称6','医院地址6','http://localhost:8080/jspm9w23w/upload/yiliaofuwu_yiyuantupian6.jpg','服务介绍6','联系人6','13823888886');

/*Table structure for table `yonghu` */

DROP TABLE IF EXISTS `yonghu`;

CREATE TABLE `yonghu` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `yonghuming` varchar(200) NOT NULL COMMENT '用户名',
  `mima` varchar(200) NOT NULL COMMENT '密码',
  `yonghuxingming` varchar(200) DEFAULT NULL COMMENT '用户姓名',
  `xingbie` varchar(200) DEFAULT NULL COMMENT '性别',
  `touxiang` varchar(200) DEFAULT NULL COMMENT '头像',
  `yonghushouji` varchar(200) DEFAULT NULL COMMENT '用户手机',
  PRIMARY KEY (`id`),
  UNIQUE KEY `yonghuming` (`yonghuming`)
) ENGINE=InnoDB AUTO_INCREMENT=1613974255732 DEFAULT CHARSET=utf8 COMMENT='用户';

/*Data for the table `yonghu` */

insert  into `yonghu`(`id`,`addtime`,`yonghuming`,`mima`,`yonghuxingming`,`xingbie`,`touxiang`,`yonghushouji`) values (11,'2021-02-22 14:04:43','用户1','123456','用户姓名1','男','http://localhost:8080/jspm9w23w/upload/yonghu_touxiang1.jpg','13823888881');
insert  into `yonghu`(`id`,`addtime`,`yonghuming`,`mima`,`yonghuxingming`,`xingbie`,`touxiang`,`yonghushouji`) values (12,'2021-02-22 14:04:43','用户2','123456','用户姓名2','男','http://localhost:8080/jspm9w23w/upload/yonghu_touxiang2.jpg','13823888882');
insert  into `yonghu`(`id`,`addtime`,`yonghuming`,`mima`,`yonghuxingming`,`xingbie`,`touxiang`,`yonghushouji`) values (13,'2021-02-22 14:04:43','用户3','123456','用户姓名3','男','http://localhost:8080/jspm9w23w/upload/yonghu_touxiang3.jpg','13823888883');
insert  into `yonghu`(`id`,`addtime`,`yonghuming`,`mima`,`yonghuxingming`,`xingbie`,`touxiang`,`yonghushouji`) values (14,'2021-02-22 14:04:43','用户4','123456','用户姓名4','男','http://localhost:8080/jspm9w23w/upload/yonghu_touxiang4.jpg','13823888884');
insert  into `yonghu`(`id`,`addtime`,`yonghuming`,`mima`,`yonghuxingming`,`xingbie`,`touxiang`,`yonghushouji`) values (15,'2021-02-22 14:04:43','用户5','123456','用户姓名5','男','http://localhost:8080/jspm9w23w/upload/yonghu_touxiang5.jpg','13823888885');
insert  into `yonghu`(`id`,`addtime`,`yonghuming`,`mima`,`yonghuxingming`,`xingbie`,`touxiang`,`yonghushouji`) values (16,'2021-02-22 14:04:43','用户6','123456','用户姓名6','男','http://localhost:8080/jspm9w23w/upload/yonghu_touxiang6.jpg','13823888886');
insert  into `yonghu`(`id`,`addtime`,`yonghuming`,`mima`,`yonghuxingming`,`xingbie`,`touxiang`,`yonghushouji`) values (1613974255731,'2021-02-22 14:10:55','1','1','xxx用户','男','http://localhost:8080/jspm9w23w/upload/1613974271856.jpg','13811111111');

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

五、论文截图

基于SSM的社区文化宣传网站_第17张图片

你可能感兴趣的:(spring,boot,java,tomcat,后端,eclipse)