|
|
@@ -41,7 +41,6 @@ import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
-import java.math.BigDecimal;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
@@ -465,10 +464,10 @@ public class UserController {
|
|
|
}
|
|
|
}
|
|
|
if (e.getIsSkuRate()) {
|
|
|
- BigDecimal price = e.getPrice();
|
|
|
GoodsDonSku sku = skuMapper.selectOne(Wrappers.lambdaQuery(GoodsDonSku.class)
|
|
|
.eq(GoodsDonSku::getGoodsId, e.getGoodsId())
|
|
|
- .eq(GoodsDonSku::getPrice, price)
|
|
|
+ .eq(GoodsDonSku::getStatus, 1)
|
|
|
+ .orderByAsc(GoodsDonSku::getPrice)
|
|
|
.last("limit 1"));
|
|
|
//先获取价格最低的规格对应的 比例
|
|
|
//渠道
|