最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

使用SSM開發(fā)產(chǎn)品銷售管理系統(tǒng)

2022-03-03 12:20 作者:指南針畢業(yè)設(shè)計  | 我要投稿

?


?項目編號:KS005

本項目基于SSM框架(spring+springmvc+mybatis)進(jìn)行開發(fā)實現(xiàn),前端使用bootstrap+jsp來進(jìn)行頁面的開發(fā)實現(xiàn),數(shù)據(jù)庫采用MYSQL,開發(fā)工具為eclipse/idea.

項目主要實現(xiàn)了銷售人員產(chǎn)品銷售息的跟蹤和統(tǒng)計功能,主要有兩個角色:

銷售經(jīng)理角色:可以實現(xiàn)產(chǎn)品的添加,客戶的添加,銷售人員產(chǎn)品銷售信息的統(tǒng)計,銷售員跟單指導(dǎo)等操作。

銷售員角色:主要實現(xiàn)產(chǎn)品銷售情況的添加和維護(hù)跟蹤,以及查看銷售經(jīng)理的指導(dǎo)意見


訪問地址:http://localhost:8080/index.jsp??


管理員登陸:admin? /? admin

銷售人員登陸: leon? /? admin? 也可以自行注冊用戶登陸


主要功能展示如下:


  • 管理員登陸系統(tǒng):


  1. 后臺登陸頁面


  1. 銷售信息統(tǒng)計分析



  1. 銷售經(jīng)理跟單信息查詢



  1. 對跟單的審批意見



  1. 其它功能的實現(xiàn):添加客戶,添加商品,查詢訂單




  • 銷售人員注冊登陸


  1. 注冊


  1. 銷售人員登陸



  1. 銷售員跟單




  1. 經(jīng)理指導(dǎo)意見




項目結(jié)構(gòu)清晰,修改方便,運行無誤,功能精簡,適合做課程設(shè)計和期未作業(yè)使用。


部分實現(xiàn)代碼:

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 創(chuàng)建時間: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())//銷售經(jīng)理 { System.out.println("此人是銷售經(jīng)理"); 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 創(chuàng)建時間: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 創(chuàng)建時間: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 創(chuàng)建時間: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 創(chuàng)建時間: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; } }


使用SSM開發(fā)產(chǎn)品銷售管理系統(tǒng)的評論 (共 條)

分享到微博請遵守國家法律
志丹县| 澄城县| 文化| 元谋县| 眉山市| 连城县| 临颍县| 洪洞县| 罗平县| 宿迁市| 定边县| 巨鹿县| 华宁县| 鄂尔多斯市| 苍南县| 绵阳市| 南安市| 高青县| 天等县| 乌海市| 文成县| 南通市| 辽源市| 电白县| 昌黎县| 绥棱县| 霍山县| 庄河市| 屏南县| 密云县| 宝山区| 灵丘县| 长子县| 琼结县| 泾川县| 合水县| 鸡泽县| 彭州市| 监利县| 邵阳市| 东明县|