查询开发主管信息
This commit is contained in:
@@ -593,10 +593,10 @@
|
|||||||
|
|
||||||
<!-- 根据面试计划 id 查询战区 id -->
|
<!-- 根据面试计划 id 查询战区 id -->
|
||||||
<select id="getAffiliationZoneIdByInterviewPlanId" resultType="java.lang.String">
|
<select id="getAffiliationZoneIdByInterviewPlanId" resultType="java.lang.String">
|
||||||
SELECT affiliation_zone
|
SELECT want_shop_area
|
||||||
FROM hy_partner_line_info
|
FROM hy_partner_user_info
|
||||||
WHERE id = (
|
WHERE partner_id = (
|
||||||
SELECT partner_line_id
|
SELECT partner_id
|
||||||
FROM hy_partner_interview_plan
|
FROM hy_partner_interview_plan
|
||||||
WHERE id = #{interviewPlanId}
|
WHERE id = #{interviewPlanId}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import com.cool.store.context.CurrentUserHolder;
|
|||||||
import com.cool.store.context.LoginUserInfo;
|
import com.cool.store.context.LoginUserInfo;
|
||||||
import com.cool.store.context.PartnerUserHolder;
|
import com.cool.store.context.PartnerUserHolder;
|
||||||
import com.cool.store.dao.EnterpriseUserDAO;
|
import com.cool.store.dao.EnterpriseUserDAO;
|
||||||
|
import com.cool.store.dao.HyIntendDevMappingDAO;
|
||||||
import com.cool.store.dao.HyInterviewDAO;
|
import com.cool.store.dao.HyInterviewDAO;
|
||||||
import com.cool.store.dto.calendar.CreateCalendarEventDTO;
|
import com.cool.store.dto.calendar.CreateCalendarEventDTO;
|
||||||
import com.cool.store.dto.calendar.DeleteCalendarEventDTO;
|
import com.cool.store.dto.calendar.DeleteCalendarEventDTO;
|
||||||
@@ -46,6 +47,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
@@ -107,6 +109,9 @@ public class InterviewServiceImpl implements InterviewService {
|
|||||||
return interviewList;
|
return interviewList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
HyIntendDevMappingDAO hyIntendDevMappingDAO;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public InterviewVO getInterviewInfo(QueryByInterviewPlanIdReq request) throws ApiException {
|
public InterviewVO getInterviewInfo(QueryByInterviewPlanIdReq request) throws ApiException {
|
||||||
String interviewPlanId = request.getInterviewPlanId();
|
String interviewPlanId = request.getInterviewPlanId();
|
||||||
@@ -135,12 +140,14 @@ public class InterviewServiceImpl implements InterviewService {
|
|||||||
//查询开发主管信息
|
//查询开发主管信息
|
||||||
if (request.getNeedDevelopmentDirector() != null && request.getNeedDevelopmentDirector()) {
|
if (request.getNeedDevelopmentDirector() != null && request.getNeedDevelopmentDirector()) {
|
||||||
//查询所属战区
|
//查询所属战区
|
||||||
String affiliationZoneId = hyPartnerLineInfoMapper.getAffiliationZoneIdByInterviewPlanId(interviewPlanId);
|
|
||||||
if (affiliationZoneId == null) {
|
String wantShopArea = hyPartnerLineInfoMapper.getAffiliationZoneIdByInterviewPlanId(interviewPlanId);
|
||||||
|
HyIntendDevelopementMappingDO hyIntendDevelopementMappingDO = hyIntendDevMappingDAO.selectByOpenAreaMappingId(Long.valueOf(wantShopArea), "dev");
|
||||||
|
if (hyIntendDevelopementMappingDO == null) {
|
||||||
return vo;
|
return vo;
|
||||||
}
|
}
|
||||||
//查询开发主管
|
//查询开发主管
|
||||||
EnterpriseUserDO development = enterpriseUserService.getDevelopmentByZoneId(Long.parseLong(affiliationZoneId));
|
EnterpriseUserDO development = enterpriseUserService.getDevelopmentByZoneId(Long.parseLong(hyIntendDevelopementMappingDO.getMappingId()));
|
||||||
vo.setDevelopmentDirector(development);
|
vo.setDevelopmentDirector(development);
|
||||||
}
|
}
|
||||||
return vo;
|
return vo;
|
||||||
|
|||||||
Reference in New Issue
Block a user