|
|
@ -52,6 +52,7 @@ import com.engine.organization.util.page.PageUtil;
|
|
|
|
import com.engine.organization.util.tree.SearchTreeUtil;
|
|
|
|
import com.engine.organization.util.tree.SearchTreeUtil;
|
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
import weaver.general.StringUtil;
|
|
|
|
import weaver.general.StringUtil;
|
|
|
|
import weaver.general.Util;
|
|
|
|
import weaver.general.Util;
|
|
|
|
import weaver.hrm.User;
|
|
|
|
import weaver.hrm.User;
|
|
|
@ -170,12 +171,26 @@ public class JobServiceImpl extends Service implements JobService {
|
|
|
|
jobListDTOS = jobListDTOS.stream().sorted(Comparator.comparingDouble(JobListDTO::getShowOrder).reversed()).collect(Collectors.toList());
|
|
|
|
jobListDTOS = jobListDTOS.stream().sorted(Comparator.comparingDouble(JobListDTO::getShowOrder).reversed()).collect(Collectors.toList());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<JobListDTO> subList = PageUtil.subList(param.getCurrent(), param.getPageSize(), jobListDTOS);
|
|
|
|
List<JobListDTO> subList = PageUtil.subList(param.getCurrent(), param.getPageSize(), jobListDTOS);
|
|
|
|
|
|
|
|
//QC
|
|
|
|
|
|
|
|
subList.forEach(jobListDTO -> {
|
|
|
|
|
|
|
|
Map<String, String> data = getImageFileName(jobListDTO.getId());
|
|
|
|
|
|
|
|
jobListDTO.setImageFileName(data.get("imageFileName"));
|
|
|
|
|
|
|
|
jobListDTO.setImageFileId(data.get("imageFileId"));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
pageInfos = new PageInfo<>(user, subList, JobListDTO.class);
|
|
|
|
pageInfos = new PageInfo<>(user, subList, JobListDTO.class);
|
|
|
|
pageInfos.setTotal(jobListDTOS.size());
|
|
|
|
pageInfos.setTotal(jobListDTOS.size());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 组合list
|
|
|
|
// 组合list
|
|
|
|
List<JobListDTO> jobListDTOS = JobBO.buildDTOList(allList);
|
|
|
|
List<JobListDTO> jobListDTOS = JobBO.buildDTOList(allList);
|
|
|
|
List<JobListDTO> subList = PageUtil.subList(param.getCurrent(), param.getPageSize(), jobListDTOS);
|
|
|
|
List<JobListDTO> subList = PageUtil.subList(param.getCurrent(), param.getPageSize(), jobListDTOS);
|
|
|
|
|
|
|
|
//QC
|
|
|
|
|
|
|
|
subList.forEach(jobListDTO -> {
|
|
|
|
|
|
|
|
Map<String, String> data = getImageFileName(jobListDTO.getId());
|
|
|
|
|
|
|
|
jobListDTO.setImageFileName(data.get("imageFileName"));
|
|
|
|
|
|
|
|
jobListDTO.setImageFileId(data.get("imageFileId"));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
pageInfos = new PageInfo<>(user, subList, JobListDTO.class);
|
|
|
|
pageInfos = new PageInfo<>(user, subList, JobListDTO.class);
|
|
|
|
pageInfos.setTotal(jobListDTOS.size());
|
|
|
|
pageInfos.setTotal(jobListDTOS.size());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -786,4 +801,25 @@ public class JobServiceImpl extends Service implements JobService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 获取岗位表(jcl_org_job)新增字段(附件上传)显示值 跳转链接
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private Map<String,String> getImageFileName(Long id){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
|
|
|
String uploadFile = rs.getPropValue("hrmOrganization", "uploadFile");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String,String> data = new HashMap<>(2);
|
|
|
|
|
|
|
|
rs.executeQuery("select b.imagefileid,b.imagefilename from jcl_org_job a \n" +
|
|
|
|
|
|
|
|
" left join imagefile b on a."+uploadFile+" = b.imagefileid\n" +
|
|
|
|
|
|
|
|
" where a.id = ?;",id);
|
|
|
|
|
|
|
|
if (rs.next()) {
|
|
|
|
|
|
|
|
data.put("imageFileName",Util.null2String(rs.getString("imagefilename")));
|
|
|
|
|
|
|
|
data.put("imageFileId",Util.null2String(rs.getString("imagefileid")));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|