微信小程序商城+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
      相关文章
      |
      3月前
      |
      Java 数据库连接 Maven
      手把手教你如何搭建SSM框架、图书商城系统案例
      这篇文章是关于如何搭建SSM框架以及实现一个图书商城系统的详细教程,包括了项目的配置文件整合、依赖管理、项目结构和运行效果展示,并提供了GitHub源码链接。
      手把手教你如何搭建SSM框架、图书商城系统案例
      |
      4月前
      |
      小程序 前端开发
      生活商城app微信小程序模板源码
      生活商城app微信小程序模板源码
      62 6
      |
      2月前
      |
      设计模式 Java 关系型数据库
      【Java笔记+踩坑汇总】Java基础+JavaWeb+SSM+SpringBoot+SpringCloud+瑞吉外卖/谷粒商城/学成在线+设计模式+面试题汇总+性能调优/架构设计+源码解析
      本文是“Java学习路线”专栏的导航文章,目标是为Java初学者和初中高级工程师提供一套完整的Java学习路线。
      423 37
      |
      3月前
      |
      JSON 小程序 JavaScript
      微信小程序制作 购物商城首页 【内包含源码】
      这篇文章提供了一个微信小程序购物商城首页的实现方法和源码,包括页面布局、数据结构、核心代码以及如何配置tabBar和搜索框组件。
      微信小程序制作 购物商城首页 【内包含源码】
      |
      2月前
      |
      XML Java 数据库连接
      如何搭建SSM框架、图书商城系统
      这是一份详尽的《Spring + SpringMVC + Mybatis 整合指南》,作者耗时良久整理出约五万字的内容,现已经全部笔记公开。此文档详细地介绍了如何搭建与整合SSM框架,具体步骤包括创建Maven项目、添加web骨架、配置pom文件以及整合Spring、SpringMVC和Mybatis等。无论是对初学者还是有一定基础的开发者来说,都是很好的学习资源。此外,作者还提供了项目源码的GitHub链接,方便读者实践。虽然当前主流推荐学习SpringBoot,但了解SSM框架仍然是不可或缺的基础。
      36 0
      |
      3月前
      |
      小程序 前端开发
      微信小程序商城,微信小程序微店 【毕业设计参考项目】
      文章推荐了一个微信小程序商城项目作为毕业设计参考,该项目在Github上获得18.2k星,提供了详细的使用教程和前端页面实现,适合学习微信小程序开发和作为毕业设计项目。
      微信小程序商城,微信小程序微店 【毕业设计参考项目】
      |
      3月前
      |
      小程序
      关于我花了一个星期学习微信小程序开发、并且成功开发出一个商城项目系统的心得体会
      这篇文章是作者关于学习微信小程序开发并在一周内成功开发出一个商城项目系统的心得体会,分享了学习基础知识、实战项目开发的过程,以及小程序开发的易上手性和开发周期的简短。
      关于我花了一个星期学习微信小程序开发、并且成功开发出一个商城项目系统的心得体会
      |
      3月前
      |
      SQL Java 应用服务中间件
      使用SSM搭建图书商城管理系统(完整过程介绍、售后服务哈哈哈)
      这篇文章是关于如何使用SSM框架搭建图书商城管理系统的教程,包括完整过程介绍、常见问题解答和售后服务,提供了项目地址、运行环境配置、效果图展示以及运行代码的步骤。
      使用SSM搭建图书商城管理系统(完整过程介绍、售后服务哈哈哈)
      |
      3月前
      |
      开发框架 Dubbo 应用服务中间件
      微服务开发框架-----Apache Dubbo
      这篇文章介绍了Apache Dubbo微服务开发框架,它提供RPC通信和微服务治理能力,支持服务发现、负载均衡和流量治理等功能,并强调了Dubbo在微服务规模化实践和企业级治理方面的优势。
      微服务开发框架-----Apache Dubbo
      |
      4月前
      |
      安全 数据挖掘 测试技术
      基于SSM+Vue的家居商城系统(源码+部署说明+演示视频)(2)
      基于SSM+Vue的家居商城系统(源码+部署说明+演示视频)
      71 0