微信小程序商城+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
      相关文章
      预约按摩小程序开发,为什么很多上门按摩平台根本招聘不到优秀技师?
      上门按摩平台面临招不到优秀技师的问题,主要原因是平台众多,技师选择多样。为解决此问题,平台可引入技师等级制度,根据订单数量和好评率划分高、低等级技师。高等级技师可享受70%-90%的高提成及首页推荐,这不仅能激励技师的积极性,还能帮助平台筛选出优质技师,提升服务质量和口碑,形成良性循环。
      |
      8天前
      |
      小程序 Android开发
      |
      3天前
      |
      小程序
      |
      4天前
      |
      小程序 数据安全/隐私保护
      |
      9天前
      |
      小程序
      |
      9天前
      |
      人工智能 小程序
      【一步步开发AI运动小程序】五、帧图像人体识别
      随着AI技术的发展,阿里体育等公司推出的AI运动APP,如“乐动力”和“天天跳绳”,使云上运动会、线上健身等概念广受欢迎。本文将引导您从零开始开发一个AI运动小程序,使用“云智AI运动识别小程序插件”。文章分为四部分:初始化人体识别功能、调用人体识别功能、人体识别结果处理以及识别结果旋转矫正。下篇将继续介绍人体骨骼图绘制。
      |
      10天前
      |
      小程序 数据挖掘 UED
      开发1个上门家政小程序APP系统,都有哪些功能?
      在快节奏的现代生活中,家政服务已成为许多家庭的必需品。针对传统家政服务存在的问题,如服务质量不稳定、价格不透明等,我们历时两年开发了一套全新的上门家政系统。该系统通过完善信用体系、提供奖励机制、优化复购体验、多渠道推广和多样化盈利模式,解决了私单、复购、推广和盈利四大痛点,全面提升了服务质量和用户体验,旨在成为家政行业的领导者。
      |
      3天前
      |
      小程序
      |
      7天前
      |
      小程序
      下一篇
      无影云桌面