|
|
@@ -78,6 +78,7 @@ public class RecruitInformationInfoController {
|
|
|
recruitInformationInfo.setUpdateTime(new Date());
|
|
|
recruitInformationInfo.setStatus("0");
|
|
|
recruitInformationInfo.setBrowseNumber(0);
|
|
|
+ recruitInformationInfo.setIsOnline(true);
|
|
|
|
|
|
int affectCount = recruitInformationInfoService.insert(recruitInformationInfo);
|
|
|
|
|
|
@@ -331,6 +332,45 @@ public class RecruitInformationInfoController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @ApiOperation(value="修改是否在线")
|
|
|
+ @PostMapping("changeIsOnline/{id}")
|
|
|
+ public MessageResult<RecruitInformationInfo> changeIsOnline(@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.getIsOnline()){
|
|
|
+ recruitInformationInfo.setIsOnline(false);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ recruitInformationInfo.setIsOnline(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")
|
|
|
@ApiImplicitParams({
|
|
|
@@ -475,6 +515,7 @@ public class RecruitInformationInfoController {
|
|
|
recruitInformationInfo.setContactsPhone(contactsPhone);
|
|
|
recruitInformationInfo.setWorkArea(workArea);
|
|
|
recruitInformationInfo.setAddress(address);
|
|
|
+ recruitInformationInfo.setIsOnline(true);
|
|
|
|
|
|
|
|
|
//保存新企业
|