会销结束面试
This commit is contained in:
@@ -163,4 +163,11 @@ public class HyPartnerExhibitionDAO {
|
|||||||
}
|
}
|
||||||
hyPartnerExhibitionMapper.updateStatusAfterSubmitIndustry(partnerLineId);
|
hyPartnerExhibitionMapper.updateStatusAfterSubmitIndustry(partnerLineId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void updateStatusAfterFinishInterview(String interviewPlanId) {
|
||||||
|
if (StringUtils.isEmpty(interviewPlanId)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
hyPartnerExhibitionMapper.updateStatusAfterFinishInterview(Long.parseLong(interviewPlanId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,4 +122,11 @@ public interface HyPartnerExhibitionMapper {
|
|||||||
* @param partnerLineId
|
* @param partnerLineId
|
||||||
*/
|
*/
|
||||||
int updateStatusAfterSubmitIndustry(@Param("partnerLineId") Long partnerLineId);
|
int updateStatusAfterSubmitIndustry(@Param("partnerLineId") Long partnerLineId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结束面试后刷线线索报名会销的状态
|
||||||
|
* @param interviewPlanId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
int updateStatusAfterFinishInterview(@Param("interviewPlanId")Long interviewPlanId);
|
||||||
}
|
}
|
||||||
@@ -511,5 +511,12 @@
|
|||||||
AND participation_status = 1
|
AND participation_status = 1
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<update id="updateStatusAfterFinishInterview">
|
||||||
|
UPDATE hy_partner_exhibition
|
||||||
|
SET participation_status = 4
|
||||||
|
WHERE deleted = 0
|
||||||
|
AND participation_status = 3
|
||||||
|
AND interview_plan_id = #{interviewPlanId}
|
||||||
|
</update>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -6,6 +6,7 @@ import com.cool.store.dto.exhibition.ExhibitionEnterInterviewDTO;
|
|||||||
import com.cool.store.dto.exhibition.ExhibitionGroupDTO;
|
import com.cool.store.dto.exhibition.ExhibitionGroupDTO;
|
||||||
import com.cool.store.dto.exhibition.SignUpExhibitionDTO;
|
import com.cool.store.dto.exhibition.SignUpExhibitionDTO;
|
||||||
import com.cool.store.exception.ApiException;
|
import com.cool.store.exception.ApiException;
|
||||||
|
import com.cool.store.request.FinishInterviewReq;
|
||||||
import com.cool.store.vo.EnterInterviewVO;
|
import com.cool.store.vo.EnterInterviewVO;
|
||||||
import com.cool.store.vo.exhibition.*;
|
import com.cool.store.vo.exhibition.*;
|
||||||
import com.github.pagehelper.PageInfo;
|
import com.github.pagehelper.PageInfo;
|
||||||
@@ -26,6 +27,11 @@ public interface ExhibitionService {
|
|||||||
*/
|
*/
|
||||||
EnterInterviewVO startExhibitionInterview(ExhibitionEnterInterviewDTO dto) throws ApiException;
|
EnterInterviewVO startExhibitionInterview(ExhibitionEnterInterviewDTO dto) throws ApiException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结束会销面试
|
||||||
|
* @param request
|
||||||
|
*/
|
||||||
|
void finishInterview(FinishInterviewReq request) throws ApiException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增会销组
|
* 新增会销组
|
||||||
@@ -164,5 +170,4 @@ public interface ExhibitionService {
|
|||||||
* 给被自动结束会销的参会人发短信通知
|
* 给被自动结束会销的参会人发短信通知
|
||||||
*/
|
*/
|
||||||
void sendSMSToExhibitionApplicants();
|
void sendSMSToExhibitionApplicants();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import com.cool.store.http.EventCenterHttpRequest;
|
|||||||
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.request.CreateAppointmentReq;
|
import com.cool.store.request.CreateAppointmentReq;
|
||||||
|
import com.cool.store.request.FinishInterviewReq;
|
||||||
import com.cool.store.service.ExhibitionService;
|
import com.cool.store.service.ExhibitionService;
|
||||||
import com.cool.store.service.InterviewService;
|
import com.cool.store.service.InterviewService;
|
||||||
import com.cool.store.service.WechatMiniAppService;
|
import com.cool.store.service.WechatMiniAppService;
|
||||||
@@ -141,6 +142,7 @@ public class ExhibitionServiceImpl implements ExhibitionService {
|
|||||||
//3. 修改线索参加会销状态
|
//3. 修改线索参加会销状态
|
||||||
HyPartnerExhibitionDO updatePartnerExhibition = new HyPartnerExhibitionDO();
|
HyPartnerExhibitionDO updatePartnerExhibition = new HyPartnerExhibitionDO();
|
||||||
updatePartnerExhibition.setId(hyPartnerExhibitionDO.getId());
|
updatePartnerExhibition.setId(hyPartnerExhibitionDO.getId());
|
||||||
|
updatePartnerExhibition.setInterviewPlanId(interviewPlan.getId());
|
||||||
updatePartnerExhibition.setParticipationStatus(ExhibitionPartnerStatus.INTERVIEWING.getCode());
|
updatePartnerExhibition.setParticipationStatus(ExhibitionPartnerStatus.INTERVIEWING.getCode());
|
||||||
hyPartnerExhibitionDAO.updateByPrimaryKeySelective(updatePartnerExhibition);
|
hyPartnerExhibitionDAO.updateByPrimaryKeySelective(updatePartnerExhibition);
|
||||||
|
|
||||||
@@ -164,6 +166,15 @@ public class ExhibitionServiceImpl implements ExhibitionService {
|
|||||||
return enterInterviewVO;
|
return enterInterviewVO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public void finishInterview(FinishInterviewReq request) throws ApiException {
|
||||||
|
//1. 正常的结束面试逻辑
|
||||||
|
interviewService.finishInterview(request);
|
||||||
|
//2. 更新线索参加会销状态
|
||||||
|
hyPartnerExhibitionDAO.updateStatusAfterFinishInterview(request.getInterviewPlanId());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public Boolean addExhibitionGroup(ExhibitionGroupDTO exhibitionGroupDTO, LoginUserInfo userInfo) throws ApiException {
|
public Boolean addExhibitionGroup(ExhibitionGroupDTO exhibitionGroupDTO, LoginUserInfo userInfo) throws ApiException {
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import com.cool.store.dto.exhibition.ExhibitionEnterInterviewDTO;
|
|||||||
import com.cool.store.dto.exhibition.ExhibitionGroupDTO;
|
import com.cool.store.dto.exhibition.ExhibitionGroupDTO;
|
||||||
import com.cool.store.dto.exhibition.SignUpExhibitionDTO;
|
import com.cool.store.dto.exhibition.SignUpExhibitionDTO;
|
||||||
import com.cool.store.exception.ApiException;
|
import com.cool.store.exception.ApiException;
|
||||||
|
import com.cool.store.request.FinishInterviewReq;
|
||||||
import com.cool.store.response.ResponseResult;
|
import com.cool.store.response.ResponseResult;
|
||||||
import com.cool.store.service.ExhibitionService;
|
import com.cool.store.service.ExhibitionService;
|
||||||
import com.cool.store.vo.EnterInterviewVO;
|
import com.cool.store.vo.EnterInterviewVO;
|
||||||
@@ -88,6 +89,12 @@ public class ExhibitionController {
|
|||||||
return ResponseResult.success(exhibitionService.startExhibitionInterview(dto));
|
return ResponseResult.success(exhibitionService.startExhibitionInterview(dto));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/finish/interview")
|
||||||
|
@ApiOperation("结束面试")
|
||||||
|
public ResponseResult finishInterview(@RequestBody FinishInterviewReq request) throws ApiException {
|
||||||
|
exhibitionService.finishInterview(request);
|
||||||
|
return ResponseResult.success();
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping(value = "/lineListByExhibitionId")
|
@GetMapping(value = "/lineListByExhibitionId")
|
||||||
@ApiOperation("会销报名列表")
|
@ApiOperation("会销报名列表")
|
||||||
|
|||||||
Reference in New Issue
Block a user