开发订单模块
了解希尔排序的基本原理
完成了创建订单的接口的开发与测试。
package com.imooc.mall.Service.impl; import com.imooc.mall.Service.CartService; import com.imooc.mall.Service.OrderService; import com.imooc.mall.common.Constant; import com.imooc.mall.exception.ImoocMallException; import com.imooc.mall.exception.ImoocMallExceptionEnum; import com.imooc.mall.filter.UserFilter; import com.imooc.mall.model.dao.CartMapper; import com.imooc.mall.model.dao.OrderItemMapper; import com.imooc.mall.model.dao.OrderMapper; import com.imooc.mall.model.dao.ProductMapper; import com.imooc.mall.model.pojo.Order; import com.imooc.mall.model.pojo.OrderItem; import com.imooc.mall.model.pojo.Product; import com.imooc.mall.model.request.CreateOrderReq; import com.imooc.mall.model.vo.CartVO; import com.imooc.mall.util.OrderCodeFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework