|
@@ -68,7 +68,7 @@ public class GoodsDonController {
|
|
|
.last("limit 1")
|
|
.last("limit 1")
|
|
|
.select(GoodsDonSku::getPrice));
|
|
.select(GoodsDonSku::getPrice));
|
|
|
goods.setPrice(goodsDonSku.getPrice());
|
|
goods.setPrice(goodsDonSku.getPrice());
|
|
|
- if (goods.getType() != 3) {
|
|
|
|
|
|
|
+ if (goods.getType() != 3 & goods.getId() != 17 && goods.getId() != 23 && goods.getId() != 24) {
|
|
|
goods.setSoldNum(virtual + orderDonMapper.selectCount(Wrappers.lambdaQuery(OrderDon.class)
|
|
goods.setSoldNum(virtual + orderDonMapper.selectCount(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
.eq(OrderDon::getGoodsId, goods.getId())
|
|
.eq(OrderDon::getGoodsId, goods.getId())
|
|
|
.notIn(OrderDon::getStatus, Constant.noOrderStatus)));
|
|
.notIn(OrderDon::getStatus, Constant.noOrderStatus)));
|
|
@@ -103,7 +103,7 @@ public class GoodsDonController {
|
|
|
});
|
|
});
|
|
|
data.setSpecs(beanSearcher.searchFirst(GoodsDonSpec.class, MapUtils.builder().field(GoodsDonSpec::getGoodsId, data.getId()).build()));
|
|
data.setSpecs(beanSearcher.searchFirst(GoodsDonSpec.class, MapUtils.builder().field(GoodsDonSpec::getGoodsId, data.getId()).build()));
|
|
|
data.setSkuList(beanSearcher.searchAll(GoodsDonSku.class, MapUtils.builder().field(GoodsDonSku::getGoodsId, data.getId()).field(GoodsDonSku::getStatus, true).build()));
|
|
data.setSkuList(beanSearcher.searchAll(GoodsDonSku.class, MapUtils.builder().field(GoodsDonSku::getGoodsId, data.getId()).field(GoodsDonSku::getStatus, true).build()));
|
|
|
- if (data.getId() != 17 && data.getId() != 23) {
|
|
|
|
|
|
|
+ if (data.getId() != 17 && data.getId() != 23 && data.getId() != 24) {
|
|
|
data.setSold(data.getSold() + randomNum);
|
|
data.setSold(data.getSold() + randomNum);
|
|
|
}
|
|
}
|
|
|
SearchResult<OrderComment> orderComments = beanSearcher.search(OrderComment.class,
|
|
SearchResult<OrderComment> orderComments = beanSearcher.search(OrderComment.class,
|