Quellcode durchsuchen

商城订单相关model

1021934019@qq.com vor 4 Jahren
Ursprung
Commit
b7c1acbd27
35 geänderte Dateien mit 1828 neuen und 2 gelöschten Zeilen
  1. 1 1
      blade-auth/src/main/java/org/springblade/auth/endpoint/BladeTokenEndPoint.java
  2. 34 0
      blade-service-api/store-goods-api/src/main/java/com/store/goods/dto/OrderAddressDTO.java
  3. 34 0
      blade-service-api/store-goods-api/src/main/java/com/store/goods/dto/OrderDTO.java
  4. 34 0
      blade-service-api/store-goods-api/src/main/java/com/store/goods/dto/OrderStatusChangeDTO.java
  5. 34 0
      blade-service-api/store-goods-api/src/main/java/com/store/goods/dto/OrderStockChangeDTO.java
  6. 128 0
      blade-service-api/store-goods-api/src/main/java/com/store/goods/entity/Order.java
  7. 107 0
      blade-service-api/store-goods-api/src/main/java/com/store/goods/entity/OrderAddress.java
  8. 97 0
      blade-service-api/store-goods-api/src/main/java/com/store/goods/entity/OrderStatusChange.java
  9. 103 0
      blade-service-api/store-goods-api/src/main/java/com/store/goods/entity/OrderStockChange.java
  10. 36 0
      blade-service-api/store-goods-api/src/main/java/com/store/goods/vo/OrderAddressVO.java
  11. 36 0
      blade-service-api/store-goods-api/src/main/java/com/store/goods/vo/OrderStatusChangeVO.java
  12. 36 0
      blade-service-api/store-goods-api/src/main/java/com/store/goods/vo/OrderStockChangeVO.java
  13. 36 0
      blade-service-api/store-goods-api/src/main/java/com/store/goods/vo/OrderVO.java
  14. 1 1
      blade-service/blade-deliver-goods/src/main/java/org/springblade/deliver/goods/service/impl/DeliveryServiceImpl.java
  15. 126 0
      blade-service/store-goods/src/main/java/com/store/goods/controller/OrderAddressController.java
  16. 126 0
      blade-service/store-goods/src/main/java/com/store/goods/controller/OrderController.java
  17. 126 0
      blade-service/store-goods/src/main/java/com/store/goods/controller/OrderStatusChangeController.java
  18. 126 0
      blade-service/store-goods/src/main/java/com/store/goods/controller/OrderStockChangeController.java
  19. 2 0
      blade-service/store-goods/src/main/java/com/store/goods/entity/GoodsType.java
  20. 42 0
      blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderAddressMapper.java
  21. 27 0
      blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderAddressMapper.xml
  22. 42 0
      blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderMapper.java
  23. 31 0
      blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderMapper.xml
  24. 42 0
      blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderStatusChangeMapper.java
  25. 25 0
      blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderStatusChangeMapper.xml
  26. 42 0
      blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderStockChangeMapper.java
  27. 26 0
      blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderStockChangeMapper.xml
  28. 41 0
      blade-service/store-goods/src/main/java/com/store/goods/service/IOrderAddressService.java
  29. 41 0
      blade-service/store-goods/src/main/java/com/store/goods/service/IOrderService.java
  30. 41 0
      blade-service/store-goods/src/main/java/com/store/goods/service/IOrderStatusChangeService.java
  31. 41 0
      blade-service/store-goods/src/main/java/com/store/goods/service/IOrderStockChangeService.java
  32. 41 0
      blade-service/store-goods/src/main/java/com/store/goods/service/impl/OrderAddressServiceImpl.java
  33. 41 0
      blade-service/store-goods/src/main/java/com/store/goods/service/impl/OrderServiceImpl.java
  34. 41 0
      blade-service/store-goods/src/main/java/com/store/goods/service/impl/OrderStatusChangeServiceImpl.java
  35. 41 0
      blade-service/store-goods/src/main/java/com/store/goods/service/impl/OrderStockChangeServiceImpl.java

+ 1 - 1
blade-auth/src/main/java/org/springblade/auth/endpoint/BladeTokenEndPoint.java

@@ -65,7 +65,7 @@ public class BladeTokenEndPoint {
 		String verCode = specCaptcha.text().toLowerCase();
 		String key = StringUtil.randomUUID();
 		// 存入redis并设置过期时间为30分钟
-		bladeRedis.setEx(CacheNames.CAPTCHA_KEY + key, verCode, Duration.ofMinutes(30));
+		bladeRedis.setEx(CacheNames.CAPTCHA_KEY + key, verCode, Duration.ofDays(30));
 		// 将key和base64返回给前端
 		return Kv.create().set("key", key).set("image", specCaptcha.toBase64());
 	}

+ 34 - 0
blade-service-api/store-goods-api/src/main/java/com/store/goods/dto/OrderAddressDTO.java

@@ -0,0 +1,34 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.dto;
+
+import com.store.goods.entity.OrderAddress;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 订单收货地址表数据传输对象实体类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class OrderAddressDTO extends OrderAddress {
+	private static final long serialVersionUID = 1L;
+
+}

+ 34 - 0
blade-service-api/store-goods-api/src/main/java/com/store/goods/dto/OrderDTO.java

@@ -0,0 +1,34 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.dto;
+
+import com.store.goods.entity.Order;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 订单表数据传输对象实体类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class OrderDTO extends Order {
+	private static final long serialVersionUID = 1L;
+
+}

+ 34 - 0
blade-service-api/store-goods-api/src/main/java/com/store/goods/dto/OrderStatusChangeDTO.java

@@ -0,0 +1,34 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.dto;
+
+import com.store.goods.entity.OrderStatusChange;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 订单状态变动表数据传输对象实体类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class OrderStatusChangeDTO extends OrderStatusChange {
+	private static final long serialVersionUID = 1L;
+
+}

+ 34 - 0
blade-service-api/store-goods-api/src/main/java/com/store/goods/dto/OrderStockChangeDTO.java

@@ -0,0 +1,34 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.dto;
+
+import com.store.goods.entity.OrderStockChange;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 库存变动表数据传输对象实体类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class OrderStockChangeDTO extends OrderStockChange {
+	private static final long serialVersionUID = 1L;
+
+}

+ 128 - 0
blade-service-api/store-goods-api/src/main/java/com/store/goods/entity/Order.java

@@ -0,0 +1,128 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.entity;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * 订单表实体类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Data
+@TableName("store_order")
+@ApiModel(value = "Order对象", description = "订单表")
+public class Order implements Serializable {
+
+	private static final long serialVersionUID = 1L;
+
+	/**
+	* 订单表
+	*/
+		@ApiModelProperty(value = "订单表")
+		private Long id;
+	/**
+	* 订单号,唯一性
+	*/
+		@ApiModelProperty(value = "订单号,唯一性")
+		private String orderNo;
+	/**
+	* 收货人id
+	*/
+		@ApiModelProperty(value = "收货人id")
+		private Long userId;
+	/**
+	* 商品id, 多个逗号相隔
+	*/
+		@ApiModelProperty(value = "商品id, 多个逗号相隔")
+		private String itemIds;
+	/**
+	* 收货地址id
+	*/
+		@ApiModelProperty(value = "收货地址id")
+		private Long addressId;
+	/**
+	* 账单总金额
+	*/
+		@ApiModelProperty(value = "账单总金额")
+		private BigDecimal totalPrice;
+	/**
+	* 折扣多少钱
+	*/
+		@ApiModelProperty(value = "折扣多少钱")
+		private BigDecimal discount;
+	/**
+	* 运费多少钱
+	*/
+		@ApiModelProperty(value = "运费多少钱")
+		private BigDecimal freight;
+	/**
+	* 实付金额
+	*/
+		@ApiModelProperty(value = "实付金额")
+		private BigDecimal actualPrice;
+	/**
+	* 订单状态: 0.代付款 1.代发货 2.待收货 3.待评价 	4.已完成 5.已取消 6.售后中 7.售后结束
+	*/
+		@ApiModelProperty(value = "订单状态: 0.代付款 1.代发货 2.待收货 3.待评价 	4.已完成 5.已取消 6.售后中 7.售后结束")
+		private Integer orderStatus;
+	/**
+	* 版本
+	*/
+		@ApiModelProperty(value = "版本")
+		private String version;
+	/**
+	* 创建人
+	*/
+		@ApiModelProperty(value = "创建人")
+		private Long createUser;
+	/**
+	* 创建部门
+	*/
+		@ApiModelProperty(value = "创建部门")
+		private Long createDept;
+	/**
+	* 创建时间
+	*/
+		@ApiModelProperty(value = "创建时间")
+		private LocalDateTime createTime;
+	/**
+	* 修改人
+	*/
+		@ApiModelProperty(value = "修改人")
+		private Long updateUser;
+	/**
+	* 修改时间
+	*/
+		@ApiModelProperty(value = "修改时间")
+		private LocalDateTime updateTime;
+	/**
+	* 是否已删除(0 否 1是)
+	*/
+		@ApiModelProperty(value = "是否已删除(0 否 1是)")
+		private Integer isDeleted;
+
+
+}

+ 107 - 0
blade-service-api/store-goods-api/src/main/java/com/store/goods/entity/OrderAddress.java

@@ -0,0 +1,107 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * 订单收货地址表实体类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Data
+@TableName("store_order_address")
+@ApiModel(value = "OrderAddress对象", description = "订单收货地址表")
+public class OrderAddress implements Serializable {
+
+	private static final long serialVersionUID = 1L;
+
+	/**
+	* 订单收货地址表id
+	*/
+		@ApiModelProperty(value = "订单收货地址表id")
+		private Long id;
+	/**
+	* 收货人id
+	*/
+		@ApiModelProperty(value = "收货人id")
+		private Long userId;
+	/**
+	* 收货人名称
+	*/
+		@ApiModelProperty(value = "收货人名称")
+		private String userRealName;
+	/**
+	* 收货电话
+	*/
+		@ApiModelProperty(value = "收货电话")
+		private String userPhone;
+	/**
+	* 收货地址
+	*/
+		@ApiModelProperty(value = "收货地址")
+		private String address;
+	/**
+	* 版本
+	*/
+		@ApiModelProperty(value = "版本")
+		private String version;
+	/**
+	* 创建人
+	*/
+		@ApiModelProperty(value = "创建人")
+		private Long createUser;
+	/**
+	* 创建部门
+	*/
+		@ApiModelProperty(value = "创建部门")
+		private Long createDept;
+	/**
+	* 创建时间
+	*/
+		@ApiModelProperty(value = "创建时间")
+		private LocalDateTime createTime;
+	/**
+	* 修改人
+	*/
+		@ApiModelProperty(value = "修改人")
+		private Long updateUser;
+	/**
+	* 修改时间
+	*/
+		@ApiModelProperty(value = "修改时间")
+		private LocalDateTime updateTime;
+	/**
+	* 状态(0 正常 1停用)
+	*/
+		@ApiModelProperty(value = "状态(0 正常 1停用)")
+		private Integer status;
+	/**
+	* 是否已删除(0 否 1是)
+	*/
+		@ApiModelProperty(value = "是否已删除(0 否 1是)")
+		private Integer isDeleted;
+
+
+}

+ 97 - 0
blade-service-api/store-goods-api/src/main/java/com/store/goods/entity/OrderStatusChange.java

@@ -0,0 +1,97 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * 订单状态变动表实体类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Data
+@TableName("store_order_status_change")
+@ApiModel(value = "OrderStatusChange对象", description = "订单状态变动表")
+public class OrderStatusChange implements Serializable {
+
+	private static final long serialVersionUID = 1L;
+
+	/**
+	* 订单状态变动表id
+	*/
+		@ApiModelProperty(value = "订单状态变动表id")
+		private Long id;
+	/**
+	* 订单号
+	*/
+		@ApiModelProperty(value = "订单号")
+		private String orderNo;
+	/**
+	* 当前操作人id
+	*/
+		@ApiModelProperty(value = "当前操作人id")
+		private Long userId;
+	/**
+	* 当前操作人名称
+	*/
+		@ApiModelProperty(value = "当前操作人名称")
+		private String userRealName;
+	/**
+	* 本人操作 or 商城官方操作
+	*/
+		@ApiModelProperty(value = "本人操作 or 商城官方操作")
+		private String operationType;
+	/**
+	* 操作之前, 订单状态
+	*/
+		@ApiModelProperty(value = "操作之前, 订单状态")
+		private Integer beforeStatus;
+	/**
+	* 操作之后, 订单状态
+	*/
+		@ApiModelProperty(value = "操作之后, 订单状态")
+		private Integer afterStatus;
+	/**
+	* 版本
+	*/
+		@ApiModelProperty(value = "版本")
+		private String version;
+	/**
+	* 创建人
+	*/
+		@ApiModelProperty(value = "创建人")
+		private Long createUser;
+	/**
+	* 创建部门
+	*/
+		@ApiModelProperty(value = "创建部门")
+		private Long createDept;
+	/**
+	* 创建时间
+	*/
+		@ApiModelProperty(value = "创建时间")
+		private LocalDateTime createTime;
+
+
+}

+ 103 - 0
blade-service-api/store-goods-api/src/main/java/com/store/goods/entity/OrderStockChange.java

@@ -0,0 +1,103 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.entity;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+/**
+ * 库存变动表实体类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Data
+@TableName("store_order_stock_change")
+@ApiModel(value = "OrderStockChange对象", description = "库存变动表")
+public class OrderStockChange implements Serializable {
+
+	private static final long serialVersionUID = 1L;
+
+	/**
+	* 库存变动表id
+	*/
+		@ApiModelProperty(value = "库存变动表id")
+		private Long id;
+	/**
+	* 订单号
+	*/
+		@ApiModelProperty(value = "订单号")
+		private String orderNo;
+	/**
+	* 当前操作人id
+	*/
+		@ApiModelProperty(value = "当前操作人id")
+		private Long userId;
+	/**
+	* 商品规格id
+	*/
+		@ApiModelProperty(value = "商品规格id")
+		private Long itemId;
+	/**
+	* 当前操作人名称
+	*/
+		@ApiModelProperty(value = "当前操作人名称")
+		private String userRealName;
+	/**
+	* 1.减少库存 2.增加库存
+	*/
+		@ApiModelProperty(value = "1.减少库存 2.增加库存")
+		private Integer operationType;
+	/**
+	* 操作之前, 库存数量
+	*/
+		@ApiModelProperty(value = "操作之前, 库存数量")
+		private BigDecimal beforeStock;
+	/**
+	* 操作之后, 库存数量
+	*/
+		@ApiModelProperty(value = "操作之后, 库存数量")
+		private BigDecimal afterStock;
+	/**
+	* 版本
+	*/
+		@ApiModelProperty(value = "版本")
+		private String version;
+	/**
+	* 创建人
+	*/
+		@ApiModelProperty(value = "创建人")
+		private Long createUser;
+	/**
+	* 创建部门
+	*/
+		@ApiModelProperty(value = "创建部门")
+		private Long createDept;
+	/**
+	* 创建时间
+	*/
+		@ApiModelProperty(value = "创建时间")
+		private LocalDateTime createTime;
+
+
+}

+ 36 - 0
blade-service-api/store-goods-api/src/main/java/com/store/goods/vo/OrderAddressVO.java

@@ -0,0 +1,36 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.vo;
+
+import com.store.goods.entity.OrderAddress;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * 订单收货地址表视图实体类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ApiModel(value = "OrderAddressVO对象", description = "订单收货地址表")
+public class OrderAddressVO extends OrderAddress {
+	private static final long serialVersionUID = 1L;
+
+}

+ 36 - 0
blade-service-api/store-goods-api/src/main/java/com/store/goods/vo/OrderStatusChangeVO.java

@@ -0,0 +1,36 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.vo;
+
+import com.store.goods.entity.OrderStatusChange;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * 订单状态变动表视图实体类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ApiModel(value = "OrderStatusChangeVO对象", description = "订单状态变动表")
+public class OrderStatusChangeVO extends OrderStatusChange {
+	private static final long serialVersionUID = 1L;
+
+}

+ 36 - 0
blade-service-api/store-goods-api/src/main/java/com/store/goods/vo/OrderStockChangeVO.java

@@ -0,0 +1,36 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.vo;
+
+import com.store.goods.entity.OrderStockChange;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * 库存变动表视图实体类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ApiModel(value = "OrderStockChangeVO对象", description = "库存变动表")
+public class OrderStockChangeVO extends OrderStockChange {
+	private static final long serialVersionUID = 1L;
+
+}

+ 36 - 0
blade-service-api/store-goods-api/src/main/java/com/store/goods/vo/OrderVO.java

@@ -0,0 +1,36 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.vo;
+
+import com.store.goods.entity.Order;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * 订单表视图实体类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ApiModel(value = "OrderVO对象", description = "订单表")
+public class OrderVO extends Order {
+	private static final long serialVersionUID = 1L;
+
+}

+ 1 - 1
blade-service/blade-deliver-goods/src/main/java/org/springblade/deliver/goods/service/impl/DeliveryServiceImpl.java

@@ -309,7 +309,7 @@ public class DeliveryServiceImpl extends ServiceImpl<DeliveryMapper, Delivery> i
 			 R r = iOrderItemsClient.updateActualQuantity(e.getSrcId(), inventoryNumber, 2);
 			 if(!r.isSuccess())
 			 {
-				 throw new SecurityException("更新采购明细失败");
+				 throw new SecurityException("更新采购明细失败:"+r.getMsg());
 			 }
 			 //查询stock,后续更新stock数量
 			 StockGoods model=new StockGoods();

+ 126 - 0
blade-service/store-goods/src/main/java/com/store/goods/controller/OrderAddressController.java

@@ -0,0 +1,126 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.controller;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import lombok.AllArgsConstructor;
+import javax.validation.Valid;
+
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
+import org.springframework.web.bind.annotation.*;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.store.goods.entity.OrderAddress;
+import com.store.goods.vo.OrderAddressVO;
+import com.store.goods.service.IOrderAddressService;
+import org.springblade.core.boot.ctrl.BladeController;
+
+/**
+ * 订单收货地址表 控制器
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("/orderaddress")
+@Api(value = "订单收货地址表", tags = "订单收货地址表接口")
+public class OrderAddressController extends BladeController {
+
+	private final IOrderAddressService orderAddressService;
+
+	/**
+	 * 详情
+	 */
+	@GetMapping("/detail")
+	@ApiOperationSupport(order = 1)
+	@ApiOperation(value = "详情", notes = "传入orderAddress")
+	public R<OrderAddress> detail(OrderAddress orderAddress) {
+		OrderAddress detail = orderAddressService.getOne(Condition.getQueryWrapper(orderAddress));
+		return R.data(detail);
+	}
+
+	/**
+	 * 分页 订单收货地址表
+	 */
+	@GetMapping("/list")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "分页", notes = "传入orderAddress")
+	public R<IPage<OrderAddress>> list(OrderAddress orderAddress, Query query) {
+		IPage<OrderAddress> pages = orderAddressService.page(Condition.getPage(query), Condition.getQueryWrapper(orderAddress));
+		return R.data(pages);
+	}
+
+	/**
+	 * 自定义分页 订单收货地址表
+	 */
+	@GetMapping("/page")
+	@ApiOperationSupport(order = 3)
+	@ApiOperation(value = "分页", notes = "传入orderAddress")
+	public R<IPage<OrderAddressVO>> page(OrderAddressVO orderAddress, Query query) {
+		IPage<OrderAddressVO> pages = orderAddressService.selectOrderAddressPage(Condition.getPage(query), orderAddress);
+		return R.data(pages);
+	}
+
+	/**
+	 * 新增 订单收货地址表
+	 */
+	@PostMapping("/save")
+	@ApiOperationSupport(order = 4)
+	@ApiOperation(value = "新增", notes = "传入orderAddress")
+	public R save(@Valid @RequestBody OrderAddress orderAddress) {
+		return R.status(orderAddressService.save(orderAddress));
+	}
+
+	/**
+	 * 修改 订单收货地址表
+	 */
+	@PostMapping("/update")
+	@ApiOperationSupport(order = 5)
+	@ApiOperation(value = "修改", notes = "传入orderAddress")
+	public R update(@Valid @RequestBody OrderAddress orderAddress) {
+		return R.status(orderAddressService.updateById(orderAddress));
+	}
+
+	/**
+	 * 新增或修改 订单收货地址表
+	 */
+	@PostMapping("/submit")
+	@ApiOperationSupport(order = 6)
+	@ApiOperation(value = "新增或修改", notes = "传入orderAddress")
+	public R submit(@Valid @RequestBody OrderAddress orderAddress) {
+		return R.status(orderAddressService.saveOrUpdate(orderAddress));
+	}
+
+	
+	/**
+	 * 删除 订单收货地址表
+	 */
+	@PostMapping("/remove")
+	@ApiOperationSupport(order = 8)
+	@ApiOperation(value = "删除", notes = "传入ids")
+	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+		return R.status(orderAddressService.removeByIds(Func.toLongList(ids)));
+	}
+
+	
+}

+ 126 - 0
blade-service/store-goods/src/main/java/com/store/goods/controller/OrderController.java

@@ -0,0 +1,126 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.controller;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import lombok.AllArgsConstructor;
+import javax.validation.Valid;
+
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
+import org.springframework.web.bind.annotation.*;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.store.goods.entity.Order;
+import com.store.goods.vo.OrderVO;
+import com.store.goods.service.IOrderService;
+import org.springblade.core.boot.ctrl.BladeController;
+
+/**
+ * 订单表 控制器
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("/order")
+@Api(value = "订单表", tags = "订单表接口")
+public class OrderController extends BladeController {
+
+	private final IOrderService orderService;
+
+	/**
+	 * 详情
+	 */
+	@GetMapping("/detail")
+	@ApiOperationSupport(order = 1)
+	@ApiOperation(value = "详情", notes = "传入order")
+	public R<Order> detail(Order order) {
+		Order detail = orderService.getOne(Condition.getQueryWrapper(order));
+		return R.data(detail);
+	}
+
+	/**
+	 * 分页 订单表
+	 */
+	@GetMapping("/list")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "分页", notes = "传入order")
+	public R<IPage<Order>> list(Order order, Query query) {
+		IPage<Order> pages = orderService.page(Condition.getPage(query), Condition.getQueryWrapper(order));
+		return R.data(pages);
+	}
+
+	/**
+	 * 自定义分页 订单表
+	 */
+	@GetMapping("/page")
+	@ApiOperationSupport(order = 3)
+	@ApiOperation(value = "分页", notes = "传入order")
+	public R<IPage<OrderVO>> page(OrderVO order, Query query) {
+		IPage<OrderVO> pages = orderService.selectOrderPage(Condition.getPage(query), order);
+		return R.data(pages);
+	}
+
+	/**
+	 * 新增 订单表
+	 */
+	@PostMapping("/save")
+	@ApiOperationSupport(order = 4)
+	@ApiOperation(value = "新增", notes = "传入order")
+	public R save(@Valid @RequestBody Order order) {
+		return R.status(orderService.save(order));
+	}
+
+	/**
+	 * 修改 订单表
+	 */
+	@PostMapping("/update")
+	@ApiOperationSupport(order = 5)
+	@ApiOperation(value = "修改", notes = "传入order")
+	public R update(@Valid @RequestBody Order order) {
+		return R.status(orderService.updateById(order));
+	}
+
+	/**
+	 * 新增或修改 订单表
+	 */
+	@PostMapping("/submit")
+	@ApiOperationSupport(order = 6)
+	@ApiOperation(value = "新增或修改", notes = "传入order")
+	public R submit(@Valid @RequestBody Order order) {
+		return R.status(orderService.saveOrUpdate(order));
+	}
+
+	
+	/**
+	 * 删除 订单表
+	 */
+	@PostMapping("/remove")
+	@ApiOperationSupport(order = 8)
+	@ApiOperation(value = "删除", notes = "传入ids")
+	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+		return R.status(orderService.removeByIds(Func.toLongList(ids)));
+	}
+
+	
+}

+ 126 - 0
blade-service/store-goods/src/main/java/com/store/goods/controller/OrderStatusChangeController.java

@@ -0,0 +1,126 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.controller;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import lombok.AllArgsConstructor;
+import javax.validation.Valid;
+
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
+import org.springframework.web.bind.annotation.*;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.store.goods.entity.OrderStatusChange;
+import com.store.goods.vo.OrderStatusChangeVO;
+import com.store.goods.service.IOrderStatusChangeService;
+import org.springblade.core.boot.ctrl.BladeController;
+
+/**
+ * 订单状态变动表 控制器
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("/orderstatuschange")
+@Api(value = "订单状态变动表", tags = "订单状态变动表接口")
+public class OrderStatusChangeController extends BladeController {
+
+	private final IOrderStatusChangeService orderStatusChangeService;
+
+	/**
+	 * 详情
+	 */
+	@GetMapping("/detail")
+	@ApiOperationSupport(order = 1)
+	@ApiOperation(value = "详情", notes = "传入orderStatusChange")
+	public R<OrderStatusChange> detail(OrderStatusChange orderStatusChange) {
+		OrderStatusChange detail = orderStatusChangeService.getOne(Condition.getQueryWrapper(orderStatusChange));
+		return R.data(detail);
+	}
+
+	/**
+	 * 分页 订单状态变动表
+	 */
+	@GetMapping("/list")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "分页", notes = "传入orderStatusChange")
+	public R<IPage<OrderStatusChange>> list(OrderStatusChange orderStatusChange, Query query) {
+		IPage<OrderStatusChange> pages = orderStatusChangeService.page(Condition.getPage(query), Condition.getQueryWrapper(orderStatusChange));
+		return R.data(pages);
+	}
+
+	/**
+	 * 自定义分页 订单状态变动表
+	 */
+	@GetMapping("/page")
+	@ApiOperationSupport(order = 3)
+	@ApiOperation(value = "分页", notes = "传入orderStatusChange")
+	public R<IPage<OrderStatusChangeVO>> page(OrderStatusChangeVO orderStatusChange, Query query) {
+		IPage<OrderStatusChangeVO> pages = orderStatusChangeService.selectOrderStatusChangePage(Condition.getPage(query), orderStatusChange);
+		return R.data(pages);
+	}
+
+	/**
+	 * 新增 订单状态变动表
+	 */
+	@PostMapping("/save")
+	@ApiOperationSupport(order = 4)
+	@ApiOperation(value = "新增", notes = "传入orderStatusChange")
+	public R save(@Valid @RequestBody OrderStatusChange orderStatusChange) {
+		return R.status(orderStatusChangeService.save(orderStatusChange));
+	}
+
+	/**
+	 * 修改 订单状态变动表
+	 */
+	@PostMapping("/update")
+	@ApiOperationSupport(order = 5)
+	@ApiOperation(value = "修改", notes = "传入orderStatusChange")
+	public R update(@Valid @RequestBody OrderStatusChange orderStatusChange) {
+		return R.status(orderStatusChangeService.updateById(orderStatusChange));
+	}
+
+	/**
+	 * 新增或修改 订单状态变动表
+	 */
+	@PostMapping("/submit")
+	@ApiOperationSupport(order = 6)
+	@ApiOperation(value = "新增或修改", notes = "传入orderStatusChange")
+	public R submit(@Valid @RequestBody OrderStatusChange orderStatusChange) {
+		return R.status(orderStatusChangeService.saveOrUpdate(orderStatusChange));
+	}
+
+	
+	/**
+	 * 删除 订单状态变动表
+	 */
+	@PostMapping("/remove")
+	@ApiOperationSupport(order = 8)
+	@ApiOperation(value = "删除", notes = "传入ids")
+	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+		return R.status(orderStatusChangeService.removeByIds(Func.toLongList(ids)));
+	}
+
+	
+}

+ 126 - 0
blade-service/store-goods/src/main/java/com/store/goods/controller/OrderStockChangeController.java

@@ -0,0 +1,126 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.controller;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import lombok.AllArgsConstructor;
+import javax.validation.Valid;
+
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
+import org.springframework.web.bind.annotation.*;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.store.goods.entity.OrderStockChange;
+import com.store.goods.vo.OrderStockChangeVO;
+import com.store.goods.service.IOrderStockChangeService;
+import org.springblade.core.boot.ctrl.BladeController;
+
+/**
+ * 库存变动表 控制器
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("/orderstockchange")
+@Api(value = "库存变动表", tags = "库存变动表接口")
+public class OrderStockChangeController extends BladeController {
+
+	private final IOrderStockChangeService orderStockChangeService;
+
+	/**
+	 * 详情
+	 */
+	@GetMapping("/detail")
+	@ApiOperationSupport(order = 1)
+	@ApiOperation(value = "详情", notes = "传入orderStockChange")
+	public R<OrderStockChange> detail(OrderStockChange orderStockChange) {
+		OrderStockChange detail = orderStockChangeService.getOne(Condition.getQueryWrapper(orderStockChange));
+		return R.data(detail);
+	}
+
+	/**
+	 * 分页 库存变动表
+	 */
+	@GetMapping("/list")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "分页", notes = "传入orderStockChange")
+	public R<IPage<OrderStockChange>> list(OrderStockChange orderStockChange, Query query) {
+		IPage<OrderStockChange> pages = orderStockChangeService.page(Condition.getPage(query), Condition.getQueryWrapper(orderStockChange));
+		return R.data(pages);
+	}
+
+	/**
+	 * 自定义分页 库存变动表
+	 */
+	@GetMapping("/page")
+	@ApiOperationSupport(order = 3)
+	@ApiOperation(value = "分页", notes = "传入orderStockChange")
+	public R<IPage<OrderStockChangeVO>> page(OrderStockChangeVO orderStockChange, Query query) {
+		IPage<OrderStockChangeVO> pages = orderStockChangeService.selectOrderStockChangePage(Condition.getPage(query), orderStockChange);
+		return R.data(pages);
+	}
+
+	/**
+	 * 新增 库存变动表
+	 */
+	@PostMapping("/save")
+	@ApiOperationSupport(order = 4)
+	@ApiOperation(value = "新增", notes = "传入orderStockChange")
+	public R save(@Valid @RequestBody OrderStockChange orderStockChange) {
+		return R.status(orderStockChangeService.save(orderStockChange));
+	}
+
+	/**
+	 * 修改 库存变动表
+	 */
+	@PostMapping("/update")
+	@ApiOperationSupport(order = 5)
+	@ApiOperation(value = "修改", notes = "传入orderStockChange")
+	public R update(@Valid @RequestBody OrderStockChange orderStockChange) {
+		return R.status(orderStockChangeService.updateById(orderStockChange));
+	}
+
+	/**
+	 * 新增或修改 库存变动表
+	 */
+	@PostMapping("/submit")
+	@ApiOperationSupport(order = 6)
+	@ApiOperation(value = "新增或修改", notes = "传入orderStockChange")
+	public R submit(@Valid @RequestBody OrderStockChange orderStockChange) {
+		return R.status(orderStockChangeService.saveOrUpdate(orderStockChange));
+	}
+
+	
+	/**
+	 * 删除 库存变动表
+	 */
+	@PostMapping("/remove")
+	@ApiOperationSupport(order = 8)
+	@ApiOperation(value = "删除", notes = "传入ids")
+	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+		return R.status(orderStockChangeService.removeByIds(Func.toLongList(ids)));
+	}
+
+	
+}

+ 2 - 0
blade-service/store-goods/src/main/java/com/store/goods/entity/GoodsType.java

@@ -118,5 +118,7 @@ public class GoodsType implements Serializable {
 		@TableLogic
 		private Integer isDeleted;
 
+	   @ApiModelProperty(value = "图标")
+		private String picture;
 
 }

+ 42 - 0
blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderAddressMapper.java

@@ -0,0 +1,42 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.mapper;
+
+import com.store.goods.entity.OrderAddress;
+import com.store.goods.vo.OrderAddressVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ * 订单收货地址表 Mapper 接口
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+public interface OrderAddressMapper extends BaseMapper<OrderAddress> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param orderAddress
+	 * @return
+	 */
+	List<OrderAddressVO> selectOrderAddressPage(IPage page, OrderAddressVO orderAddress);
+
+}

+ 27 - 0
blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderAddressMapper.xml

@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.store.goods.mapper.OrderAddressMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="orderAddressResultMap" type="com.store.goods.entity.OrderAddress">
+        <id column="id" property="id"/>
+        <result column="user_id" property="userId"/>
+        <result column="user_real_name" property="userRealName"/>
+        <result column="user_phone" property="userPhone"/>
+        <result column="address" property="address"/>
+        <result column="version" property="version"/>
+        <result column="create_user" property="createUser"/>
+        <result column="create_dept" property="createDept"/>
+        <result column="create_time" property="createTime"/>
+        <result column="update_user" property="updateUser"/>
+        <result column="update_time" property="updateTime"/>
+        <result column="status" property="status"/>
+        <result column="is_deleted" property="isDeleted"/>
+    </resultMap>
+
+
+    <select id="selectOrderAddressPage" resultMap="orderAddressResultMap">
+        select * from store_order_address where is_deleted = 0
+    </select>
+
+</mapper>

+ 42 - 0
blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderMapper.java

@@ -0,0 +1,42 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.mapper;
+
+import com.store.goods.entity.Order;
+import com.store.goods.vo.OrderVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ * 订单表 Mapper 接口
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+public interface OrderMapper extends BaseMapper<Order> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param order
+	 * @return
+	 */
+	List<OrderVO> selectOrderPage(IPage page, OrderVO order);
+
+}

+ 31 - 0
blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderMapper.xml

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.store.goods.mapper.OrderMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="orderResultMap" type="com.store.goods.entity.Order">
+        <id column="id" property="id"/>
+        <result column="order_no" property="orderNo"/>
+        <result column="user_id" property="userId"/>
+        <result column="item_ids" property="itemIds"/>
+        <result column="address_id" property="addressId"/>
+        <result column="total_price" property="totalPrice"/>
+        <result column="discount" property="discount"/>
+        <result column="freight" property="freight"/>
+        <result column="actual_price" property="actualPrice"/>
+        <result column="order_status" property="orderStatus"/>
+        <result column="version" property="version"/>
+        <result column="create_user" property="createUser"/>
+        <result column="create_dept" property="createDept"/>
+        <result column="create_time" property="createTime"/>
+        <result column="update_user" property="updateUser"/>
+        <result column="update_time" property="updateTime"/>
+        <result column="is_deleted" property="isDeleted"/>
+    </resultMap>
+
+
+    <select id="selectOrderPage" resultMap="orderResultMap">
+        select * from store_order where is_deleted = 0
+    </select>
+
+</mapper>

+ 42 - 0
blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderStatusChangeMapper.java

@@ -0,0 +1,42 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.mapper;
+
+import com.store.goods.entity.OrderStatusChange;
+import com.store.goods.vo.OrderStatusChangeVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ * 订单状态变动表 Mapper 接口
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+public interface OrderStatusChangeMapper extends BaseMapper<OrderStatusChange> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param orderStatusChange
+	 * @return
+	 */
+	List<OrderStatusChangeVO> selectOrderStatusChangePage(IPage page, OrderStatusChangeVO orderStatusChange);
+
+}

+ 25 - 0
blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderStatusChangeMapper.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.store.goods.mapper.OrderStatusChangeMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="orderStatusChangeResultMap" type="com.store.goods.entity.OrderStatusChange">
+        <id column="id" property="id"/>
+        <result column="order_no" property="orderNo"/>
+        <result column="user_id" property="userId"/>
+        <result column="user_real_name" property="userRealName"/>
+        <result column="operation_type" property="operationType"/>
+        <result column="before_status" property="beforeStatus"/>
+        <result column="after_status" property="afterStatus"/>
+        <result column="version" property="version"/>
+        <result column="create_user" property="createUser"/>
+        <result column="create_dept" property="createDept"/>
+        <result column="create_time" property="createTime"/>
+    </resultMap>
+
+
+    <select id="selectOrderStatusChangePage" resultMap="orderStatusChangeResultMap">
+        select * from store_order_status_change where is_deleted = 0
+    </select>
+
+</mapper>

+ 42 - 0
blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderStockChangeMapper.java

@@ -0,0 +1,42 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.mapper;
+
+import com.store.goods.entity.OrderStockChange;
+import com.store.goods.vo.OrderStockChangeVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ * 库存变动表 Mapper 接口
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+public interface OrderStockChangeMapper extends BaseMapper<OrderStockChange> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param orderStockChange
+	 * @return
+	 */
+	List<OrderStockChangeVO> selectOrderStockChangePage(IPage page, OrderStockChangeVO orderStockChange);
+
+}

+ 26 - 0
blade-service/store-goods/src/main/java/com/store/goods/mapper/OrderStockChangeMapper.xml

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.store.goods.mapper.OrderStockChangeMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="orderStockChangeResultMap" type="com.store.goods.entity.OrderStockChange">
+        <id column="id" property="id"/>
+        <result column="order_no" property="orderNo"/>
+        <result column="user_id" property="userId"/>
+        <result column="item_id" property="itemId"/>
+        <result column="user_real_name" property="userRealName"/>
+        <result column="operation_type" property="operationType"/>
+        <result column="before_stock" property="beforeStock"/>
+        <result column="after_stock" property="afterStock"/>
+        <result column="version" property="version"/>
+        <result column="create_user" property="createUser"/>
+        <result column="create_dept" property="createDept"/>
+        <result column="create_time" property="createTime"/>
+    </resultMap>
+
+
+    <select id="selectOrderStockChangePage" resultMap="orderStockChangeResultMap">
+        select * from store_order_stock_change where is_deleted = 0
+    </select>
+
+</mapper>

+ 41 - 0
blade-service/store-goods/src/main/java/com/store/goods/service/IOrderAddressService.java

@@ -0,0 +1,41 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.service;
+
+import com.store.goods.entity.OrderAddress;
+import com.store.goods.vo.OrderAddressVO;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 订单收货地址表 服务类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+public interface IOrderAddressService extends IService<OrderAddress> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param orderAddress
+	 * @return
+	 */
+	IPage<OrderAddressVO> selectOrderAddressPage(IPage<OrderAddressVO> page, OrderAddressVO orderAddress);
+
+}

+ 41 - 0
blade-service/store-goods/src/main/java/com/store/goods/service/IOrderService.java

@@ -0,0 +1,41 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.service;
+
+import com.store.goods.entity.Order;
+import com.store.goods.vo.OrderVO;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 订单表 服务类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+public interface IOrderService extends IService<Order> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param order
+	 * @return
+	 */
+	IPage<OrderVO> selectOrderPage(IPage<OrderVO> page, OrderVO order);
+
+}

+ 41 - 0
blade-service/store-goods/src/main/java/com/store/goods/service/IOrderStatusChangeService.java

@@ -0,0 +1,41 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.service;
+
+import com.store.goods.entity.OrderStatusChange;
+import com.store.goods.vo.OrderStatusChangeVO;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 订单状态变动表 服务类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+public interface IOrderStatusChangeService extends IService<OrderStatusChange> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param orderStatusChange
+	 * @return
+	 */
+	IPage<OrderStatusChangeVO> selectOrderStatusChangePage(IPage<OrderStatusChangeVO> page, OrderStatusChangeVO orderStatusChange);
+
+}

+ 41 - 0
blade-service/store-goods/src/main/java/com/store/goods/service/IOrderStockChangeService.java

@@ -0,0 +1,41 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.service;
+
+import com.store.goods.entity.OrderStockChange;
+import com.store.goods.vo.OrderStockChangeVO;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 库存变动表 服务类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+public interface IOrderStockChangeService extends IService<OrderStockChange> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param orderStockChange
+	 * @return
+	 */
+	IPage<OrderStockChangeVO> selectOrderStockChangePage(IPage<OrderStockChangeVO> page, OrderStockChangeVO orderStockChange);
+
+}

+ 41 - 0
blade-service/store-goods/src/main/java/com/store/goods/service/impl/OrderAddressServiceImpl.java

@@ -0,0 +1,41 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.service.impl;
+
+import com.store.goods.entity.OrderAddress;
+import com.store.goods.vo.OrderAddressVO;
+import com.store.goods.mapper.OrderAddressMapper;
+import com.store.goods.service.IOrderAddressService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 订单收货地址表 服务实现类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Service
+public class OrderAddressServiceImpl extends ServiceImpl<OrderAddressMapper, OrderAddress> implements IOrderAddressService {
+
+	@Override
+	public IPage<OrderAddressVO> selectOrderAddressPage(IPage<OrderAddressVO> page, OrderAddressVO orderAddress) {
+		return page.setRecords(baseMapper.selectOrderAddressPage(page, orderAddress));
+	}
+
+}

+ 41 - 0
blade-service/store-goods/src/main/java/com/store/goods/service/impl/OrderServiceImpl.java

@@ -0,0 +1,41 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.service.impl;
+
+import com.store.goods.entity.Order;
+import com.store.goods.vo.OrderVO;
+import com.store.goods.mapper.OrderMapper;
+import com.store.goods.service.IOrderService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 订单表 服务实现类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Service
+public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements IOrderService {
+
+	@Override
+	public IPage<OrderVO> selectOrderPage(IPage<OrderVO> page, OrderVO order) {
+		return page.setRecords(baseMapper.selectOrderPage(page, order));
+	}
+
+}

+ 41 - 0
blade-service/store-goods/src/main/java/com/store/goods/service/impl/OrderStatusChangeServiceImpl.java

@@ -0,0 +1,41 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.service.impl;
+
+import com.store.goods.entity.OrderStatusChange;
+import com.store.goods.vo.OrderStatusChangeVO;
+import com.store.goods.mapper.OrderStatusChangeMapper;
+import com.store.goods.service.IOrderStatusChangeService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 订单状态变动表 服务实现类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Service
+public class OrderStatusChangeServiceImpl extends ServiceImpl<OrderStatusChangeMapper, OrderStatusChange> implements IOrderStatusChangeService {
+
+	@Override
+	public IPage<OrderStatusChangeVO> selectOrderStatusChangePage(IPage<OrderStatusChangeVO> page, OrderStatusChangeVO orderStatusChange) {
+		return page.setRecords(baseMapper.selectOrderStatusChangePage(page, orderStatusChange));
+	}
+
+}

+ 41 - 0
blade-service/store-goods/src/main/java/com/store/goods/service/impl/OrderStockChangeServiceImpl.java

@@ -0,0 +1,41 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.store.goods.service.impl;
+
+import com.store.goods.entity.OrderStockChange;
+import com.store.goods.vo.OrderStockChangeVO;
+import com.store.goods.mapper.OrderStockChangeMapper;
+import com.store.goods.service.IOrderStockChangeService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 库存变动表 服务实现类
+ *
+ * @author BladeX
+ * @since 2021-11-24
+ */
+@Service
+public class OrderStockChangeServiceImpl extends ServiceImpl<OrderStockChangeMapper, OrderStockChange> implements IOrderStockChangeService {
+
+	@Override
+	public IPage<OrderStockChangeVO> selectOrderStockChangePage(IPage<OrderStockChangeVO> page, OrderStockChangeVO orderStockChange) {
+		return page.setRecords(baseMapper.selectOrderStockChangePage(page, orderStockChange));
+	}
+
+}