|
@@ -290,14 +290,15 @@ public interface JobAdvertisedMapper extends BaseMapperX<JobAdvertisedDO> {
|
|
|
*
|
|
|
* @param enterpriseId 企业id
|
|
|
* @param userId 用户id
|
|
|
+ * @param ids id集合
|
|
|
**/
|
|
|
- default List<AppRecruitJobSimpleRespVO> list(Long enterpriseId, Long userId,List<Long> ids) {
|
|
|
+ default List<AppRecruitJobSimpleRespVO> list(Long enterpriseId, Long userId,List<Long> ids,String status) {
|
|
|
MPJLambdaWrapperX<JobAdvertisedDO> query = new MPJLambdaWrapperX<>();
|
|
|
query.selectAll(JobAdvertisedDO.class);
|
|
|
query.eq(JobAdvertisedDO::getEnterpriseId, enterpriseId);
|
|
|
query.eq(JobAdvertisedDO::getUserId, userId);
|
|
|
notExpireTime(query);
|
|
|
-// query.eq(JobAdvertisedDO::getStatus, JobStatusEnum.ENABLE.getStatus());
|
|
|
+ query.eqIfPresent(JobAdvertisedDO::getStatus, status);
|
|
|
query.inIfPresent(JobAdvertisedDO::getId, ids);
|
|
|
query.orderByDesc(JobAdvertisedDO::getUpdateTime);
|
|
|
return selectJoinList(AppRecruitJobSimpleRespVO.class, query);
|