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("