*文末获取源码
开发环境项目编号:Java+spring ssm286网上鲜花交易#毕业设计
开发语言:Java
开发工具:IDEA /Eclipse
数据库:MYSQL5.7
应用服务:Tomcat7/Tomcat8
使用框架:ssm+vue
现如今是一个快节奏的生活,无论各个行业都是快速的发展,再也不是以前自给自足的社会,快节奏的生活带来了无数的变化。人们生活生活方式的变化,例如购物的方式,出行的方式等,
尤其突出的是在购物方式上的变化,人们现在喜欢高效便捷,再也不是以前那个啰里啰嗦的导购式消费,在种种消费模式的变化下,如何购买到放心的阿迪达斯是很多人关心的问题。所以一个综合功能强的鲜花销售系统是大众的所需,设计这个网站是以让人们拥有一个更好的购物体验为根基点,以快速流程简单为辅助,创造一种更好的购物方式。。
本选题则旨在通过标签分类管理等方式,管理员;首页、个人中心、鲜花分类管理、热销商品管理、销售统计管理、用户管理、订单评价管理、管理员管理、系统管理、订单管理,前台首页;首页、热销商品、系统公告、个人中心、后台管理、购物车、客服中心,用户;首页、个人中心、订单评价管理、我的收藏管理等信息管理功能,从而达到对鲜花销售管理系统的高效管理。
系统截图
@RestController
@RequestMapping("/orders")
public class OrdersController {
@Autowired
private OrdersService ordersService;
@RequestMapping("/page")
public R page(@RequestParam Map params,OrdersEntity orders,
HttpServletRequest request){
if(!request.getSession().getAttribute("role").toString().equals("管理员")) {
orders.setUserid((Long)request.getSession().getAttribute("userId"));
}
EntityWrapper ew = new EntityWrapper();
PageUtils page = ordersService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, orders), params), params));
return R.ok().put("data", page);
}
@RequestMapping("/list")
public R list(@RequestParam Map params,OrdersEntity orders, HttpServletRequest request){
EntityWrapper ew = new EntityWrapper();
PageUtils page = ordersService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, orders), params), params));
return R.ok().put("data", page);
}
@RequestMapping("/lists")
public R list( OrdersEntity orders){
EntityWrapper ew = new EntityWrapper();
ew.allEq(MPUtil.allEQMapPre( orders, "orders"));
return R.ok().put("data", ordersService.selectListView(ew));
}
@RequestMapping("/query")
public R query(OrdersEntity orders){
EntityWrapper< OrdersEntity> ew = new EntityWrapper< OrdersEntity>();
ew.allEq(MPUtil.allEQMapPre( orders, "orders"));
OrdersView ordersView = ordersService.selectView(ew);
return R.ok("查询订单成功").put("data", ordersView);
}
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
OrdersEntity orders = ordersService.selectById(id);
return R.ok().put("data", orders);
}
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
OrdersEntity orders = ordersService.selectById(id);
return R.ok().put("data", orders);
}
@RequestMapping("/save")
public R save(@RequestBody OrdersEntity orders, HttpServletRequest request){
orders.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(orders);
orders.setUserid((Long)request.getSession().getAttribute("userId"));
ordersService.insert(orders);
return R.ok();
}
@RequestMapping("/add")
public R add(@RequestBody OrdersEntity orders, HttpServletRequest request){
orders.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(orders);
ordersService.insert(orders);
return R.ok();
}
@RequestMapping("/update")
public R update(@RequestBody OrdersEntity orders, HttpServletRequest request){
//ValidatorUtils.validateEntity(orders);
ordersService.updateById(orders);//全部更新
return R.ok();
}
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
ordersService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}



