|
@@ -12,6 +12,7 @@ import com.hz.employmentsite.vo.jobUserManager.JobUserVo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import javax.print.DocFlavor;
|
|
|
import java.text.ParseException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
@@ -36,6 +37,8 @@ public class JobUserServiceImpl implements JobUserService {
|
|
|
private PcJobhuntMapper pcJobhuntMapper;
|
|
|
@Autowired
|
|
|
private PcPostMapper pcPostMapper;
|
|
|
+ @Autowired
|
|
|
+ private PcSiteUserMapper pcSiteUserMapper;
|
|
|
|
|
|
@Override
|
|
|
public PageInfo<JobUserVo> getList(Integer pageIndex, Integer pageSize,
|
|
@@ -43,10 +46,15 @@ public class JobUserServiceImpl implements JobUserService {
|
|
|
String siteId, String jobStatus,
|
|
|
Integer sexId, Integer educationTypeId,
|
|
|
Integer emphasisTypeId, String createUserId,
|
|
|
- String workTime) {
|
|
|
+ String workTime,String loginUserID) {
|
|
|
PageHelper.startPage(pageIndex, pageSize);
|
|
|
-
|
|
|
- List<JobUserVo> list = jobUserCQuery.selectJobUserList(stringUtils.ListToInSql(jobUserIDList), name, siteId, jobStatus, sexId, educationTypeId, emphasisTypeId, createUserId, workTime);
|
|
|
+ String curLoginUserSiteID = "";
|
|
|
+ if(!stringUtils.IsNullOrEmpty(loginUserID)){
|
|
|
+ PcSiteUserExample siteUserExp = new PcSiteUserExample();
|
|
|
+ siteUserExp.or().andUserIDEqualTo(loginUserID);
|
|
|
+ curLoginUserSiteID = pcSiteUserMapper.selectByExample(siteUserExp).get(0).getSiteID();
|
|
|
+ }
|
|
|
+ List<JobUserVo> list = jobUserCQuery.selectJobUserList(stringUtils.ListToInSql(jobUserIDList), name, siteId, jobStatus, sexId, educationTypeId, emphasisTypeId, createUserId, workTime,curLoginUserSiteID);
|
|
|
|
|
|
PageInfo<JobUserVo> result = new PageInfo(list);
|
|
|
|
|
@@ -55,7 +63,7 @@ public class JobUserServiceImpl implements JobUserService {
|
|
|
|
|
|
@Override
|
|
|
public List<SelectProps> getDataList() {
|
|
|
- var dataList = getList(1, 99999, null, null, null, null, null, null, null, null, null).getList();
|
|
|
+ var dataList = getList(1, 99999, null, null, null, null, null, null, null, null, null,null).getList();
|
|
|
List<SelectProps> dataResult = new ArrayList<>();
|
|
|
for (var item: dataList) {
|
|
|
SelectProps itemResult = new SelectProps();
|
|
@@ -74,7 +82,7 @@ public class JobUserServiceImpl implements JobUserService {
|
|
|
}else{
|
|
|
ids.add(id);
|
|
|
}
|
|
|
- return jobUserCQuery.selectJobUserList(stringUtils.ListToInSql(ids), null, null, null, null, null, null, null, null).stream().findFirst().orElse(null);
|
|
|
+ return jobUserCQuery.selectJobUserList(stringUtils.ListToInSql(ids), null, null, null, null, null, null, null, null,null).stream().findFirst().orElse(null);
|
|
|
}
|
|
|
|
|
|
@Override
|