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

这是一个关于使用Spring、SpringMVC和MyBatis(SSM)框架开发的产品销售管理系统的课程设计。系统包括不同角色的首页展示,如销售经理和普通员工,实现了商品管理和分析功能。提供添加商品、查看销售数据、用户行为分析等功能。
摘要由CSDN通过智能技术生成
  • 类说明 :

*/

@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 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 list = instructionMapper.list(((User)httpSession.getAttribute(“user”)).getName());

mav.addObject(“list”, list);

return mav;

}

@RequestMapping(“adminDocumentary”)

public ModelAndView adminDocumentary()

{

  • 17
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值