|
@@ -331,6 +331,9 @@ public class UserApiController {
|
|
|
DES3 des3 = new DES3();
|
|
|
personInfo.setPassword(des3.encrypt(jwtSecret,"123456"));
|
|
|
personInfo.setStatus("0");
|
|
|
+ personInfo.setIsAnonymous(false);
|
|
|
+ personInfo.setIntention("1");//求职中
|
|
|
+ personInfo.setJobStatus("1");//显示简历
|
|
|
|
|
|
personInfoService.insert(personInfo);
|
|
|
|
|
@@ -471,6 +474,53 @@ public class UserApiController {
|
|
|
return msgResult;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value="修改求职意向(1求职中,2已入职")
|
|
|
+ @RequestMapping(value = "updatePerson",method = RequestMethod.POST)
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "intention", value = "求职意向(1求职中,2已入职", required = false, paramType = "form"),
|
|
|
+ @ApiImplicitParam(name = "isAnonymous", value = "是否匿名", required = false, paramType = "form"),
|
|
|
+ @ApiImplicitParam(name = "jobStatus", value = "简历公开状态", required = false, paramType = "form"),
|
|
|
+ })
|
|
|
+ public MessageResult<Map> updatePerson(
|
|
|
+ @RequestParam(value="intention",defaultValue="") String intention,
|
|
|
+ @RequestParam(value="isAnonymous",defaultValue="") Boolean isAnonymous,
|
|
|
+ @RequestParam(value="jobStatus",defaultValue="") String jobStatus,
|
|
|
+ @RequestAttribute String subject){
|
|
|
+
|
|
|
+ MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
+ try {
|
|
|
+
|
|
|
+ PersonInfo personInfo = personInfoService.get(subject);
|
|
|
+ if (personInfo == null) {
|
|
|
+ throw new Exception("未登录");
|
|
|
+ }
|
|
|
+
|
|
|
+ if(StringUtils.isNotEmpty(intention)){
|
|
|
+ personInfo.setIntention(intention);
|
|
|
+ }
|
|
|
+
|
|
|
+ if(isAnonymous != null){
|
|
|
+ personInfo.setIsAnonymous(isAnonymous);
|
|
|
+ }
|
|
|
+
|
|
|
+ if(StringUtils.isNotEmpty(jobStatus)){
|
|
|
+ personInfo.setJobStatus(jobStatus);
|
|
|
+ }
|
|
|
+
|
|
|
+ personInfo.setUpdateBy(subject);
|
|
|
+ personInfo.setUpdateTime(new Date());
|
|
|
+ personInfoService.update(personInfo);
|
|
|
+
|
|
|
+ msgResult.setResult(true);
|
|
|
+ }catch (Exception e){
|
|
|
+ msgResult.setResult(false);
|
|
|
+ msgResult.setMessage(e.getMessage());
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
+ return msgResult;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@ApiOperation(value="保存登陆记录(免登陆")
|
|
|
@RequestMapping(value = "saveLoginRecord",method = RequestMethod.POST)
|