Commit 89f571bf by 张富康

fix(TalentAnalysisService): 修正省份查询条件逻辑

- 修改条件判断,增加staffPhoneList非空时也执行逻辑
- 统一调整多处代码中省份查询的条件判断
- 确保当省份ID为空但手机号列表不为空时正确处理
1 parent 455a0a0c
...@@ -103,7 +103,7 @@ public class TalentAnalysisService { ...@@ -103,7 +103,7 @@ public class TalentAnalysisService {
String whereentry_datexxxxxx = ""; String whereentry_datexxxxxx = "";
// 按省份查询 // 按省份查询
String wheremobilePhonexxxxxx = ""; String wheremobilePhonexxxxxx = "";
if (ObjectUtil.isNotEmpty(req.getProvinceId())) { if (ObjectUtil.isNotEmpty(req.getProvinceId()) || CollUtil.isNotEmpty(staffPhoneList)) {
String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream() String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream()
.map(key -> "'" + key + "'") // 为每个键添加单引号 .map(key -> "'" + key + "'") // 为每个键添加单引号
.collect(Collectors.toList())); .collect(Collectors.toList()));
...@@ -403,7 +403,7 @@ public class TalentAnalysisService { ...@@ -403,7 +403,7 @@ public class TalentAnalysisService {
String wherezz_statusxxxxxx = ""; String wherezz_statusxxxxxx = "";
// 按省份查询 // 按省份查询
String wheremobilePhonexxxxxx = ""; String wheremobilePhonexxxxxx = "";
if (ObjectUtil.isNotEmpty(req.getProvinceId())) { if (ObjectUtil.isNotEmpty(req.getProvinceId()) || CollUtil.isNotEmpty(staffPhoneList)) {
String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream() String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream()
.map(key -> "'" + key + "'") // 为每个键添加单引号 .map(key -> "'" + key + "'") // 为每个键添加单引号
.collect(Collectors.toList())); .collect(Collectors.toList()));
...@@ -696,7 +696,7 @@ public class TalentAnalysisService { ...@@ -696,7 +696,7 @@ public class TalentAnalysisService {
// 按省份查询 // 按省份查询
String wheremobilePhonexxxxxx = ""; String wheremobilePhonexxxxxx = "";
if (ObjectUtil.isNotEmpty(req.getProvinceId())) { if (ObjectUtil.isNotEmpty(req.getProvinceId()) || CollUtil.isNotEmpty(staffPhoneList)) {
String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream() String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream()
.map(key -> "'" + key + "'") // 为每个键添加单引号 .map(key -> "'" + key + "'") // 为每个键添加单引号
.collect(Collectors.toList())); .collect(Collectors.toList()));
...@@ -855,7 +855,7 @@ public class TalentAnalysisService { ...@@ -855,7 +855,7 @@ public class TalentAnalysisService {
String entry_datexxxxxx = ""; String entry_datexxxxxx = "";
// 按省份查询 // 按省份查询
String wheremobilePhonexxxxxx = ""; String wheremobilePhonexxxxxx = "";
if (ObjectUtil.isNotEmpty(req.getProvinceId())) { if (ObjectUtil.isNotEmpty(req.getProvinceId()) || CollUtil.isNotEmpty(staffPhoneList)) {
String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream() String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream()
.map(key -> "'" + key + "'") // 为每个键添加单引号 .map(key -> "'" + key + "'") // 为每个键添加单引号
.collect(Collectors.toList())); .collect(Collectors.toList()));
...@@ -973,7 +973,7 @@ public class TalentAnalysisService { ...@@ -973,7 +973,7 @@ public class TalentAnalysisService {
String entry_datexxxxxx = ""; String entry_datexxxxxx = "";
// 按省份查询 // 按省份查询
String wheremobilePhonexxxxxx = ""; String wheremobilePhonexxxxxx = "";
if (ObjectUtil.isNotEmpty(req.getProvinceId())) { if (ObjectUtil.isNotEmpty(req.getProvinceId()) || CollUtil.isNotEmpty(staffPhoneList)) {
String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream() String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream()
.map(key -> "'" + key + "'") // 为每个键添加单引号 .map(key -> "'" + key + "'") // 为每个键添加单引号
.collect(Collectors.toList())); .collect(Collectors.toList()));
...@@ -1137,7 +1137,7 @@ public class TalentAnalysisService { ...@@ -1137,7 +1137,7 @@ public class TalentAnalysisService {
// 按省份查询 // 按省份查询
String wheremobilePhonexxxxxx = ""; String wheremobilePhonexxxxxx = "";
if (ObjectUtil.isNotEmpty(req.getProvinceId())) { if (ObjectUtil.isNotEmpty(req.getProvinceId()) || CollUtil.isNotEmpty(staffPhoneList)) {
String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream() String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream()
.map(key -> "'" + key + "'") // 为每个键添加单引号 .map(key -> "'" + key + "'") // 为每个键添加单引号
.collect(Collectors.toList())); .collect(Collectors.toList()));
...@@ -1266,7 +1266,7 @@ public class TalentAnalysisService { ...@@ -1266,7 +1266,7 @@ public class TalentAnalysisService {
String entry_datexxxxxx = ""; String entry_datexxxxxx = "";
// 按省份查询 // 按省份查询
String wheremobilePhonexxxxxx = ""; String wheremobilePhonexxxxxx = "";
if (ObjectUtil.isNotEmpty(req.getProvinceId())) { if (ObjectUtil.isNotEmpty(req.getProvinceId()) || CollUtil.isNotEmpty(staffPhoneList)) {
String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream() String staffPhoneStr = StrUtil.join(",", staffPhoneList.stream()
.map(key -> "'" + key + "'") // 为每个键添加单引号 .map(key -> "'" + key + "'") // 为每个键添加单引号
.collect(Collectors.toList())); .collect(Collectors.toList()));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!