查询面试详情增加开发主管
This commit is contained in:
@@ -205,4 +205,11 @@ public interface HyPartnerLineInfoMapper {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<HyPartnerLineInfoDO> getLineFollowHistoryList(String partnerId);
|
List<HyPartnerLineInfoDO> getLineFollowHistoryList(String partnerId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据面试计划 id 查询战区 id
|
||||||
|
* @param interviewPlanId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
String getAffiliationZoneIdByInterviewPlanId(String interviewPlanId);
|
||||||
}
|
}
|
||||||
@@ -12,6 +12,9 @@ import lombok.Data;
|
|||||||
@Data
|
@Data
|
||||||
@ApiModel
|
@ApiModel
|
||||||
public class QueryByInterviewPlanIdReq {
|
public class QueryByInterviewPlanIdReq {
|
||||||
@ApiModelProperty("会议编号")
|
@ApiModelProperty("会议计划编号")
|
||||||
private String interviewPlanId;
|
private String interviewPlanId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否是需要查询战区主管的页面", required = true)
|
||||||
|
private Boolean needDevelopmentDirector;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -277,12 +277,13 @@ public class FlowServiceImpl implements FlowService {
|
|||||||
//上传 OSS
|
//上传 OSS
|
||||||
String passImageUrl = ossServer.uploadFileServer(inputStream, "passLetter/" + passCode + ".png");
|
String passImageUrl = ossServer.uploadFileServer(inputStream, "passLetter/" + passCode + ".png");
|
||||||
//计算有效期截止日期
|
//计算有效期截止日期
|
||||||
DateTime expiryDate = DateUtil.offsetDay(passTime, 60);
|
Date expiryDate = DateUtil.offsetDay(passTime, 60);
|
||||||
|
expiryDate = DateUtil.endOfDay(expiryDate);
|
||||||
HyPartnerInterviewDO interviewDO = new HyPartnerInterviewDO();
|
HyPartnerInterviewDO interviewDO = new HyPartnerInterviewDO();
|
||||||
interviewDO.setId(Long.parseLong(interviewId));
|
interviewDO.setId(Long.parseLong(interviewId));
|
||||||
interviewDO.setPassCode(passCode);
|
interviewDO.setPassCode(passCode);
|
||||||
interviewDO.setPassTime(passTime);
|
interviewDO.setPassTime(passTime);
|
||||||
interviewDO.setExpiryDate(expiryDate);
|
interviewDO.setExpiryDate(DateUtil.formatDateTime(expiryDate));
|
||||||
interviewDO.setPassPdfUrl(passPdfUrl);
|
interviewDO.setPassPdfUrl(passPdfUrl);
|
||||||
interviewDO.setPassImageUrl(passImageUrl);
|
interviewDO.setPassImageUrl(passImageUrl);
|
||||||
hyPartnerInterviewMapper.updateByPrimaryKeySelective(interviewDO);
|
hyPartnerInterviewMapper.updateByPrimaryKeySelective(interviewDO);
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import com.cool.store.dto.calendar.UpdateCalendarEventDTO;
|
|||||||
import com.cool.store.dto.calendar.UserCalendarsEventDTO;
|
import com.cool.store.dto.calendar.UserCalendarsEventDTO;
|
||||||
import com.cool.store.dto.message.SendCardMessageDTO;
|
import com.cool.store.dto.message.SendCardMessageDTO;
|
||||||
import com.cool.store.dto.partner.EnterInterviewDto;
|
import com.cool.store.dto.partner.EnterInterviewDto;
|
||||||
|
import com.cool.store.entity.EnterpriseUserDO;
|
||||||
import com.cool.store.entity.HyPartnerInterviewDO;
|
import com.cool.store.entity.HyPartnerInterviewDO;
|
||||||
import com.cool.store.entity.HyPartnerInterviewPlanDO;
|
import com.cool.store.entity.HyPartnerInterviewPlanDO;
|
||||||
import com.cool.store.entity.HyPartnerLineInfoDO;
|
import com.cool.store.entity.HyPartnerLineInfoDO;
|
||||||
@@ -18,10 +19,12 @@ import com.cool.store.enums.WorkflowStatusEnum;
|
|||||||
import com.cool.store.exception.ApiException;
|
import com.cool.store.exception.ApiException;
|
||||||
import com.cool.store.exception.ServiceException;
|
import com.cool.store.exception.ServiceException;
|
||||||
import com.cool.store.http.ISVHttpRequest;
|
import com.cool.store.http.ISVHttpRequest;
|
||||||
|
import com.cool.store.mapper.EnterpriseUserMapper;
|
||||||
import com.cool.store.mapper.HyPartnerInterviewMapper;
|
import com.cool.store.mapper.HyPartnerInterviewMapper;
|
||||||
import com.cool.store.mapper.HyPartnerInterviewPlanMapper;
|
import com.cool.store.mapper.HyPartnerInterviewPlanMapper;
|
||||||
import com.cool.store.mapper.HyPartnerLineInfoMapper;
|
import com.cool.store.mapper.HyPartnerLineInfoMapper;
|
||||||
import com.cool.store.request.*;
|
import com.cool.store.request.*;
|
||||||
|
import com.cool.store.service.EnterpriseUserService;
|
||||||
import com.cool.store.service.HyPartnerInterviewPlanService;
|
import com.cool.store.service.HyPartnerInterviewPlanService;
|
||||||
import com.cool.store.service.InterviewService;
|
import com.cool.store.service.InterviewService;
|
||||||
import com.cool.store.utils.StringUtil;
|
import com.cool.store.utils.StringUtil;
|
||||||
@@ -68,6 +71,10 @@ public class InterviewServiceImpl implements InterviewService {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private HyPartnerLineInfoMapper hyPartnerLineInfoMapper;
|
private HyPartnerLineInfoMapper hyPartnerLineInfoMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EnterpriseUserService enterpriseUserService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<InterviewVO> getInterviewList(GetInterviewListReq request) {
|
public List<InterviewVO> getInterviewList(GetInterviewListReq request) {
|
||||||
List<InterviewVO> interviewList = hyPartnerInterviewPlanMapper.getInterviewList(request);
|
List<InterviewVO> interviewList = hyPartnerInterviewPlanMapper.getInterviewList(request);
|
||||||
@@ -95,6 +102,12 @@ public class InterviewServiceImpl implements InterviewService {
|
|||||||
if (request.getNeedDevelopmentDirector() != null && request.getNeedDevelopmentDirector()) {
|
if (request.getNeedDevelopmentDirector() != null && request.getNeedDevelopmentDirector()) {
|
||||||
//查询所属战区
|
//查询所属战区
|
||||||
String affiliationZoneId = hyPartnerLineInfoMapper.getAffiliationZoneIdByInterviewPlanId(interviewPlanId);
|
String affiliationZoneId = hyPartnerLineInfoMapper.getAffiliationZoneIdByInterviewPlanId(interviewPlanId);
|
||||||
|
if (affiliationZoneId == null) {
|
||||||
|
return vo;
|
||||||
|
}
|
||||||
|
//查询开发主管
|
||||||
|
EnterpriseUserDO development = enterpriseUserService.getDevelopmentByZoneId(Long.parseLong(affiliationZoneId));
|
||||||
|
vo.setDevelopmentDirector(development);
|
||||||
}
|
}
|
||||||
return vo;
|
return vo;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user