货物包预测查询去掉默认的租户ID
This commit is contained in:
@@ -153,12 +153,12 @@ public class LbBuyAccountServiceImpl
|
||||
}
|
||||
|
||||
LambdaQueryWrapper<LbBuyAccount> queryWrapper = new LambdaQueryWrapper<>();
|
||||
// if (tenantId != null && !tenantId.trim().isEmpty()) {
|
||||
// queryWrapper.eq(LbBuyAccount::getTenantId, tenantId.trim());
|
||||
// }
|
||||
// if (tenantName != null && !tenantName.trim().isEmpty()) {
|
||||
// queryWrapper.like(LbBuyAccount::getTenantName, tenantName.trim());
|
||||
// }
|
||||
if (tenantId != null && !tenantId.trim().isEmpty()) {
|
||||
queryWrapper.eq(LbBuyAccount::getTenantId, tenantId.trim());
|
||||
}
|
||||
if (tenantName != null && !tenantName.trim().isEmpty()) {
|
||||
queryWrapper.like(LbBuyAccount::getTenantName, tenantName.trim());
|
||||
}
|
||||
if (loginAccount != null && !loginAccount.trim().isEmpty()) {
|
||||
queryWrapper.like(LbBuyAccount::getLoginAccount, loginAccount.trim());
|
||||
}
|
||||
|
||||
@@ -843,6 +843,7 @@ public class LbGoodsServiceImpl extends ServiceImpl<LbGoodsMapper, LbGoods> impl
|
||||
private List<LbGoods> loadRushBuyGoodsList(String tid, String accountTag) {
|
||||
LocalDateTime updatedAfter = resolveRushBuyUpdatedAfter();
|
||||
LambdaQueryWrapper<LbGoods> w = new LambdaQueryWrapper<>();
|
||||
w.eq(LbGoods::getTenantId, tid);
|
||||
w.isNotNull(LbGoods::getSellerId);
|
||||
w.gt(LbGoods::getTotalMoney, RUSH_BUY_MIN_TOTAL_MONEY);
|
||||
w.le(LbGoods::getTotalMoney, RUSH_BUY_MAX_TOTAL_MONEY);
|
||||
|
||||
Reference in New Issue
Block a user