|
@@ -5,7 +5,6 @@ import com.hz.employmentsite.filter.exception.BaseErrorEnum;
|
|
|
import com.hz.employmentsite.filter.exception.BaseException;
|
|
|
import com.hz.employmentsite.filter.exception.BaseResponse;
|
|
|
import com.hz.employmentsite.filter.exception.RespGenerstor;
|
|
|
-import com.hz.employmentsite.model.PcCompanyExample;
|
|
|
import com.hz.employmentsite.services.service.AccountService;
|
|
|
import com.hz.employmentsite.services.service.companyService.PostService;
|
|
|
import com.hz.employmentsite.util.DateUtils;
|
|
@@ -40,9 +39,12 @@ public class PostController {
|
|
|
@RequestParam(required = false) String companyName,
|
|
|
@RequestParam(required = false) String recordStatus,
|
|
|
@RequestParam(required = false) String companyID,
|
|
|
- @RequestParam(required = false) String loginUserID) { //loginUserID暂用来过滤app的当前登录人驿站的求职人员
|
|
|
+ @RequestParam(required = false) String loginUserID,
|
|
|
+ @RequestParam(required = false) String siteID,
|
|
|
+ @RequestParam(required = false) Date startDate,
|
|
|
+ @RequestParam(required = false) Date endDate) { //loginUserID暂用来过滤app的当前登录人驿站的求职人员
|
|
|
|
|
|
- PageInfo<PostVo> result = postService.getList(pageIndex, pageSize, postIDList, professionName, minCount, maxCount, companyName, recordStatus,companyID,loginUserID);
|
|
|
+ PageInfo<PostVo> result = postService.getList(pageIndex, pageSize, postIDList, professionName, minCount, maxCount, companyName, recordStatus, companyID, loginUserID, siteID, startDate, endDate);
|
|
|
return RespGenerstor.success(result);
|
|
|
}
|
|
|
|
|
@@ -106,7 +108,7 @@ public class PostController {
|
|
|
@GetMapping("/getPostsByCompanyID")
|
|
|
public BaseResponse<List<PostVo>> getPostsByCompanyID(@RequestParam(required = false) String companyId) {
|
|
|
// var dataList = postService.getDataListByCompanyID(companyId);
|
|
|
- PageInfo<PostVo> result = postService.getList(1, 99999, null, null, null, null, null, null, companyId,null);
|
|
|
+ PageInfo<PostVo> result = postService.getList(1, 99999, null, null, null, null, null, null, companyId, null, null, null, null);
|
|
|
return RespGenerstor.success(result.getList());
|
|
|
}
|
|
|
|
|
@@ -137,8 +139,11 @@ public class PostController {
|
|
|
@RequestParam(required = false) Integer minCount,
|
|
|
@RequestParam(required = false) Integer maxCount,
|
|
|
@RequestParam(required = false) String companyName,
|
|
|
- @RequestParam(required = false) String recordStatus ) throws Exception {
|
|
|
- PageInfo<PostVo> result = postService.getList(pageIndex, pageSize, postIDList, professionName, minCount, maxCount, companyName, recordStatus,null,null);
|
|
|
+ @RequestParam(required = false) String recordStatus,
|
|
|
+ @RequestParam(required = false) String siteID,
|
|
|
+ @RequestParam(required = false) Date startDate,
|
|
|
+ @RequestParam(required = false) Date endDate) throws Exception {
|
|
|
+ PageInfo<PostVo> result = postService.getList(pageIndex, pageSize, postIDList, professionName, minCount, maxCount, companyName, recordStatus, null, null, siteID, startDate, endDate);
|
|
|
|
|
|
if (isExport == null || !isExport) {
|
|
|
return RespGenerstor.success(result);
|