|
@@ -314,6 +314,7 @@ public class RecruitInformationInfoController {
|
|
|
map.put("address",recruitInformationInfo.getAddress());
|
|
|
map.put("browseNumber",recruitInformationInfo.getBrowseNumber());
|
|
|
map.put("ageRequirement",recruitInformationInfo.getAgeRequirement());
|
|
|
+ map.put("isTopping",recruitInformationInfo.getIsTopping());
|
|
|
|
|
|
String statusN;
|
|
|
if ("1".equals(recruitInformationInfo.getStatus())) {
|
|
@@ -367,7 +368,7 @@ public class RecruitInformationInfoController {
|
|
|
Row rowTitle = sheet.createRow(0);
|
|
|
|
|
|
String[] titles = new String[]{"序号", "企业名称", "行业",
|
|
|
- "职位名称", "薪资待遇","结算方式","招聘人数",
|
|
|
+ "职位名称", "薪资待遇","结算方式","年龄要求","招聘人数",
|
|
|
"联系人","联系电话","工作地区","详细地址","浏览次数","审核状态","是否上架"};
|
|
|
|
|
|
for (int i = 0; i < titles.length; i++) {
|
|
@@ -387,6 +388,7 @@ public class RecruitInformationInfoController {
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("positionName"), ""));
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("salary"), ""));
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("settlementMethodN"), ""));
|
|
|
+ row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("ageRequirement"), ""));
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("recruitingNumbers"), ""));
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("contacts"), ""));
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("contactsPhone"), ""));
|
|
@@ -485,6 +487,45 @@ public class RecruitInformationInfoController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @ApiOperation(value="修改是否置顶")
|
|
|
+ @PostMapping("changeTopping/{id}")
|
|
|
+ public MessageResult<RecruitInformationInfo> changeTopping(@PathVariable("id") String id,@RequestAttribute String subject){
|
|
|
+ MessageResult<RecruitInformationInfo> msgResult = new MessageResult<>();
|
|
|
+
|
|
|
+ try {
|
|
|
+
|
|
|
+ RecruitInformationInfo recruitInformationInfo = recruitInformationInfoService.get(id);
|
|
|
+ recruitInformationInfo.setUpdateBy(subject);
|
|
|
+ recruitInformationInfo.setUpdateTime(new Date());
|
|
|
+
|
|
|
+ if(recruitInformationInfo.getIsTopping()){
|
|
|
+ recruitInformationInfo.setIsTopping(false);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ recruitInformationInfo.setIsTopping(true);
|
|
|
+ }
|
|
|
+
|
|
|
+ int affectCount = recruitInformationInfoService.update(recruitInformationInfo);
|
|
|
+
|
|
|
+ if (affectCount > 0) {
|
|
|
+ msgResult.setResult(true);
|
|
|
+ } else {
|
|
|
+ msgResult.setResult(false);
|
|
|
+ msgResult.setMessage("数据库修改失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch(Exception ex){
|
|
|
+ logger.error(ex.getMessage(),ex);
|
|
|
+
|
|
|
+ msgResult.setResult(false);
|
|
|
+ msgResult.setMessage(ex.getMessage());
|
|
|
+ }
|
|
|
+
|
|
|
+ return msgResult;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
@ApiOperation(value = "导入招聘信息")
|
|
|
@PostMapping("importXls")
|
|
@@ -501,7 +542,7 @@ public class RecruitInformationInfoController {
|
|
|
|
|
|
int affectCount = 0;
|
|
|
int failCount = 0;
|
|
|
- int validateColIndex = 11;
|
|
|
+ int validateColIndex = 12;
|
|
|
|
|
|
int count = sheet1.getLastRowNum();
|
|
|
|
|
@@ -519,7 +560,7 @@ public class RecruitInformationInfoController {
|
|
|
String contactsPhone = poiUtils.getCellValue(sheetIndex, rowIndex, 8).toString().replace(" ", "");
|
|
|
String workArea = poiUtils.getCellValue(sheetIndex, rowIndex, 9).toString().replace(" ", "");
|
|
|
String address = poiUtils.getCellValue(sheetIndex, rowIndex, 10).toString().replace(" ", "");
|
|
|
-
|
|
|
+ String ageRequirement = poiUtils.getCellValue(sheetIndex, rowIndex, 11).toString().replace(" ", "");
|
|
|
|
|
|
if (StringUtils.isEmpty(enterpriseName)) {
|
|
|
sheet1.getRow(rowIndex).createCell(validateColIndex).setCellValue("未填写企业名称!");
|
|
@@ -631,6 +672,7 @@ public class RecruitInformationInfoController {
|
|
|
recruitInformationInfo.setWorkArea(workArea);
|
|
|
recruitInformationInfo.setAddress(address);
|
|
|
recruitInformationInfo.setIsOnline(true);
|
|
|
+ recruitInformationInfo.setAgeRequirement(ageRequirement);
|
|
|
|
|
|
|
|
|
//保存新企业
|