期未课程设计:使用SSM开发产品销售管理系统

 项目编号:KS005

本项目基于SSM框架(spring+springmvc+mybatis)进行开发实现,前端使用bootstrap+jsp来进行页面的开发实现,数据库采用MYSQL,开发工具为eclipse/idea.

项目主要实现了销售人员产品销售息的跟踪和统计功能,主要有两个角色:

销售经理角色:可以实现产品的添加,客户的添加,销售人员产品销售信息的统计,销售员跟单指导等操作。

销售员角色:主要实现产品销售情况的添加和维护跟踪,以及查看销售经理的指导意见

访问地址:http://localhost:8080/index.jsp  

管理员登陆:admin  /  admin

销售人员登陆: leon  /  admin  也可以自行注册用户登陆

主要功能展示如下:

  • 管理员登陆系统:
  1. 后台登陆页面

  1. 销售信息统计分析

  1. 销售经理跟单信息查询

  1. 对跟单的审批意见

  1. 其它功能的实现:添加客户,添加商品,查询订单

  • 销售人员注册登陆
  1. 注册

  1. 销售人员登陆

  1. 销售员跟单

  1. 经理指导意见

项目结构清晰,修改方便,运行无误,功能精简,适合做课程设计和期未作业使用。

部分实现代码:

package leon.sms.controller;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import leon.sms.mapper.InstructionMapper;
import leon.sms.pojo.Instruction;
import leon.sms.pojo.Project;
import leon.sms.pojo.User;
import leon.sms.service.ProjectService;

/** 
* @author znz
* @date 创建时间:2021年4月6日 下午3:21:04
* @version 1.0
* 类说明 :
* 
*/
@Controller
@RequestMapping("")
public class HomeController
{
	@Autowired
	ProjectService projectService;
	@Autowired
	InstructionMapper instructionMapper;
	
	@RequestMapping("homeTitle")
	public ModelAndView homeTitle()
	{
		ModelAndView mav = new ModelAndView();
		mav.setViewName("top");
		return mav;
	}
	
	@RequestMapping("homeLeft")
	public ModelAndView homeLeft(HttpSession httpSession)
	{
		ModelAndView mav = new ModelAndView();
		
		User user = (User) httpSession.getAttribute("user");
		if(user.isAdmin())//销售经理
		{
			System.out.println("此人是销售经理");
			mav.setViewName("home/adminLeft");
		}
		else//普通员工
		{
			System.out.println("此人是销售员工");
			mav.setViewName("home/staffLeft");
		}
		return mav;
	}
	
	@RequestMapping("homeMain")
	public ModelAndView homeMain()
	{
		ModelAndView mav = new ModelAndView();
		mav.setViewName("home/mainFrame/culture");
		return mav;
	}
	
	@RequestMapping("staffDocumentary")
	public ModelAndView staffDocumentary(HttpSession httpSession)
	{
		ModelAndView mav = new ModelAndView();
		mav.setViewName("home/mainFrame/staffDocumentary");
		
		User user = (User) httpSession.getAttribute("user");
		List<Project> list = projectService.searchByName(user.getName());
		mav.addObject("list", list);
		return mav;
	}
	
	@RequestMapping("instructions")
	public ModelAndView instructions(HttpSession httpSession)
	{
		ModelAndView mav = new ModelAndView();
		mav.setViewName("home/mainFrame/instructions");
		List<Instruction> list = instructionMapper.list(((User)httpSession.getAttribute("user")).getName());
		mav.addObject("list", list);
		
		return mav;
	}
	
	@RequestMapping("adminDocumentary")
	public ModelAndView adminDocumentary()
	{
		ModelAndView mav = new ModelAndView();
		mav.setViewName("home/mainFrame/adminDocumentary");
		mav.addObject("list", projectService.getAll());
		return mav;
	}
	
	@RequestMapping("others")
	public ModelAndView clientQuery()
	{
		ModelAndView mav = new ModelAndView();
		mav.setViewName("home/mainFrame/others");
		return mav;
	}
	
	@RequestMapping("addInstruction")
	public ModelAndView addInstruction(@RequestParam("adminName") String managerName,
			@RequestParam("staffName") String staffName, @RequestParam("content") String content)
	{
		ModelAndView mav = new ModelAndView();
		mav.setViewName("home/mainFrame/adminDocumentary");
		Instruction in = new Instruction( staffName, managerName, content);
		instructionMapper.add(in);
		return mav;
	}
}
package leon.sms.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import leon.sms.service.GoodsService;

/** 
* @author znz
* @date 创建时间:2021年5月4日 上午10:24:27
* @version 1.0
* 类说明 :
* 
*/
@Controller
@RequestMapping("")
public class GoodsController
{
	@Autowired
	GoodsService goodsService;
	
	@RequestMapping("addGoods")
	public ModelAndView addGoods(@RequestParam("goodsName") String goodsName,
			@RequestParam("goodsNumber") String goodsNumber, @RequestParam("unitPrice") String unitPrice)
	{
		ModelAndView mav = new ModelAndView();
		mav.setViewName("home/mainFrame/others");
		
		goodsService.addGoods(goodsName,goodsNumber,unitPrice);
		return mav;
	}
}
package leon.sms.controller;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import leon.sms.mapper.ActionForDayMapper;
import leon.sms.mapper.GoodsMapper;
import leon.sms.mapper.UserMapper;
import leon.sms.pojo.ActionForDay;
import leon.sms.pojo.Goods;
import leon.sms.pojo.User;

/** 
* @author znz
* @date 创建时间:2021年5月4日 上午11:34:54
* @version 1.0
* 类说明 :
* 
*/
@Controller
@RequestMapping("")
public class AnalysisController
{
	@Autowired
	GoodsMapper goodsMapper;
	@Autowired
	UserMapper userMapper;
	@Autowired
	ActionForDayMapper actionForDayMapper;
	
	@RequestMapping("analysis")
	public ModelAndView analysis()
	{
		ModelAndView mav = new ModelAndView();
		mav.setViewName("home/mainFrame/analysis");

		List<Goods> goodsList = goodsMapper.list();
		List<User> userList = userMapper.list();
		List<ActionForDay> list = actionForDayMapper.list();
		List<ActionForDay> actionForDayList = new ArrayList<ActionForDay>();
		for(int i = list.size()-7;i<=list.size()-1;i++)
		{
			actionForDayList.add(list.get(i));
		}
		
		mav.addObject("goodsList", goodsList);
		mav.addObject("userList", userList);
		mav.addObject("actionForDayList", actionForDayList);
		return mav;
	}
	
}

package leon.sms.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import leon.sms.service.GoodsService;

/** 
* @author znz
* @date 创建时间:2021年5月4日 上午10:24:27
* @version 1.0
* 类说明 :
* 
*/
@Controller
@RequestMapping("")
public class GoodsController
{
	@Autowired
	GoodsService goodsService;
	
	@RequestMapping("addGoods")
	public ModelAndView addGoods(@RequestParam("goodsName") String goodsName,
			@RequestParam("goodsNumber") String goodsNumber, @RequestParam("unitPrice") String unitPrice)
	{
		ModelAndView mav = new ModelAndView();
		mav.setViewName("home/mainFrame/others");
		
		goodsService.addGoods(goodsName,goodsNumber,unitPrice);
		return mav;
	}
}

package leon.sms.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import leon.sms.mapper.ClientMapper;
import leon.sms.mapper.ProjectMapper;
import leon.sms.pojo.Client;
import leon.sms.pojo.Project;

/** 
* @author znz
* @date 创建时间:2021年5月4日 上午10:56:58
* @version 1.0
* 类说明 :
* 
*/
@Controller
@RequestMapping("")
public class ClientController
{
	@Autowired
	ProjectMapper projectMapper;
	@Autowired
	ClientMapper clientMapper;
	
	@RequestMapping("findProjectByClient")
	public ModelAndView findProjectByClient(@RequestParam("clientName") String clientName)
	{
		ModelAndView mav = new ModelAndView();
		mav.setViewName("home/mainFrame/others");
		
		List<Project> list = projectMapper.findProjects(clientName);
		mav.addObject("list", list);
		return mav;
	}
	
	@RequestMapping("addClient")
	public ModelAndView addClient(@RequestParam("ClientName1") String clientName,@RequestParam("ClientPhone") String ClientPhone)
	{
		ModelAndView mav = new ModelAndView();
		mav.setViewName("home/mainFrame/others");
		
		Client client = new Client(clientName,ClientPhone);
		clientMapper.add(client);
		return mav;
	}
}
  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
一、项目简介 本项目是一套基于SSM的网络销售系统,主要针对计算机相关专业的正在做毕设的学生和需要项目实战练习的Java学习者。 包含:项目源码、数据库脚本、软件工具、项目说明等,该项目可以直接作为毕设使用。 项目都经过严格调试,确保可以运行! 二、技术实现 ​后台框架:SpringSpringMVC、MyBatis ​数据库:MySQL 开发环境:JDK、Eclipse、Tomcat 三、系统功能 网络销售系统的用户包括:系统管理员和注册用户。 在系统的结构上分为前后台:前台主要是由用户注册、商品浏览、在线购物和查看物流等功能组成;后台则是由系统管理登录,管理员主要负责产品发布、用户管理、订单管理等功能。 各个用户的详细功能分析介绍如下: 管理员(后台): 1、修改个人信息和密码 2、用户信息管理管理用户信息,拥有增加、删除、修改和查询权限。 3、商品分类管理管理商品分类信息,拥有增加、删除、修改和查询权限 4、商品信息管理管理商品信息,拥有增加、删除、修改和查询权限 5、商品订单管理管理商品订单信息,拥有增加、删除、修改和查询权限 注册用户(前台) 1、注册、登录、退出、修改个人信息和密码 2、搜索浏览商品信息,并且可以购买 3、购物车管理、 4、查看自己的订单,以及订单的物流信息,确认 该系统功能完善、界面美观、操作简单、功能齐全、管理便捷,具有很高的实际应用价值。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

qq_469603589

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

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

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

打赏作者

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

抵扣说明:

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

余额充值