货物包预测查询去掉默认的租户ID

This commit is contained in:
2026-06-11 23:32:45 +08:00
parent 53678a4a46
commit ce72d87d12
4 changed files with 10 additions and 10 deletions

View File

@@ -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());
}

View File

@@ -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);