|
@@ -320,11 +320,26 @@ public interface JobAdvertisedMapper extends BaseMapperX<JobAdvertisedDO> {
|
|
|
* @param ids id集合
|
|
|
**/
|
|
|
default List<AppRecruitJobRespVO> list(Long enterpriseId, Long userId, List<Long> ids, String status) {
|
|
|
+
|
|
|
+ return list(enterpriseId,userId,ids,status,(short) 0);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 招聘端 - 根据企业id、用户id查询职位列表,返回简易的职位信息
|
|
|
+ *
|
|
|
+ * @param enterpriseId 企业id
|
|
|
+ * @param userId 用户id
|
|
|
+ * @param ids id集合
|
|
|
+ **/
|
|
|
+ default List<AppRecruitJobRespVO> list(Long enterpriseId, Long userId, List<Long> ids, String status,short exTime) {
|
|
|
MPJLambdaWrapperX<JobAdvertisedDO> query = new MPJLambdaWrapperX<>();
|
|
|
query.selectAll(JobAdvertisedDO.class);
|
|
|
query.eq(JobAdvertisedDO::getEnterpriseId, enterpriseId);
|
|
|
query.eq(JobAdvertisedDO::getUserId, userId);
|
|
|
- notExpireTime(query);
|
|
|
+ if(exTime==0) {
|
|
|
+ notExpireTime(query);
|
|
|
+ }
|
|
|
query.eqIfPresent(JobAdvertisedDO::getStatus, status);
|
|
|
query.inIfPresent(JobAdvertisedDO::getId, ids);
|
|
|
query.orderByDesc(JobAdvertisedDO::getUpdateTime);
|