|
|
@@ -4,6 +4,8 @@ import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.UUID;
|
|
|
import javax.annotation.Resource;
|
|
|
+
|
|
|
+import com.jpsoft.employment.modules.job.entity.Recruitment;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import com.jpsoft.employment.modules.job.dao.UserCollectionDAO;
|
|
|
@@ -76,4 +78,13 @@ public class UserCollectionServiceImpl implements UserCollectionService {
|
|
|
public List<UserCollection> findByUserId(String userId){
|
|
|
return userCollectionDAO.findByUserId(userId);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Page<Recruitment> loadUserCollection(Map<String, Object> searchParams, int pageNum, int pageSize, boolean count, List<Sort> sortList) {
|
|
|
+ Page<Recruitment> page = PageHelper.startPage(pageNum, pageSize, count).doSelectPage(() -> {
|
|
|
+ userCollectionDAO.loadUserCollection(searchParams, sortList);
|
|
|
+ });
|
|
|
+
|
|
|
+ return page;
|
|
|
+ }
|
|
|
}
|