|
@@ -12,6 +12,7 @@ import com.hz.employmentsite.util.CalculateUtils;
|
|
|
import com.hz.employmentsite.util.DesUtils;
|
|
|
import com.hz.employmentsite.util.StringUtils;
|
|
|
import com.hz.employmentsite.vo.jobUserManager.*;
|
|
|
+import jdk.jfr.consumer.RecordedObject;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -178,7 +179,16 @@ public class RecommendMgtServiceImpl implements RecommendMgtService {
|
|
|
String userName, Integer type, Integer cultureRank, Integer keyPersonType,
|
|
|
String parentProfessionID, Integer workYear,Integer minSalary,Integer maxSalary) {
|
|
|
PageHelper.startPage(page, rows);
|
|
|
- List<RecommendJobVo> list = recommendMgtCQuery.getRecommendJobList(postID, professionID, userName, type, cultureRank, keyPersonType, parentProfessionID, workYear, minSalary, maxSalary);
|
|
|
+ List<String> recommendedJobHuntIDList = new ArrayList<>();
|
|
|
+ PcRecommendMgtExample recommendMgtExp = new PcRecommendMgtExample();
|
|
|
+ recommendMgtExp.or().andPostIDEqualTo(postID);
|
|
|
+ var recommendedList = pcRecommendMgtMapper.selectByExample(recommendMgtExp);
|
|
|
+ if( recommendedList.size()>0){
|
|
|
+ for(PcRecommendMgt curRecommended:recommendedList){
|
|
|
+ recommendedJobHuntIDList.add(curRecommended.getJobHuntID());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ List<RecommendJobVo> list = recommendMgtCQuery.getRecommendJobList(postID, professionID, userName, type, cultureRank, keyPersonType, parentProfessionID, workYear, minSalary, maxSalary,stringUtils.ListToInSql(recommendedJobHuntIDList));
|
|
|
list.forEach(x -> {
|
|
|
if (stringUtils.IsNullOrEmpty(x.getRecommendMgtID())) {
|
|
|
x.setRecommendMgtID(UUID.randomUUID().toString());
|
|
@@ -186,6 +196,7 @@ public class RecommendMgtServiceImpl implements RecommendMgtService {
|
|
|
|
|
|
x.setUserMobile(calculateUtils.maskMobile(desUtils.decoderText(x.getUserMobile())));
|
|
|
});
|
|
|
+
|
|
|
PageInfo<RecommendJobVo> result = new PageInfo(list);
|
|
|
return result;
|
|
|
}
|