/** * 查询id集合 * * @return */ public List<Long> getIds(List<ZpCompanyJobInfo> list) { List<Long> idsList = null; if (list != null && list.size() > 0) { idsList = new ArrayList<Long>(); for (ZpCompanyJobInfo b : list) { idsList.add(b.getJobId()); } } return idsList; }
/** * 添加 公司职位 * * @param p 参数对象 */ public void addZpCompanyJobInfo(ZpCompanyJobInfo p) throws Exception { // 关键字个数 if (!StringUtils.isBlank(p.getZpRequire())) { p.setKeywordStatus(p.getZpRequire().split(",").length); } JLBUtils.dealExpectedYearMoneyBig(p); zpCompanyJobInfoDao.addZpCompanyJobInfo(p); // 添加职位关键字 if (p.getZpRequire() != null && p.getZpRequire().length() > 0) { String requires[] = p.getZpRequire().split(","); for (int i = 0; i < requires.length; i++) { String keyword = requires[i]; ZpCompanyJobDemandKeys b = new ZpCompanyJobDemandKeys(); b.setJobId(p.getJobId()); b.setKeyword(keyword); this.zpCompanyJobDemandKeysDao.addZpCompanyJobDemandKeys(b); } } }