|
@@ -380,9 +380,13 @@ public class RecruitApiController {
|
|
|
@RequestMapping(value = "recruitDetail",method = RequestMethod.POST)
|
|
@RequestMapping(value = "recruitDetail",method = RequestMethod.POST)
|
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "recruitId", value = "招聘信息ID", required = false, paramType = "form"),
|
|
@ApiImplicitParam(name = "recruitId", value = "招聘信息ID", required = false, paramType = "form"),
|
|
|
|
|
+ @ApiImplicitParam(name = "isRead", value = "是否已读(1为已读", required = false, paramType = "form"),
|
|
|
|
|
+ @ApiImplicitParam(name = "jerId", value = "关联表ID", required = false, paramType = "form"),
|
|
|
})
|
|
})
|
|
|
public MessageResult<Map> recruitDetail(
|
|
public MessageResult<Map> recruitDetail(
|
|
|
@RequestParam(value="recruitId",defaultValue="") String recruitId,
|
|
@RequestParam(value="recruitId",defaultValue="") String recruitId,
|
|
|
|
|
+ @RequestParam(value="isRead",defaultValue="0") String isRead,
|
|
|
|
|
+ @RequestParam(value="jerId",defaultValue="") String jerId,
|
|
|
HttpServletRequest request){
|
|
HttpServletRequest request){
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
try {
|
|
try {
|
|
@@ -430,6 +434,15 @@ public class RecruitApiController {
|
|
|
if(recruitPersonRelation != null){
|
|
if(recruitPersonRelation != null){
|
|
|
isJoin = true;
|
|
isJoin = true;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if("1".equals(isRead)) {
|
|
|
|
|
+ JobEnterpriseRelation jobEnterpriseRelation = jobEnterpriseRelationService.get(jerId);
|
|
|
|
|
+ if(jobEnterpriseRelation != null) {
|
|
|
|
|
+ jobEnterpriseRelation.setIsRead(true);
|
|
|
|
|
+ jobEnterpriseRelation.setUpdateTime(new Date());
|
|
|
|
|
+ jobEnterpriseRelationService.update(jobEnterpriseRelation);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
recruitInformationInfo.setIndustryN(dataDictionaryService.findNameByCatalogNameAndValue("意向行业",recruitInformationInfo.getIndustry()));
|
|
recruitInformationInfo.setIndustryN(dataDictionaryService.findNameByCatalogNameAndValue("意向行业",recruitInformationInfo.getIndustry()));
|
|
@@ -761,6 +774,35 @@ public class RecruitApiController {
|
|
|
return msgResult;
|
|
return msgResult;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @ApiOperation(value="我的收到报名(查未读数量")
|
|
|
|
|
+ @RequestMapping(value = "myReceivedRegistrationNotReadNum",method = RequestMethod.POST)
|
|
|
|
|
+ public MessageResult<Map> myReceivedRegistrationNotReadNum(
|
|
|
|
|
+ @RequestAttribute String subject){
|
|
|
|
|
+
|
|
|
|
|
+ MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
|
|
+ try {
|
|
|
|
|
+
|
|
|
|
|
+ PersonInfo personInfo = personInfoService.get(subject);
|
|
|
|
|
+ if (personInfo == null) {
|
|
|
|
|
+ throw new Exception("未登录");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ Map<String,Object> returnMap = new HashMap<>();
|
|
|
|
|
+ int rprNum = recruitPersonRelationService.findNotReadNumByEnterpriseId(personInfo.getEnterpriseId());
|
|
|
|
|
+ //int jerNum = jobEnterpriseRelationService.findNotReadNumByEnterpriseId(personInfo.getEnterpriseId());
|
|
|
|
|
+
|
|
|
|
|
+ returnMap.put("notReadNum",rprNum);
|
|
|
|
|
+ msgResult.setResult(true);
|
|
|
|
|
+ msgResult.setData(returnMap);
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ msgResult.setResult(false);
|
|
|
|
|
+ msgResult.setMessage(e.getMessage());
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return msgResult;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
@ApiOperation(value="我的共享用工")
|
|
@ApiOperation(value="我的共享用工")
|
|
|
@RequestMapping(value = "myShareWork",method = RequestMethod.POST)
|
|
@RequestMapping(value = "myShareWork",method = RequestMethod.POST)
|