public void batchDeleteItems(Long inOrderId) {
// 根据主单id删除下面的明细
LambdaQueryWrapper<InboundOrderItem> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(InboundOrderItem::getInOrderId,inOrderId);
inboundOrderItemMapper.delete(wrapper);
// inboundOrderItemMapper.delete(new LambdaQueryChainWrapper<>(inboundOrderItemMapper)
// .eq(InboundOrderItem::getInOrderId,inOrderId));
}
注释部分的代码使用链式的wrapper,导致mybatisplus抛出异常MybatisPlusException: can not use this method for “getEntity“
将链式修改为普通就不在报异常信息