会销面试线索的意向申请通过信息

This commit is contained in:
feng.li
2024-01-04 17:52:23 +08:00
parent 295a531a0e
commit c36029f188
5 changed files with 65 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
package com.cool.store.dao;
import com.cool.store.dto.exhibition.ExhibitionInterviewInfoDTO;
import com.cool.store.dto.exhibition.ExhibitionLineBaseDTO;
import com.cool.store.dto.exhibition.ExhibitionLineDTO;
import com.cool.store.dto.exhibition.PartnerSignUpDTO;
@@ -177,4 +178,11 @@ public class HyPartnerExhibitionDAO {
}
hyPartnerExhibitionMapper.updateStatusAfterSubmitQualification(Long.parseLong(interviewPlanId));
}
public ExhibitionInterviewInfoDTO getStartInterviewInfo(Long lineId) {
if (lineId == null) {
return null;
}
return hyPartnerExhibitionMapper.getStartInterviewInfo(lineId);
}
}

View File

@@ -1,5 +1,6 @@
package com.cool.store.mapper;
import com.cool.store.dto.exhibition.ExhibitionInterviewInfoDTO;
import com.cool.store.dto.exhibition.ExhibitionLineBaseDTO;
import com.cool.store.dto.exhibition.ExhibitionLineDTO;
import com.cool.store.dto.exhibition.PartnerSignUpDTO;
@@ -136,4 +137,9 @@ public interface HyPartnerExhibitionMapper {
* @return
*/
int updateStatusAfterSubmitQualification(@Param("interviewPlanId") Long interviewPlanId);
/**
* 获取部分会销面试发起人信息
*/
ExhibitionInterviewInfoDTO getStartInterviewInfo(@Param("lineId") Long lineId);
}

View File

@@ -530,4 +530,18 @@
AND interview_plan_id = #{interviewPlanId}
</update>
<select id="getStartInterviewInfo" resultType="com.cool.store.dto.exhibition.ExhibitionInterviewInfoDTO">
SELECT t3.user_id, t3.`name` AS exhibitionInterviewerName, t3.mobile AS exhibitionInterviewerMobile, t1.interview_plan_id AS exhibitionInterviewPlanId, t2.create_time AS exhibitionInterviewTime
FROM
(
SELECT exhibition_id, partner_line_id, interview_plan_id
FROM hy_partner_exhibition
WHERE partner_line_id = #{lineId}
AND participation_status >= 3
AND participation_status != 7
) t1
INNER JOIN hy_partner_interview_plan t2 ON t1.interview_plan_id = t2.id
INNER JOIN enterprise_user t3 ON t2.interviewer = t3.user_id
</select>
</mapper>

View File

@@ -0,0 +1,28 @@
package com.cool.store.dto.exhibition;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author Fun Li 2024/1/4 17:09
* @version 1.0
*/
@Data
public class ExhibitionInterviewInfoDTO {
@ApiModelProperty("相关的会销面试发起人 userId")
private String userId;
@ApiModelProperty("相关的会销面试发起人姓名")
private String exhibitionInterviewerName;
@ApiModelProperty("相关的会销面试发起人手机号")
private String exhibitionInterviewerMobile;
@ApiModelProperty("会销面试计划 id")
private String exhibitionInterviewPlanId;
@ApiModelProperty("会销面试发起时间")
private String exhibitionInterviewTime;
}

View File

@@ -9,6 +9,7 @@ import com.cool.store.constants.RedisConstant;
import com.cool.store.context.LoginUserInfo;
import com.cool.store.dao.*;
import com.cool.store.dto.buser.UserPositionAndUserScopeDTO;
import com.cool.store.dto.exhibition.ExhibitionInterviewInfoDTO;
import com.cool.store.dto.log.*;
import com.cool.store.dto.partner.*;
import com.cool.store.entity.*;
@@ -162,6 +163,14 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
HyOpenAreaInfoDO hyOpenAreaInfoDO = hyOpenAreaInfoDAO.selectById(Long.valueOf(partnerLineInfoAndBaseInfoDTO.getWantShopArea()));
partnerLineInfoAndBaseInfoVO.setWantShopAreaName(hyOpenAreaInfoDO.getAreaPath().replace("/", " "));
}
//如果是会销面试的线索意向申请同意人和同意时间取发起会销面试的人和时间
if (partnerLineInfoAndBaseInfoVO.getPassUserName() == null && partnerLineInfoAndBaseInfoVO.getPassTime() == null) {
ExhibitionInterviewInfoDTO exhibitionInterviewInfo = partnerExhibitionDAO.getStartInterviewInfo(partnerLineInfoAndBaseInfoVO.getId());
partnerLineInfoAndBaseInfoVO.setPassUserId(exhibitionInterviewInfo.getUserId());
partnerLineInfoAndBaseInfoVO.setPassUserName(exhibitionInterviewInfo.getExhibitionInterviewerName());
partnerLineInfoAndBaseInfoVO.setPassUserMobile(exhibitionInterviewInfo.getExhibitionInterviewerMobile());
partnerLineInfoAndBaseInfoVO.setPassTime(DateUtil.format(DateUtil.parseDateTime(exhibitionInterviewInfo.getExhibitionInterviewTime()), CoolDateUtils.DATE_FORMAT_SEC_2));
}
return partnerLineInfoAndBaseInfoVO;
}