1.代客下单 添加购物车接口添加id
This commit is contained in:
parent
52410b73f1
commit
26f6af0256
|
|
@ -24,4 +24,5 @@ public class AddCartDTO {
|
||||||
private Integer num;
|
private Integer num;
|
||||||
private boolean isPack;
|
private boolean isPack;
|
||||||
private boolean isGift;
|
private boolean isGift;
|
||||||
|
private Integer cartId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -330,6 +330,11 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||||
.eq(TbCashierCart::getMasterId, "");
|
.eq(TbCashierCart::getMasterId, "");
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (addCartDTO.getCartId() != null) {
|
||||||
|
query.eq(TbCashierCart::getId, addCartDTO.getCartId());
|
||||||
|
}
|
||||||
|
|
||||||
TbCashierCart tbCashierCart = cashierCartMapper.selectOne(query);
|
TbCashierCart tbCashierCart = cashierCartMapper.selectOne(query);
|
||||||
// 首次加入
|
// 首次加入
|
||||||
if (tbCashierCart == null) {
|
if (tbCashierCart == null) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue