|
@@ -5,18 +5,14 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.sqx.common.utils.Result;
|
|
import com.sqx.common.utils.Result;
|
|
|
-import com.sqx.modules.app.entity.UserEntity;
|
|
|
|
|
import com.sqx.modules.app.service.UserService;
|
|
import com.sqx.modules.app.service.UserService;
|
|
|
import com.sqx.modules.common.service.CommonInfoService;
|
|
import com.sqx.modules.common.service.CommonInfoService;
|
|
|
import com.sqx.modules.intention.dao.IntentionDao;
|
|
import com.sqx.modules.intention.dao.IntentionDao;
|
|
|
import com.sqx.modules.intention.entity.Intention;
|
|
import com.sqx.modules.intention.entity.Intention;
|
|
|
import com.sqx.modules.intention.service.IntentionService;
|
|
import com.sqx.modules.intention.service.IntentionService;
|
|
|
-import com.sqx.modules.resumes.entity.RuleClassify;
|
|
|
|
|
import com.sqx.modules.resumes.service.RuleClassifyService;
|
|
import com.sqx.modules.resumes.service.RuleClassifyService;
|
|
|
-import com.sqx.modules.resumes.service.RulePostService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
-import weixin.popular.bean.datacube.article.Usershare;
|
|
|
|
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.Collections;
|
|
import java.util.Collections;
|
|
@@ -50,14 +46,8 @@ public class IntentionServiceImpl extends ServiceImpl<IntentionDao, Intention> i
|
|
|
}
|
|
}
|
|
|
@Override
|
|
@Override
|
|
|
public IPage<Intention> getIntentionList(Integer page, Integer limit, Intention intention) {
|
|
public IPage<Intention> getIntentionList(Integer page, Integer limit, Intention intention) {
|
|
|
- Page<Intention> pages;
|
|
|
|
|
- if (page != null && limit != null) {
|
|
|
|
|
- pages = new Page<>(page, limit);
|
|
|
|
|
- } else {
|
|
|
|
|
- pages = new Page<>();
|
|
|
|
|
- pages.setSize(-1);
|
|
|
|
|
- }
|
|
|
|
|
- return baseMapper.selectPage(pages, new QueryWrapper<>(intention).orderByDesc("create_time"));
|
|
|
|
|
|
|
+ IPage<Intention> pages=new Page<>(page,limit);
|
|
|
|
|
+ return baseMapper.getIntentionList(pages);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|