|
@@ -10,14 +10,10 @@ import com.citu.module.menduner.system.controller.base.person.PersonMapQueryReqV
|
|
|
import com.citu.module.menduner.system.controller.base.person.PersonQueryReqVO;
|
|
|
import com.citu.module.menduner.system.controller.base.person.info.PersonInfoPageReqVO;
|
|
|
import com.citu.module.menduner.system.controller.base.person.info.PersonInfoRespVO;
|
|
|
-import com.citu.module.menduner.system.dal.dataobject.eduexp.EduExpDO;
|
|
|
import com.citu.module.menduner.system.dal.dataobject.enterprise.EnterpriseTalentPoolDO;
|
|
|
import com.citu.module.menduner.system.dal.dataobject.job.JobInterestedDO;
|
|
|
import com.citu.module.menduner.system.dal.dataobject.person.PersonInfoDO;
|
|
|
-import com.citu.module.menduner.system.dal.dataobject.projectexp.ProjectExpDO;
|
|
|
-import com.citu.module.menduner.system.dal.dataobject.trainexp.TrainExpDO;
|
|
|
-import com.citu.module.menduner.system.dal.dataobject.workexp.WorkExpDO;
|
|
|
-import com.citu.module.menduner.system.util.MdeUserInnerUtils;
|
|
|
+import com.citu.module.menduner.system.util.MdeInnerUtils;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
import java.time.LocalDate;
|
|
@@ -65,7 +61,7 @@ public interface PersonInfoMapper extends BaseMapperX<PersonInfoDO> {
|
|
|
);
|
|
|
|
|
|
// 连接用户表设置vip条件
|
|
|
- MdeUserInnerUtils.joinAndFilterVipUser(query, PersonInfoDO::getUserId);
|
|
|
+ MdeInnerUtils.joinAndFilterVipUser(query, PersonInfoDO::getUserId);
|
|
|
|
|
|
query
|
|
|
.likeIfPresent(PersonInfoDO::getName, reqVO.getName())
|
|
@@ -101,13 +97,15 @@ public interface PersonInfoMapper extends BaseMapperX<PersonInfoDO> {
|
|
|
/**
|
|
|
* 根据用户id和查询条件查询人才信息
|
|
|
**/
|
|
|
- default PageResult<PersonInfoRespVO> queryPage(PersonMapQueryReqVO reqVO, Long[] ids) {
|
|
|
+ default PageResult<PersonInfoRespVO> queryPage(PersonMapQueryReqVO reqVO, Long[] ids,Long enterpriseId) {
|
|
|
MPJLambdaWrapperX<PersonInfoDO> query = new MPJLambdaWrapperX<>();
|
|
|
query.selectAsClass(PersonInfoDO.class, PersonInfoRespVO.class);
|
|
|
query.likeIfPresent(PersonInfoDO::getName, reqVO.getName());
|
|
|
query.eqIfPresent(PersonInfoDO::getSex, reqVO.getSex());
|
|
|
// 连接用户表设置vip条件
|
|
|
- MdeUserInnerUtils.joinAndFilterVipUser(query, PersonInfoDO::getUserId);
|
|
|
+ MdeInnerUtils.joinAndFilterVipUser(query, PersonInfoDO::getUserId);
|
|
|
+ // 过滤屏蔽用户
|
|
|
+ MdeInnerUtils.filterBlockedUsersForEnterprise(query, PersonInfoDO::getUserId,enterpriseId);
|
|
|
if (null != reqVO.getAge()) {
|
|
|
LocalDate now = LocalDate.now(ZoneId.systemDefault());
|
|
|
if (reqVO.getAge().length >= 1) {
|
|
@@ -127,7 +125,7 @@ public interface PersonInfoMapper extends BaseMapperX<PersonInfoDO> {
|
|
|
query.eqIfPresent(PersonInfoDO::getJobStatus, reqVO.getJobStatus());
|
|
|
query.eqIfPresent(PersonInfoDO::getEduType, reqVO.getEduType());
|
|
|
query.eqIfPresent(PersonInfoDO::getExpType, reqVO.getExpType());
|
|
|
- query.inIfPresent(PersonInfoDO::getId, ids);
|
|
|
+ query.inIfPresent(PersonInfoDO::getUserId, ids);
|
|
|
|
|
|
if (null != reqVO.getPay()) {
|
|
|
query.leftJoin(JobInterestedDO.class, JobInterestedDO::getUserId, PersonInfoDO::getUserId);
|
|
@@ -144,14 +142,18 @@ public interface PersonInfoMapper extends BaseMapperX<PersonInfoDO> {
|
|
|
|
|
|
/**
|
|
|
* 根据查询条件查询人才信息
|
|
|
+ * @param enterpriseId 企业id
|
|
|
+ * @param reqVO 查询条件
|
|
|
**/
|
|
|
- default PageResult<PersonInfoRespVO> queryPage(PersonQueryReqVO reqVO) {
|
|
|
+ default PageResult<PersonInfoRespVO> queryPage(PersonQueryReqVO reqVO, Long enterpriseId) {
|
|
|
MPJLambdaWrapperX<PersonInfoDO> query = new MPJLambdaWrapperX<>();
|
|
|
query.distinct();
|
|
|
query.selectAsClass(PersonInfoDO.class, PersonInfoRespVO.class);
|
|
|
|
|
|
// 连接用户表设置vip条件
|
|
|
- MdeUserInnerUtils.joinAndFilterVipUser(query, PersonInfoDO::getUserId);
|
|
|
+ MdeInnerUtils.joinAndFilterVipUser(query, PersonInfoDO::getUserId);
|
|
|
+ // 过滤屏蔽用户
|
|
|
+ MdeInnerUtils.filterBlockedUsersForEnterprise(query, PersonInfoDO::getUserId,enterpriseId);
|
|
|
// 求职意向
|
|
|
query.leftJoin(JobInterestedDO.class, JobInterestedDO::getUserId, PersonInfoDO::getUserId);
|
|
|
|
|
@@ -185,59 +187,27 @@ public interface PersonInfoMapper extends BaseMapperX<PersonInfoDO> {
|
|
|
.or()
|
|
|
.likeIfExists(PersonInfoDO::getForeignName, reqVO.getContent());
|
|
|
|
|
|
-
|
|
|
-//
|
|
|
-//
|
|
|
-// // 教育经历
|
|
|
-// query.leftJoin(EduExpDO.class, EduExpDO::getUserId, PersonInfoDO::getUserId);
|
|
|
-// query.likeIfExists(EduExpDO::getSchoolName, reqVO.getContent())
|
|
|
-// .or()
|
|
|
-// .likeRightIfExists(EduExpDO::getMajor, reqVO.getContent())
|
|
|
-// .or()
|
|
|
-// .eqIfExists(EduExpDO::getEducationType, reqVO.getEduType())
|
|
|
-// .or();
|
|
|
-//
|
|
|
-// // 工作经验
|
|
|
-// query.leftJoin(WorkExpDO.class, WorkExpDO::getUserId, PersonInfoDO::getUserId);
|
|
|
-// query.likeIfExists(WorkExpDO::getEnterpriseName, reqVO.getContent())
|
|
|
-// .or()
|
|
|
-// .likeRightIfExists(WorkExpDO::getPositionName, reqVO.getContent())
|
|
|
-// .or()
|
|
|
-// .likeRightIfExists(WorkExpDO::getDeptName, reqVO.getContent())
|
|
|
-// .or()
|
|
|
-// .likeIfExists(WorkExpDO::getContent, reqVO.getContent())
|
|
|
-// .or()
|
|
|
-// .likeIfExists(WorkExpDO::getAchievement, reqVO.getContent())
|
|
|
-// .or();
|
|
|
-
|
|
|
-// // 项目经验
|
|
|
-// query.leftJoin(ProjectExpDO.class, ProjectExpDO::getUserId, PersonInfoDO::getUserId);
|
|
|
-// query.likeIfExists(ProjectExpDO::getName, reqVO.getContent())
|
|
|
-// .or()
|
|
|
-// .likeIfExists(ProjectExpDO::getContent, reqVO.getContent())
|
|
|
-// .or();
|
|
|
-//
|
|
|
-// // 培训经历
|
|
|
-// query.leftJoin(TrainExpDO.class, TrainExpDO::getUserId, PersonInfoDO::getUserId);
|
|
|
-// query.likeIfExists(TrainExpDO::getOrgName, reqVO.getContent())
|
|
|
-// .or()
|
|
|
-// .likeIfExists(TrainExpDO::getCourse, reqVO.getContent())
|
|
|
-// .or()
|
|
|
-// .likeIfExists(TrainExpDO::getContent, reqVO.getContent())
|
|
|
-// .or();
|
|
|
-
|
|
|
query.orderByDesc(PersonInfoDO::getUpdateTime);
|
|
|
|
|
|
return selectJoinPage(reqVO, PersonInfoRespVO.class, query);
|
|
|
}
|
|
|
|
|
|
- /** 根据id查询人才信息 **/
|
|
|
- default PageResult<PersonInfoRespVO> queryPageById(List<Long> ids, PageParam pageParam) {
|
|
|
+ /**
|
|
|
+ * 根据id查询人才信息
|
|
|
+ * @param ids 人才id集合
|
|
|
+ * @param enterpriseId 操作的企业
|
|
|
+ * @param pageParam 分页
|
|
|
+ * **/
|
|
|
+ default PageResult<PersonInfoRespVO> queryPageById(List<Long> ids,
|
|
|
+ Long enterpriseId,
|
|
|
+ PageParam pageParam) {
|
|
|
MPJLambdaWrapperX<PersonInfoDO> query = new MPJLambdaWrapperX<>();
|
|
|
query.selectAsClass(PersonInfoDO.class, PersonInfoRespVO.class);
|
|
|
query.inIfPresent(PersonInfoDO::getUserId, ids);
|
|
|
// 连接用户表设置vip条件
|
|
|
- MdeUserInnerUtils.joinAndFilterVipUser(query, PersonInfoDO::getUserId);
|
|
|
+ MdeInnerUtils.joinAndFilterVipUser(query, PersonInfoDO::getUserId);
|
|
|
+ // 过滤屏蔽用户
|
|
|
+ MdeInnerUtils.filterBlockedUsersForEnterprise(query, PersonInfoDO::getUserId,enterpriseId);
|
|
|
query.orderByDesc(PersonInfoDO::getUpdateTime);
|
|
|
return selectJoinPage(pageParam, PersonInfoRespVO.class, query);
|
|
|
}
|