|
@@ -2,11 +2,14 @@ package com.jpsoft.employment.modules.mobile.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
+import com.alipay.api.domain.CompanyInfo;
|
|
import com.github.pagehelper.Page;
|
|
import com.github.pagehelper.Page;
|
|
import com.jpsoft.employment.config.OSSConfig;
|
|
import com.jpsoft.employment.config.OSSConfig;
|
|
|
|
+import com.jpsoft.employment.modules.base.entity.Company;
|
|
import com.jpsoft.employment.modules.base.entity.MessageNotice;
|
|
import com.jpsoft.employment.modules.base.entity.MessageNotice;
|
|
import com.jpsoft.employment.modules.base.entity.MessageRead;
|
|
import com.jpsoft.employment.modules.base.entity.MessageRead;
|
|
import com.jpsoft.employment.modules.base.entity.UserAuthenticationApprove;
|
|
import com.jpsoft.employment.modules.base.entity.UserAuthenticationApprove;
|
|
|
|
+import com.jpsoft.employment.modules.base.service.CompanyService;
|
|
import com.jpsoft.employment.modules.base.service.MessageNoticeService;
|
|
import com.jpsoft.employment.modules.base.service.MessageNoticeService;
|
|
import com.jpsoft.employment.modules.base.service.MessageReadService;
|
|
import com.jpsoft.employment.modules.base.service.MessageReadService;
|
|
import com.jpsoft.employment.modules.base.service.UserAuthenticationApproveService;
|
|
import com.jpsoft.employment.modules.base.service.UserAuthenticationApproveService;
|
|
@@ -94,6 +97,9 @@ public class MessageNoticeApiController {
|
|
@Autowired
|
|
@Autowired
|
|
private ResumeDeliverRecordService resumeDeliverRecordService;
|
|
private ResumeDeliverRecordService resumeDeliverRecordService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private CompanyService companyService;
|
|
|
|
+
|
|
|
|
|
|
@PostMapping("messageClassify")
|
|
@PostMapping("messageClassify")
|
|
@ApiOperation(value = "消息分类")
|
|
@ApiOperation(value = "消息分类")
|
|
@@ -184,12 +190,6 @@ public class MessageNoticeApiController {
|
|
MessageResult<Map> messageResult = new MessageResult<>();
|
|
MessageResult<Map> messageResult = new MessageResult<>();
|
|
|
|
|
|
try {
|
|
try {
|
|
- JobUser jobUser = jobUserService.get(subject);
|
|
|
|
-
|
|
|
|
- if (jobUser == null) {
|
|
|
|
- throw new Exception("未登录!");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
List<Sort> sortList = new ArrayList<>();
|
|
sortList.add(new Sort("a.create_time","asc"));
|
|
sortList.add(new Sort("a.create_time","asc"));
|
|
|
|
|
|
@@ -236,12 +236,6 @@ public class MessageNoticeApiController {
|
|
MessageResult<Map> messageResult = new MessageResult<>();
|
|
MessageResult<Map> messageResult = new MessageResult<>();
|
|
|
|
|
|
try {
|
|
try {
|
|
- JobUser jobUser = jobUserService.get(subject);
|
|
|
|
-
|
|
|
|
- if (jobUser == null) {
|
|
|
|
- throw new Exception("未登录!");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
MessageNotice mc = messageNoticeService.get(messageId);
|
|
MessageNotice mc = messageNoticeService.get(messageId);
|
|
if(mc == null){
|
|
if(mc == null){
|
|
throw new Exception("查询错误!");
|
|
throw new Exception("查询错误!");
|
|
@@ -250,6 +244,14 @@ public class MessageNoticeApiController {
|
|
User createUser = userService.get(mc.getCreateBy());
|
|
User createUser = userService.get(mc.getCreateBy());
|
|
mc.setCreateByN(createUser.getRealName());
|
|
mc.setCreateByN(createUser.getRealName());
|
|
|
|
|
|
|
|
+ Company company = companyService.get(createUser.getCompanyId());
|
|
|
|
+ if(company != null){
|
|
|
|
+ String scaleName = dataDictionaryService.getName(company.getScale());
|
|
|
|
+ company.setScaleName(scaleName);
|
|
|
|
+ String industryN = dataDictionaryService.getName(company.getIndustry());
|
|
|
|
+ company.setIndustryName(industryN);
|
|
|
|
+ }
|
|
|
|
+
|
|
MessageRead messageRead = messageReadService.findByMIdAndUserId(mc.getId(),subject);
|
|
MessageRead messageRead = messageReadService.findByMIdAndUserId(mc.getId(),subject);
|
|
Boolean isNeedAgree = false;
|
|
Boolean isNeedAgree = false;
|
|
Boolean isAgree = false;
|
|
Boolean isAgree = false;
|
|
@@ -280,7 +282,7 @@ public class MessageNoticeApiController {
|
|
returnMap.put("messageDetail",mc);
|
|
returnMap.put("messageDetail",mc);
|
|
returnMap.put("isNeedAgree",isNeedAgree);
|
|
returnMap.put("isNeedAgree",isNeedAgree);
|
|
returnMap.put("isAgree",isAgree);
|
|
returnMap.put("isAgree",isAgree);
|
|
-
|
|
|
|
|
|
+ returnMap.put("company",company);
|
|
messageResult.setData(returnMap);
|
|
messageResult.setData(returnMap);
|
|
messageResult.setResult(true);
|
|
messageResult.setResult(true);
|
|
messageResult.setCode(200);
|
|
messageResult.setCode(200);
|