jpa传入字段是空如何不过滤_在JPA中处理空或null集合参数

Spring数据以MealplanCalls.getRestaurants(userId: userId) { (restaurantList, error) in

if let error = error {

self.showError(show: "Error", display: error)

} else {

var currentPlansArray = [Mealplan]()

var restaurantIndex = 0

let group = DispatchGroup()

while (restaurantIndex < restaurantList.count) {

group.enter()

MealplanCalls.getPlans(restaurantId: restaurantList[restaurantIndex]) { (mealplans, error) in

guard let mealplans = mealplans, mealplans.count > 0 else { return }

self.planArray.append(contentsOf: mealplans)

print("empty : \(self.planArray.count), \(self.planArray)")

if let error = error {

self.showError(show: "Error", display: error)

}

group.leave()

currentPlansArray.removeAll()

restaurantIndex += 1

}

}

group.notify(queue: DispatchQueue.main, execute: {

self.planTable.reloadData()

})

}

} + painter.fillRect(event->rect(), QColor(0, 0, 0));

painter.drawImage(QRectF(event->rect().x(), event->rect().y() + 30, 512, 512), getGameBoardImage());

//...rendering other model components

painter.setBrush(QBrush(QColor(255, 255, 255)));

//painter.setFont(getGameFont());

painter.setFont(QFont("Times New Roman", 16, QFont::Bold));

painter.drawText(0, 0, "HI-SCORE");的形式提供了便利,因此查询可能类似于:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值