From a652073ff812a9145afdf57d13dec63434029b54 Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Sun, 21 Mar 2021 10:11:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/oms/pojo/domain/OmsOrderItem.java | 6 +++-- .../oms/controller/app/OrderController.java | 9 ++++--- .../youlai/mall/oms/mapper/OrderMapper.java | 2 +- .../oms/service/impl/OrderServiceImpl.java | 27 ++++++++++--------- .../youlai/mall/pms/pojo/domain/PmsSku.java | 2 +- .../com/youlai/mall/ums/pojo/vo/MemberVO.java | 2 ++ .../src/main/resources/bootstrap-dev.yml | 1 + youlai-common/common-redis/pom.xml | 2 +- .../src/main/resources/logback-spring.xml | 12 +++++++++ 9 files changed, 41 insertions(+), 22 deletions(-) diff --git a/mall-oms/oms-api/src/main/java/com/youlai/mall/oms/pojo/domain/OmsOrderItem.java b/mall-oms/oms-api/src/main/java/com/youlai/mall/oms/pojo/domain/OmsOrderItem.java index 4740e9d3d..e90ebdf57 100644 --- a/mall-oms/oms-api/src/main/java/com/youlai/mall/oms/pojo/domain/OmsOrderItem.java +++ b/mall-oms/oms-api/src/main/java/com/youlai/mall/oms/pojo/domain/OmsOrderItem.java @@ -39,6 +39,10 @@ public class OmsOrderItem extends BaseEntity { * 商品sku编号 */ private String skuCode; + + + private String skuName; + /** * 商品sku名字 */ @@ -92,6 +96,4 @@ public class OmsOrderItem extends BaseEntity { */ private Integer deleted; - - } diff --git a/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/controller/app/OrderController.java b/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/controller/app/OrderController.java index 20fa155bf..b237abae1 100644 --- a/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/controller/app/OrderController.java +++ b/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/controller/app/OrderController.java @@ -15,6 +15,7 @@ import io.swagger.annotations.*; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.*; + import javax.validation.Valid; @@ -36,13 +37,13 @@ public class OrderController { @ApiOperation("订单列表") @GetMapping @ApiImplicitParams({ - @ApiImplicitParam(name = "page",defaultValue = "1", value = "页码", paramType = "query", dataType = "Long"), - @ApiImplicitParam(name = "limit",defaultValue = "10", value = "每页数量", paramType = "query", dataType = "Long"), + @ApiImplicitParam(name = "page", defaultValue = "1", value = "页码", paramType = "query", dataType = "Long"), + @ApiImplicitParam(name = "limit", defaultValue = "10", value = "每页数量", paramType = "query", dataType = "Long"), @ApiImplicitParam(name = "status", value = "订单状态", paramType = "query", dataType = "Integer") }) public Result list( - Long page, - Long limit, + @RequestParam(defaultValue = "1") Long page, + @RequestParam(defaultValue = "10") Long limit, Integer status ) { IPage result = orderService.list(new Page<>(page, limit), new OmsOrder().setStatus(status)); diff --git a/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/mapper/OrderMapper.java b/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/mapper/OrderMapper.java index 9cec836af..77b210e54 100644 --- a/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/mapper/OrderMapper.java +++ b/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/mapper/OrderMapper.java @@ -18,7 +18,7 @@ public interface OrderMapper extends BaseMapper { @Select("