微信小程序商城+SSM+Dubbo+Redis开发实现

本文涉及的产品
Redis 开源版,标准版 2GB
推荐场景:
搭建游戏排行榜
云数据库 Tair(兼容Redis),内存型 2GB
简介: 运行环境jdk8+tomcat8+mysql5.7以上+eclipse+maven项目技术(必填)spring+spring mvc+mybatis+dubbo+zookeeper+redis项目说明:本项目实现了一个微信小程序商城系统,后台主要基于SSM框架开发,前端使用微信小程序开发实现,实现了一个商城系统的基本功能。后台功能实现主要包含:商品管理订单管理图片管理评论管理用户管理地址管理系统管理前端小程序主要实现了:

 作者主页:编程指南针

简介:Java领域优质创作者、CSDN博客专家  Java项目、简历模板、学习资料、面试题库、技术互助

文末获取源码

项目编号:BS-XCX-002

运行环境

jdk8+tomcat8+mysql5.7以上+eclipse+maven

项目技术(必填)

spring+spring mvc+mybatis+dubbo+zookeeper+redis

项目说明:

本项目实现了一个微信小程序商城系统,后台主要基于SSM框架开发,前端使用微信小程序开发实现,实现了一个商城系统的基本功能。

后台功能实现主要包含:

    1. 商品管理
    2. 订单管理
    3. 图片管理
    4. 评论管理
    5. 用户管理
    6. 地址管理
    7. 系统管理

    前端小程序主要实现了:

      1. 商品浏览
      2. 信息查询
      3. 添加购物车
      4. 在线下单购买
      5. 收货地址管理
      6. 订单信息查询

      下面展示一个前后台系统:

      后台管理系统:

      登陆系统

      image.gif编辑

      商品管理

      image.gif编辑

      订单管理

      image.gif编辑

      image.gif编辑

      图片管理

      image.gif编辑

      评论管理

      image.gif编辑

      用户管理

      image.gif编辑

      地址管理

      image.gif编辑

      系统管理

      image.gif编辑

      image.gif编辑

      image.gif编辑

      前端小程序展示:

      首页

      image.gif编辑

      详情展示

      image.gif编辑

      添加购物车

      image.gif编辑

      确认订单

      image.gif编辑

      分类查看

      image.gif编辑

      我的订单

      image.gif编辑

      系统部分核心代码:

      package com.yun.smart.controller;
      import java.util.Arrays;
      import java.util.List;
      import java.util.Map;
      import javax.annotation.Resource;
      import org.springframework.web.bind.annotation.RequestMapping;
      import org.springframework.web.bind.annotation.RequestMethod;
      import org.springframework.web.bind.annotation.RestController;
      import com.baomidou.mybatisplus.plugins.Page;
      import com.yun.smart.builder.JsonResultBuilder;
      import com.yun.smart.consts.SessionConsts;
      import com.yun.smart.enums.BussinessType;
      import com.yun.smart.log.BussinessLogger;
      import com.yun.smart.log.BussinessLoggerPool;
      import com.yun.smart.model.OrderComment;
      import com.yun.smart.param.OrderCommentAddParams;
      import com.yun.smart.param.OrderCommentDeleteParams;
      import com.yun.smart.param.OrderCommentResponseParams;
      import com.yun.smart.param.OrderCommentSearchParams;
      import com.yun.smart.param.OrderCommentUpdateParams;
      import com.yun.smart.result.JsonResult;
      import com.yun.smart.service.OrderCommentService;
      import com.yun.smart.utils.AssertUtil;
      import io.swagger.annotations.Api;
      import io.swagger.annotations.ApiImplicitParam;
      import io.swagger.annotations.ApiImplicitParams;
      import io.swagger.annotations.ApiOperation;
      /**
       * Controller - 评论
       * @author znz
       * @version 0.0.1
       *
       */
      @RestController
      @RequestMapping("/smart/orderComment")
      @Api(value = "评论接口")
      public class OrderCommentController extends BaseController {
        private BussinessLogger logger = BussinessLoggerPool.getLogger(this.getClass(), BussinessType.ORDERCOMMENT);
        @Resource
        private OrderCommentService orderCommentService;
        @RequestMapping(value="/pc/v1/searchPage",method=RequestMethod.POST)
        @ApiOperation(value = "分页查询订单评论", notes = "分页查询订单评论")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchPage(OrderCommentSearchParams params){
          logger.info("OrderCommentController-分页查询订单评论入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          Page<Map<String,Object>> result = orderCommentService.searchPage(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value="/pc/v1/searchList",method=RequestMethod.POST)
        @ApiOperation(value = "查询评论列表", notes = "查询评论列表")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchList(OrderCommentSearchParams params){
          logger.info("OrderCommentController-查询列表入参:{}",params);
          List<OrderComment> result = orderCommentService.searchList(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value={"/pc/v1/searchDetail","/app/v1/searchDetail"},method=RequestMethod.POST)
        @ApiOperation(value = "查询评论详情", notes = "查询评论详情")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchDetail(OrderCommentSearchParams params){
          logger.info("OrderCommentController-查询详情入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getOrderNo(), "订单编号为空");
          OrderComment result = orderCommentService.searchDetail(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value={"/pc/v1/add","/app/v1/add"},method=RequestMethod.POST)
        @ApiOperation(value = "新建评论", notes = "新建评论")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult add(OrderCommentAddParams params){
          logger.info("OrderCommentController-新建入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getOrderNo(), "订单编号为空");
          AssertUtil.notNull(params.getGoodsStar(), "评分等级为空");
          AssertUtil.notNull(params.getContent(), "内容为空");
          orderCommentService.add(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value="/pc/v1/update",method=RequestMethod.POST)
        @ApiOperation(value = "更新评论", notes = "更新评论")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult update(OrderCommentUpdateParams params){
          logger.info("OrderCommentController-更新入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getId(), "评论ID为空");
          orderCommentService.update(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value="/pc/v1/delete",method=RequestMethod.POST)
        @ApiOperation(value = "删除评论", notes = "删除评论")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult delete(OrderCommentDeleteParams params){
          logger.info("OrderCommentController-删除入参:{}",params);
          orderCommentService.delete(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value="/pc/v1/deleteByIds",method=RequestMethod.POST)
        @ApiOperation(value = "批量删除评论", notes = "批量删除评论")
        @ApiImplicitParams({
          @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult deleteByIds(OrderCommentDeleteParams params){
          logger.info("OrderCommentController-批量删除入参:{}",Arrays.toString(params.getIds()));
          orderCommentService.deleteByIds(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value="/pc/v1/searchInfo",method=RequestMethod.POST)
        @ApiOperation(value = "查询评论详情", notes = "查询评论详情")
        @ApiImplicitParams({
          @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchInfo(OrderCommentSearchParams params){
          logger.info("OrderCommentController-查询详情入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getId(), "评论ID为空");
          Map<String,Object> result = orderCommentService.searchInfo(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value="/pc/v1/batchResponse",method=RequestMethod.POST)
        @ApiOperation(value = "批量回复评论", notes = "批量回复评论")
        @ApiImplicitParams({
          @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult batchResponse(OrderCommentResponseParams params){
          logger.info("OrderCommentController-批量回复评论入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getIds(), "评论ID为空");
          AssertUtil.notNull(params.getResponseContent(), "回复内容为空");
          orderCommentService.batchResponse(params);
          return JsonResultBuilder.ok();
        }
      }

      image.gif

      package com.yun.smart.controller;
      import java.util.Arrays;
      import java.util.List;
      import java.util.Map;
      import javax.annotation.Resource;
      import org.springframework.web.bind.annotation.RequestBody;
      import org.springframework.web.bind.annotation.RequestMapping;
      import org.springframework.web.bind.annotation.RequestMethod;
      import org.springframework.web.bind.annotation.RestController;
      import com.baomidou.mybatisplus.plugins.Page;
      import com.yun.smart.builder.JsonResultBuilder;
      import com.yun.smart.consts.SessionConsts;
      import com.yun.smart.result.JsonResult;
      import com.yun.smart.controller.BaseController;
      import com.yun.smart.enums.BussinessType;
      import com.yun.smart.log.BussinessLogger;
      import com.yun.smart.log.BussinessLoggerPool;
      import com.yun.smart.model.OrderInfo;
      import com.yun.smart.param.OrderInfoAddParams;
      import com.yun.smart.param.OrderInfoDeleteParams;
      import com.yun.smart.param.OrderInfoSearchParams;
      import com.yun.smart.param.OrderInfoSubmitParams;
      import com.yun.smart.param.OrderInfoUpdateParams;
      import com.yun.smart.service.OrderInfoService;
      import com.yun.smart.utils.AssertUtil;
      import io.swagger.annotations.Api;
      import io.swagger.annotations.ApiImplicitParam;
      import io.swagger.annotations.ApiImplicitParams;
      import io.swagger.annotations.ApiOperation;
      /**
       * Controller - 订单
       * @author znz
       * @version 0.0.1
       *
       */
      @RestController
      @RequestMapping("/smart/orderInfo")
      @Api(value = "订单接口")
      public class OrderInfoController extends BaseController {
        private BussinessLogger logger = BussinessLoggerPool.getLogger(this.getClass(), BussinessType.ORDERINFO);
        @Resource
        private OrderInfoService orderInfoService;
        @RequestMapping(value="/pc/v1/searchPage",method=RequestMethod.POST)
        @ApiOperation(value = "分页查询订单", notes = "分页查询所有订单")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchPage(OrderInfoSearchParams params){
          logger.info("OrderInfoController-分页查询入参:{}",params);
          Page<Map<String,Object>> result = orderInfoService.searchPage(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value="/pc/v1/searchList",method=RequestMethod.POST)
        @ApiOperation(value = "查询订单列表", notes = "查询订单列表")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchList(OrderInfoSearchParams params){
          logger.info("OrderInfoController-查询列表入参:{}",params);
          List<OrderInfo> result = orderInfoService.searchList(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value="/pc/v1/searchDetail",method=RequestMethod.POST)
        @ApiOperation(value = "查询订单详情", notes = "查询订单详情")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchDetail(OrderInfoSearchParams params){
          logger.info("OrderInfoController-查询详情入参:{}",params);
          OrderInfo result = orderInfoService.searchDetail(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value={"/pc/v1/update","/app/v1/update"},method=RequestMethod.POST)
        @ApiOperation(value = "更新订单", notes = "更新订单")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult update(OrderInfoUpdateParams params){
          logger.info("OrderInfoController-更新入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getId(), "订单ID为空");
          AssertUtil.notNull(params.getOrderStatus(), "订单状态为空");
          orderInfoService.update(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value={"/pc/v1/delete","/app/v1/delete"},method=RequestMethod.POST)
        @ApiOperation(value = "删除订单", notes = "删除订单")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult delete(OrderInfoDeleteParams params){
          logger.info("OrderInfoController-删除入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getId(), "订单ID为空");
          orderInfoService.delete(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value={"/pc/v1/deleteByIds","/app/v1/deleteByIds"},method=RequestMethod.POST)
        @ApiOperation(value = "批量删除订单", notes = "批量删除订单")
        @ApiImplicitParams({
          @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult deleteByIds(OrderInfoDeleteParams params){
          logger.info("OrderInfoController-批量删除入参:{}",Arrays.toString(params.getIds()));
          orderInfoService.deleteByIds(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value="/app/v1/addOne",method=RequestMethod.POST)
        @ApiOperation(value = "添加产品到购物车", notes = "添加产品到购物车")
        @ApiImplicitParams({
            @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult addOne(OrderInfoAddParams params){
          logger.info("OrderInfoController-添加产品到购物车入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getGoodsNo(), "商品编号为空");
          AssertUtil.notNull(params.getGoodsNum(), "商品数量为空");
          orderInfoService.addOne(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value="/app/v1/removeOne",method=RequestMethod.POST)
        @ApiOperation(value = "从购物车移除产品", notes = "从购物车移除产品")
        @ApiImplicitParams({
          @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult removeOne(OrderInfoAddParams params){
          logger.info("OrderInfoController-从购物车移除产品入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getOrderNo(), "订单编号为空");
          orderInfoService.removeOne(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value="/app/v1/submit",method=RequestMethod.POST)
        @ApiOperation(value = "批量提交购物车订单", notes = "批量提交购物车订单")
        @ApiImplicitParams({
          @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult submit(@RequestBody OrderInfoSubmitParams params){
          logger.info("OrderInfoController-批量提交购物车订单入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getAddrId(), "收货地址为空");
          AssertUtil.notNull(params.getOrderInfos(), "订单数据为空");
          orderInfoService.submit(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value="/app/v1/buyNow",method=RequestMethod.POST)
        @ApiOperation(value = "立即购买", notes = "立即购买")
        @ApiImplicitParams({
          @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult buyNow(OrderInfoAddParams params){
          logger.info("OrderInfoController-立即购买入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getGoodsNo(), "产品编号为空");
          AssertUtil.notNull(params.getGoodsNum(), "产品数量为空");
          OrderInfo orderInfo = orderInfoService.buyNow(params);
          return JsonResultBuilder.ok(orderInfo);
        }
        @RequestMapping(value={"/pc/v1/searchInfo","/app/v1/searchInfo"},method=RequestMethod.POST)
        @ApiOperation(value = "查询订单详情", notes = "查询订单详情")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchInfo(OrderInfoSearchParams params){
          logger.info("OrderInfoController-查询详情入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getOrderNo(), "订单编号为空");
          Map<String,Object> result = orderInfoService.searchInfo(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value="/app/v1/searchList",method=RequestMethod.POST)
        @ApiOperation(value = "查询个人订单列表", notes = "查询个人订单列表")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchListApp(OrderInfoSearchParams params){
          logger.info("OrderInfoController-查询列表入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          List<Map<String,Object>> result = orderInfoService.searchListApp(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value="/app/v1/searchSubmit",method=RequestMethod.POST)
        @ApiOperation(value = "查询已提交待付款的订单列表", notes = "查询已提交待付款的订单列表")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchSubmit(OrderInfoSearchParams params){
          logger.info("OrderInfoController-查询已提交待付款的订单列表入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getOrderNos(), "订单编号为空");
          List<Map<String,Object>> result = orderInfoService.searchSubmit(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value="/app/v1/searchTotal",method=RequestMethod.POST)
        @ApiOperation(value = "查询个人订单状态统计数量", notes = "查询个人订单状态统计数量")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchTotal(OrderInfoSearchParams params){
          logger.info("OrderInfoController-查询个人订单状态统计数量入参:{}",params);
          Map<String,Object> result = orderInfoService.searchTotal(params);
          return JsonResultBuilder.ok(result);
        }
      }

      image.gif

      package com.yun.smart.controller;
      import java.util.Arrays;
      import java.util.List;
      import java.util.Map;
      import javax.annotation.Resource;
      import org.springframework.web.bind.annotation.RequestMapping;
      import org.springframework.web.bind.annotation.RequestMethod;
      import org.springframework.web.bind.annotation.RestController;
      import com.baomidou.mybatisplus.plugins.Page;
      import com.yun.smart.builder.JsonResultBuilder;
      import com.yun.smart.consts.SessionConsts;
      import com.yun.smart.result.JsonResult;
      import com.yun.smart.controller.BaseController;
      import com.yun.smart.enums.BussinessType;
      import com.yun.smart.log.BussinessLogger;
      import com.yun.smart.log.BussinessLoggerPool;
      import com.yun.smart.model.OrderNotice;
      import com.yun.smart.param.OrderNoticeAddParams;
      import com.yun.smart.param.OrderNoticeDeleteParams;
      import com.yun.smart.param.OrderNoticeSearchParams;
      import com.yun.smart.param.OrderNoticeUpdateParams;
      import com.yun.smart.service.OrderNoticeService;
      import com.yun.smart.utils.AssertUtil;
      import io.swagger.annotations.Api;
      import io.swagger.annotations.ApiImplicitParam;
      import io.swagger.annotations.ApiImplicitParams;
      import io.swagger.annotations.ApiOperation;
      /**
       * Controller - 消息
       * @author znz
       * @version 0.0.1
       *
       */
      @RestController
      @RequestMapping("/smart/orderNotice")
      @Api(value = "消息接口")
      public class OrderNoticeController extends BaseController {
        private BussinessLogger logger = BussinessLoggerPool.getLogger(this.getClass(), BussinessType.ORDERNOTICE);
        @Resource
        private OrderNoticeService orderNoticeService;
        @RequestMapping(value="/pc/v1/searchPage",method=RequestMethod.POST)
        @ApiOperation(value = "分页查询消息", notes = "分页查询消息")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchPage(OrderNoticeSearchParams params){
          logger.info("OrderNoticeController-分页查询入参:{}",params);
          Page<Map<String,Object>> result = orderNoticeService.searchPage(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value="/pc/v1/searchList",method=RequestMethod.POST)
        @ApiOperation(value = "查询消息列表", notes = "查询消息列表")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchList(OrderNoticeSearchParams params){
          logger.info("OrderNoticeController-查询列表入参:{}",params);
          List<OrderNotice> result = orderNoticeService.searchList(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value="/pc/v1/searchDetail",method=RequestMethod.POST)
        @ApiOperation(value = "查询消息详情", notes = "查询消息详情")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult searchDetail(OrderNoticeSearchParams params){
          logger.info("OrderNoticeController-查询详情入参:{}",params);
          OrderNotice result = orderNoticeService.searchDetail(params);
          return JsonResultBuilder.ok(result);
        }
        @RequestMapping(value="/pc/v1/add",method=RequestMethod.POST)
        @ApiOperation(value = "新建消息", notes = "新建消息")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult add(OrderNoticeAddParams params){
          logger.info("OrderNoticeController-新建入参:{}",params);
          orderNoticeService.add(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value="/pc/v1/update",method=RequestMethod.POST)
        @ApiOperation(value = "更新消息", notes = "更新消息")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult update(OrderNoticeUpdateParams params){
          logger.info("OrderNoticeController-更新入参:{}",params);
          orderNoticeService.update(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value="/pc/v1/delete",method=RequestMethod.POST)
        @ApiOperation(value = "删除消息", notes = "删除消息")
        @ApiImplicitParams({
              @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult delete(OrderNoticeDeleteParams params){
          logger.info("OrderNoticeController-删除入参:{}",params);
          orderNoticeService.delete(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value="/pc/v1/deleteByIds",method=RequestMethod.POST)
        @ApiOperation(value = "批量删除消息", notes = "批量删除消息")
        @ApiImplicitParams({
          @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult deleteByIds(OrderNoticeDeleteParams params){
          logger.info("OrderNoticeController-批量删除入参:{}",Arrays.toString(params.getIds()));
          orderNoticeService.deleteByIds(params);
          return JsonResultBuilder.ok();
        }
        @RequestMapping(value="/pc/v1/changeNoticeStatus",method=RequestMethod.POST)
        @ApiOperation(value = "设置消息已读", notes = "设置消息已读")
        @ApiImplicitParams({
          @ApiImplicitParam(name = SessionConsts.AUTH_TOKEN_NAME, value = "token", paramType = "header", dataType = "string")
        })
        public JsonResult changeNoticeStatus(OrderNoticeUpdateParams params){
          logger.info("OrderNoticeController-设置消息已读入参:{}",params);
          AssertUtil.notNull(params, "参数为空");
          AssertUtil.notNull(params.getId(), "消息ID为空");
          orderNoticeService.changeNoticeStatus(params);
          return JsonResultBuilder.ok();
        }
      }

      image.gif


      相关实践学习
      基于Redis实现在线游戏积分排行榜
      本场景将介绍如何基于Redis数据库实现在线游戏中的游戏玩家积分排行榜功能。
      云数据库 Redis 版使用教程
      云数据库Redis版是兼容Redis协议标准的、提供持久化的内存数据库服务,基于高可靠双机热备架构及可无缝扩展的集群架构,满足高读写性能场景及容量需弹性变配的业务需求。 产品详情:https://www.aliyun.com/product/kvstore &nbsp; &nbsp; ------------------------------------------------------------------------- 阿里云数据库体验:数据库上云实战 开发者云会免费提供一台带自建MySQL的源数据库&nbsp;ECS 实例和一台目标数据库&nbsp;RDS实例。跟着指引,您可以一步步实现将ECS自建数据库迁移到目标数据库RDS。 点击下方链接,领取免费ECS&amp;RDS资源,30分钟完成数据库上云实战!https://developer.aliyun.com/adc/scenario/51eefbd1894e42f6bb9acacadd3f9121?spm=a2c6h.13788135.J_3257954370.9.4ba85f24utseFl
      相关文章
      |
      6天前
      |
      人工智能 小程序
      【一步步开发AI运动小程序】十五、AI运动识别中,如何判断人体站位的远近?
      【云智AI运动识别小程序插件】提供人体、运动及姿态检测的AI能力,无需后台支持,具有快速、体验好、易集成等特点。本文介绍如何利用插件判断人体与摄像头的远近,确保人体图像在帧内的比例适中,以优化识别效果。通过`whole`检测规则,分别实现人体过近和过远的判断,并给出相应示例代码。
      |
      5天前
      |
      人工智能 小程序 UED
      【一步步开发AI运动小程序】十六、AI运动识别中,如何判断人体站位?
      【云智AI运动识别小程序插件】提供人体、运动及姿态检测的AI能力,本地引擎无需后台支持,具备快速、体验好、易集成等优势。本文介绍如何利用插件的`camera-view`功能,通过检测人体站位视角(前、后、左、右),确保运动时的最佳识别率和用户体验。代码示例展示了如何实现视角检查,确保用户正或背对摄像头,为后续运动检测打下基础。
      |
      18天前
      |
      人工智能 小程序 IDE
      【一步步开发AI运动小程序】九、姿态辅助调试桌面工具的使用
      随着AI技术的发展,各大厂商推出的AI运动APP如“乐动力”、“天天跳绳”等,使云上运动会、线上健身等概念大热。本文将指导你如何利用“云智AI运动识别小程序插件”,在微信小程序中实现类似功能,包括工具搭建、服务启动及数据回传等步骤,助力开发者高效开发AI运动小程序。
      【一步步开发AI运动小程序】九、姿态辅助调试桌面工具的使用
      |
      11天前
      |
      人工智能 小程序 API
      【一步步开发AI运动小程序】十三、自定义一个运动分析器,实现计时计数02
      本文介绍如何利用“云智AI运动识别小程序插件”开发AI运动小程序,详细解析了俯卧撑动作的检测规则构建与执行流程,涵盖卧撑和撑卧两个姿态的识别规则,以及如何通过继承`sports.SportBase`类实现运动分析器,适用于小程序开发者。
      |
      11天前
      |
      人工智能 小程序 API
      【一步步开发AI运动小程序】十二、自定义一个运动分析器,实现计时计数01
      随着AI技术的发展,AI运动APP如雨后春笋般涌现,如“乐动力”、“天天跳绳”等,推动了云上运动会、线上健身等热潮。本文将指导你从零开始开发一个AI运动小程序,利用“云智AI运动识别小程序插件”,介绍运动识别原理、计量方式及运动分析器基类的使用,帮助你在小程序中实现运动计时和计数功能。下篇将继续探讨运动姿态检测规则的编写。
      |
      4天前
      |
      移动开发 小程序 PHP
      校园圈子论坛系统采取的PHP语音和uni账号开发的小程序APP公众号H5是否只需要4800元?是的,就是只需要4800元
      关于校园圈子论坛系统采用PHP语言和uni-app开发的小程序、APP、公众号和H5是否仅需4800元这个问题,实际上很难给出一个确定的答案。这个价格可能受到多种因素的影响
      |
      13天前
      |
      数据采集 人工智能 小程序
      【一步步开发AI运动小程序】十、姿态动作相似度比较
      本文介绍如何利用“云智AI运动识别小程序插件”开发AI运动小程序,重点讲解姿态动作相似度比较功能的运用,包括样本动作帧的采集和姿态相似度的计算方法,以及在组合运动中的应用实例。
      |
      6天前
      |
      人工智能 小程序 JavaScript
      【一步步开发AI运动小程序】十四、主包超出2M大小限制,如何将插件分包发布?
      本文介绍了如何从零开始开发一个AI运动小程序,重点讲解了通过分包技术解决程序包超过2M限制的问题。详细步骤包括在uni-app中创建分包、配置`manifest.json`和`pages.json`文件,并提供了分包前后代码大小对比,帮助开发者高效实现AI运动功能。
      |
      12天前
      |
      人工智能 小程序 开发者
      【一步步开发AI运动小程序】十一、人体关键点跳跃追踪
      本文介绍如何利用“云智AI运动识别小程序插件”开发AI运动小程序,涵盖云上运动会、健身打卡等热门应用场景。通过示例代码展示如何调用插件功能,实现动作追踪与分析,助力开发者快速上手。
      |
      22天前
      |
      人工智能 小程序 搜索推荐
      uni app下开发AI运动小程序解决方案
      本文介绍了在小程序中实现AI运动识别的解决方案。该方案依托于UNI平台,通过高效便捷的插件形式,实现包括相机抽帧控制、人体识别、姿态识别等在内的多项功能,无需依赖后台服务器,大幅提高识别效率和用户体验。方案内置多种运动模式,支持自定义扩展,适用于AI健身、云上赛事、AI体测等多场景,适合新开发和存量改造项目。