租户id修正

This commit is contained in:
2026-04-29 20:49:53 +08:00
parent 68d0c7ea37
commit 6fc319ac64
4 changed files with 9 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rj.entity.LbAssessmentApply;
import com.rj.mapper.LbAssessmentApplyMapper;
import com.rj.service.ILbAssessmentApplyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
@@ -13,6 +14,7 @@ import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
@Slf4j
@Service
public class LbAssessmentApplyServiceImpl
extends ServiceImpl<LbAssessmentApplyMapper, LbAssessmentApply>
@@ -103,7 +105,7 @@ public class LbAssessmentApplyServiceImpl
@Override
public Map<String, Object> pageQuery(Integer current,
Integer size,
Long tenantId,
String tenantId,
String applicantName,
String applicantPhone,
String colleagueName,
@@ -118,8 +120,8 @@ public class LbAssessmentApplyServiceImpl
}
LambdaQueryWrapper<LbAssessmentApply> queryWrapper = new LambdaQueryWrapper<>();
if (tenantId != null) {
queryWrapper.eq(LbAssessmentApply::getTenantId, tenantId);
if (tenantId != null && !tenantId.trim().isEmpty()) {
queryWrapper.eq(LbAssessmentApply::getTenantId, tenantId.trim());
}
if (applicantName != null && !applicantName.trim().isEmpty()) {
queryWrapper.like(LbAssessmentApply::getApplicantName, applicantName.trim());
@@ -148,6 +150,7 @@ public class LbAssessmentApplyServiceImpl
} catch (Exception e) {
result.put("success", false);
result.put("message", "查询异常:" + e.getMessage());
log.error( "查询异常", e);
return result;
}
}