基于java+ssm+jsp的网上拍卖系统

项目介绍

现代经济快节奏发展以及不断完善升级的信息化技术,让传统数据信息的管理升级为软件存储,归纳,集中处理数据信息的管理方式。本网上拍卖系统就是在这样的大环境下诞生,其可以帮助使用者在短时间内处理完毕庞大的数据信息,使用这种软件工具可以帮助管理人员提高事务处理效率,达到事半功倍的效果。此网上拍卖系统利用当下成熟完善的SSM框架,使用跨平台的可开发大型商业网站的Java语言,页面采用JSP技术,以及最受欢迎的RDBMS应用软件之一的MySQL数据库进行程序开发。网上拍卖系统有管理员,用户,卖家三个角色。管理员功能有个人中心,用户管理,卖家管理,商品类型管理,拍卖商品管理,用户竞拍管理,成交通知管理,用户评价管理,留言交流,系统管理。卖家可以注册登录,发布拍卖商品,查看用户竞拍,对成交用户进行通知,查看用户评价等操作。用户可以注册登录,查看拍卖商品,对商品进行竞拍,查看成交通知和进行评价操作等。网上拍卖系统的开发根据操作人员需要设计的界面简洁美观,在功能模块布局上跟同类型网站保持一致,程序在实现基本要求功能时,也为数据信息面临的安全问题提供了一些实用的解决方案。可以说该程序在帮助使用者高效率地处理工作事务的同时,也实现了数据信息的整体化,规范化与自动化。

4.2 系统功能结构设计
在分析并得出使用者对程序的功能要求时,就可以进行程序设计了。如图4.2展示的就是管理员功能结构图。
在这里插入图片描述

开发环境

编程语言:Java
数据库 :Mysql
系统架构:B/S
后端框架:SSM
编译工具:idea或者eclipse,jdk1.8,maven
支持定做:java/php/python/android/小程序/vue/爬虫/c#/asp.net

系统实现

5.1 管理员模块功能
5.1.1 用户管理
如图5.1显示的就是用户管理页面,此页面提供给管理员的功能有:对用户信息进行查询,添加,删除以及批量删除操作。
在这里插入图片描述

图5.1 用户管理页面

5.1.2 卖家管理
如图5.2显示的就是卖家管理页面,管理员可以对卖家信息进行添加,修改,删除,查询操作。
在这里插入图片描述

图5.2 卖家管理页面

5.1.3 商品类型管理
如图5.3显示的就是商品类型管理页面,管理员可以对商品类型信息修改,删除,批量删除以及查询操作。
在这里插入图片描述

图5.3商品类型管理页面

5.2 卖家模块功能
5.2.1 拍卖商品管理
如图5.4显示的就是拍卖商品管理页面,卖家可以对拍卖商品信息进行添加,修改,删除操作。
在这里插入图片描述

图5.4 拍卖商品管理页面

5.2.2 用户竞拍管理
如图5.4显示的就是用户竞拍管理页面,卖家可以查看和查询对自己拍卖的商品的用户竞拍信息,可以对成交用户进行通知。
在这里插入图片描述

图5.5 用户竞拍管理页面

5.3 用户管理
5.3.1 拍卖商品
如图5.4显示的就是拍卖商品页面,用户可注册可登录,登录后查看拍卖商品就可以看到竞拍按钮。
在这里插入图片描述

图5.6 拍卖商品页面

5.3.2 公告信息
如图5.4显示的就是公告信息页面,用户可以在公告信息页面查看公告信息。
在这里插入图片描述

图5.7 公告信息页面

5.3.3 用户竞拍
如图5.4显示的就是用户竞拍页面,用户可以在用户竞拍查看自己的所有竞拍信息。
在这里插入图片描述

图5.8 用户竞拍页面

核心代码

package com.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
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 com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;

import com.entity.ChengjiaotongzhiEntity;
import com.entity.view.ChengjiaotongzhiView;

import com.service.ChengjiaotongzhiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;

/**
 * 成交通知
 * 后端接口
 * @author 
 * @email 
 * @date 
 */
@RestController
@RequestMapping("/chengjiaotongzhi")
public class ChengjiaotongzhiController {
    @Autowired
    private ChengjiaotongzhiService chengjiaotongzhiService;



    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,ChengjiaotongzhiEntity chengjiaotongzhi, 
		HttpServletRequest request){

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("yonghu")) {
			chengjiaotongzhi.setYonghuming((String)request.getSession().getAttribute("username"));
		}
		if(tableName.equals("maijia")) {
			chengjiaotongzhi.setMaijiazhanghao((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<ChengjiaotongzhiEntity> ew = new EntityWrapper<ChengjiaotongzhiEntity>();
    	PageUtils page = chengjiaotongzhiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chengjiaotongzhi), params), params));
		request.setAttribute("data", page);
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,ChengjiaotongzhiEntity chengjiaotongzhi, 
		HttpServletRequest request){
        EntityWrapper<ChengjiaotongzhiEntity> ew = new EntityWrapper<ChengjiaotongzhiEntity>();
    	PageUtils page = chengjiaotongzhiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chengjiaotongzhi), params), params));
		request.setAttribute("data", page);
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( ChengjiaotongzhiEntity chengjiaotongzhi){
       	EntityWrapper<ChengjiaotongzhiEntity> ew = new EntityWrapper<ChengjiaotongzhiEntity>();
      	ew.allEq(MPUtil.allEQMapPre( chengjiaotongzhi, "chengjiaotongzhi")); 
        return R.ok().put("data", chengjiaotongzhiService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(ChengjiaotongzhiEntity chengjiaotongzhi){
        EntityWrapper< ChengjiaotongzhiEntity> ew = new EntityWrapper< ChengjiaotongzhiEntity>();
 		ew.allEq(MPUtil.allEQMapPre( chengjiaotongzhi, "chengjiaotongzhi")); 
		ChengjiaotongzhiView chengjiaotongzhiView =  chengjiaotongzhiService.selectView(ew);
		return R.ok("查询成交通知成功").put("data", chengjiaotongzhiView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        ChengjiaotongzhiEntity chengjiaotongzhi = chengjiaotongzhiService.selectById(id);
        return R.ok().put("data", chengjiaotongzhi);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        ChengjiaotongzhiEntity chengjiaotongzhi = chengjiaotongzhiService.selectById(id);
        return R.ok().put("data", chengjiaotongzhi);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody ChengjiaotongzhiEntity chengjiaotongzhi, HttpServletRequest request){
    	chengjiaotongzhi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(chengjiaotongzhi);

        chengjiaotongzhiService.insert(chengjiaotongzhi);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody ChengjiaotongzhiEntity chengjiaotongzhi, HttpServletRequest request){
    	chengjiaotongzhi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(chengjiaotongzhi);

        chengjiaotongzhiService.insert(chengjiaotongzhi);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody ChengjiaotongzhiEntity chengjiaotongzhi, HttpServletRequest request){
        //ValidatorUtils.validateEntity(chengjiaotongzhi);
        chengjiaotongzhiService.updateById(chengjiaotongzhi);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        chengjiaotongzhiService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
    /**
     * 提醒接口
     */
	@RequestMapping("/remind/{columnName}/{type}")
	public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 
						 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
		map.put("column", columnName);
		map.put("type", type);
		
		if(type.equals("2")) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			Calendar c = Calendar.getInstance();
			Date remindStartDate = null;
			Date remindEndDate = null;
			if(map.get("remindstart")!=null) {
				Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
				c.setTime(new Date()); 
				c.add(Calendar.DAY_OF_MONTH,remindStart);
				remindStartDate = c.getTime();
				map.put("remindstart", sdf.format(remindStartDate));
			}
			if(map.get("remindend")!=null) {
				Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
				c.setTime(new Date());
				c.add(Calendar.DAY_OF_MONTH,remindEnd);
				remindEndDate = c.getTime();
				map.put("remindend", sdf.format(remindEndDate));
			}
		}
		
		Wrapper<ChengjiaotongzhiEntity> wrapper = new EntityWrapper<ChengjiaotongzhiEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("yonghu")) {
			wrapper.eq("yonghuming", (String)request.getSession().getAttribute("username"));
		}
		if(tableName.equals("maijia")) {
			wrapper.eq("maijiazhanghao", (String)request.getSession().getAttribute("username"));
		}

		int count = chengjiaotongzhiService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	
	





}

论文参考

在这里插入图片描述

目 录
目 录 III
1 绪论 1
1.1 研究背景 1
1.2 目的和意义 1
1.3 论文结构安排 2
2 相关技术 3
2.1 B/S结构介绍 3
2.2 MySQL数据库介绍 3
2.3 SSM框架介绍 4
2.4 JSP介绍 5
3 系统分析 7
3.1 系统可行性分析 7
3.1.1 技术可行性分析 7
3.1.2 经济可行性分析 7
3.1.3 运行可行性分析 7
3.2 系统性能分析 8
3.2.1 易用性指标 8
3.2.2 可扩展性指标 8
3.2.3 健壮性指标 8
3.2.4 安全性指标 9
3.3 系统流程分析 9
3.3.1 操作流程分析 9
3.3.2 登录流程分析 10
3.3.3 信息添加流程分析 11
3.3.4 信息删除流程分析 12
4 系统设计 13
4.1 系统概要设计 13
4.2 系统功能结构设计 13
4.3 数据库设计 14
4.3.1 数据库E-R图设计 14
4.3.2 数据库表结构设计 16
5 系统实现 21
5.1 管理员模块功能 21
5.1.1 用户管理 21
5.1.2 卖家管理 21
5.1.3 商品类型管理 22
5.2 卖家模块功能 23
5.2.1 拍卖商品管理 23
5.2.2 用户竞拍管理 23
5.3 用户管理 24
5.3.1 拍卖商品 24
5.3.2 公告信息 25
5.3.3 用户竞拍 25
6 系统测试 27
6.1 系统测试的特点  27
6.2 测试结果分析 27
结 论 29
致 谢 30
参考文献 31

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qq_3306428634

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值