mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
commit
48f5d3f0e2
@ -103,8 +103,15 @@ public interface BaseMapperX<T> extends BaseMapper<T> {
|
|||||||
update(update, new QueryWrapper<>());
|
update(update, new QueryWrapper<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default void updateBatch(Collection<T> entities) {
|
||||||
|
Db.updateBatchById(entities);
|
||||||
|
}
|
||||||
default void updateBatch(Collection<T> entities, int size) {
|
default void updateBatch(Collection<T> entities, int size) {
|
||||||
Db.updateBatchById(entities, size);
|
Db.updateBatchById(entities, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default void saveOrUpdateBatch(Collection<T> collection) {
|
||||||
|
Db.saveOrUpdateBatch(collection);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
@ -19,10 +19,10 @@ public interface TradeCartMapper extends BaseMapperX<TradeCartDO> {
|
|||||||
|
|
||||||
default TradeCartDO selectByUserIdAndSkuId(Long userId, Long skuId,
|
default TradeCartDO selectByUserIdAndSkuId(Long userId, Long skuId,
|
||||||
Boolean addStatus, Boolean orderStatus) {
|
Boolean addStatus, Boolean orderStatus) {
|
||||||
return selectOne(TradeCartDO::getUserId, userId,
|
return selectOne(new LambdaQueryWrapper<TradeCartDO>().eq(TradeCartDO::getUserId, userId)
|
||||||
TradeCartDO::getSkuId, skuId,
|
.eq(TradeCartDO::getSkuId, skuId)
|
||||||
TradeCartDO::getAddStatus, addStatus,
|
.eq(TradeCartDO::getAddStatus, addStatus)
|
||||||
TradeCartDO::getOrderStatus, orderStatus);
|
.eq(TradeCartDO::getOrderStatus, orderStatus));
|
||||||
}
|
}
|
||||||
|
|
||||||
default Integer selectSumByUserId(Long userId) {
|
default Integer selectSumByUserId(Long userId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user