Merge remote-tracking branch 'hs/dev/feat/partner1.1_20230727' into dev/feat/partner1.1_20230727
This commit is contained in:
@@ -22,6 +22,8 @@ public interface HyInspectionMapper {
|
|||||||
|
|
||||||
HyInspectionDO selectByPrimaryKey(Long id);
|
HyInspectionDO selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
HyInspectionDO selectByInterviewPlanId(Long interviewPlanId);
|
||||||
|
|
||||||
int updateByPrimaryKeySelective(HyInspectionDO record);
|
int updateByPrimaryKeySelective(HyInspectionDO record);
|
||||||
|
|
||||||
int updateByPrimaryKey(HyInspectionDO record);
|
int updateByPrimaryKey(HyInspectionDO record);
|
||||||
|
|||||||
@@ -28,7 +28,18 @@
|
|||||||
<include refid="Base_Column_List" />
|
<include refid="Base_Column_List" />
|
||||||
from hy_inspection
|
from hy_inspection
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
|
and deleted = 0
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<!-- 使用 interviewPlanId 查询面试稽核信息 -->
|
||||||
|
<select id="selectByInterviewPlanId" resultType="com.cool.store.entity.HyInspectionDO">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from hy_inspection
|
||||||
|
where interview_plan_id = #{interviewPlanId}
|
||||||
|
and deleted = 0
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="interviewInspectionGetList" resultType="com.cool.store.vo.interview.InterviewInspectionVO">
|
<select id="interviewInspectionGetList" resultType="com.cool.store.vo.interview.InterviewInspectionVO">
|
||||||
SELECT
|
SELECT
|
||||||
eu.`name` AS interviewerName,
|
eu.`name` AS interviewerName,
|
||||||
|
|||||||
@@ -217,6 +217,7 @@ public class HyPartnerIntentInfoServiceImpl implements HyPartnerIntentInfoServic
|
|||||||
hyPartnerUserInfoDO.setWantShopArea(request.getWantShopArea());
|
hyPartnerUserInfoDO.setWantShopArea(request.getWantShopArea());
|
||||||
hyPartnerUserInfoDO.setAcceptAdjustType(request.getAcceptAdjustType());
|
hyPartnerUserInfoDO.setAcceptAdjustType(request.getAcceptAdjustType());
|
||||||
hyPartnerUserInfoDAO.updateByPrimaryKeySelective(hyPartnerUserInfoDO);
|
hyPartnerUserInfoDAO.updateByPrimaryKeySelective(hyPartnerUserInfoDO);
|
||||||
|
}
|
||||||
// 更新线索状态和招商经理
|
// 更新线索状态和招商经理
|
||||||
//是公海线索 才会修改线索状态与招商经理
|
//是公海线索 才会修改线索状态与招商经理
|
||||||
if (LineStatusEnum.PUBLIC_SEAS.getCode().equals(hyPartnerLineInfoDO.getLineStatus())){
|
if (LineStatusEnum.PUBLIC_SEAS.getCode().equals(hyPartnerLineInfoDO.getLineStatus())){
|
||||||
@@ -233,7 +234,6 @@ public class HyPartnerIntentInfoServiceImpl implements HyPartnerIntentInfoServic
|
|||||||
noticeService.sendFeiShuNotice(FeiShuNoticeMsgEnum.ALLOCATION_INVESTMENT_MANAGER,userIdList,DateUtil.formatDateTime(new Date()),hyPartnerUserInfoDO.getUsername(),hyPartnerUserInfoDO.getMobile());
|
noticeService.sendFeiShuNotice(FeiShuNoticeMsgEnum.ALLOCATION_INVESTMENT_MANAGER,userIdList,DateUtil.formatDateTime(new Date()),hyPartnerUserInfoDO.getUsername(),hyPartnerUserInfoDO.getMobile());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if(!isUpdateIntentInfo){
|
if(!isUpdateIntentInfo){
|
||||||
if(CollectionUtils.isEmpty(userIdList)){
|
if(CollectionUtils.isEmpty(userIdList)){
|
||||||
userIdList.add(hyPartnerLineInfoDO.getInvestmentManager());
|
userIdList.add(hyPartnerLineInfoDO.getInvestmentManager());
|
||||||
|
|||||||
@@ -315,17 +315,10 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
hyPartnerLineInfoDAO.updateByPrimaryKeySelective(hyPartnerLineInfoDO);
|
hyPartnerLineInfoDAO.updateByPrimaryKeySelective(hyPartnerLineInfoDO);
|
||||||
|
|
||||||
|
|
||||||
List<HyPartnerLineInfoDO> lineFollowHistoryList = hyPartnerLineInfoDAO.getLineFollowHistoryList(hyPartnerLineInfo.getPartnerId());
|
|
||||||
HyPartnerLineInfoDO newHyPartnerLineInfoDO = new HyPartnerLineInfoDO();
|
HyPartnerLineInfoDO newHyPartnerLineInfoDO = new HyPartnerLineInfoDO();
|
||||||
newHyPartnerLineInfoDO.setPartnerId(hyPartnerLineInfo.getPartnerId());
|
newHyPartnerLineInfoDO.setPartnerId(hyPartnerLineInfo.getPartnerId());
|
||||||
newHyPartnerLineInfoDO.setWorkflowStage(WorkflowStageEnum.INTENT.getCode());
|
newHyPartnerLineInfoDO.setWorkflowStage(WorkflowStageEnum.INTENT.getCode());
|
||||||
newHyPartnerLineInfoDO.setWorkflowStatus(WorkflowStatusEnum.INTENT_0.getCode());
|
newHyPartnerLineInfoDO.setWorkflowStatus(WorkflowStatusEnum.INTENT_0.getCode());
|
||||||
log.info("lineFollowHistoryList_1:{}",JSONObject.toJSONString(lineFollowHistoryList));
|
|
||||||
if (CollectionUtils.isNotEmpty(lineFollowHistoryList)){
|
|
||||||
String investmentManager = lineFollowHistoryList.get(0).getInvestmentManager();
|
|
||||||
newHyPartnerLineInfoDO.setInvestmentManager(investmentManager);
|
|
||||||
status = LineStatusEnum.PRIVATE_SEAS.getCode();
|
|
||||||
}
|
|
||||||
newHyPartnerLineInfoDO.setLineStatus(status);
|
newHyPartnerLineInfoDO.setLineStatus(status);
|
||||||
hyPartnerLineInfoDAO.insertSelective(newHyPartnerLineInfoDO);
|
hyPartnerLineInfoDAO.insertSelective(newHyPartnerLineInfoDO);
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ import com.cool.store.dto.calendar.DeleteCalendarEventDTO;
|
|||||||
import com.cool.store.dto.calendar.UserCalendarsEventDTO;
|
import com.cool.store.dto.calendar.UserCalendarsEventDTO;
|
||||||
import com.cool.store.dto.log.ReInterviewDTO;
|
import com.cool.store.dto.log.ReInterviewDTO;
|
||||||
import com.cool.store.dto.log.RejectInterviewDTO;
|
import com.cool.store.dto.log.RejectInterviewDTO;
|
||||||
|
import com.cool.store.entity.HyInspectionDO;
|
||||||
import com.cool.store.entity.HyPartnerInterviewDO;
|
import com.cool.store.entity.HyPartnerInterviewDO;
|
||||||
import com.cool.store.enums.*;
|
import com.cool.store.enums.*;
|
||||||
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.HyInspectionMapper;
|
||||||
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.CloseFollowRequest;
|
import com.cool.store.request.CloseFollowRequest;
|
||||||
@@ -48,6 +50,9 @@ public class InterviewWorkFlowService extends WorkFlowBaseService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private HyPartnerInterviewPlanMapper hyPartnerInterviewPlanMapper;
|
private HyPartnerInterviewPlanMapper hyPartnerInterviewPlanMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private HyInspectionMapper inspectionMapper;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private InterviewService interviewService;
|
private InterviewService interviewService;
|
||||||
|
|
||||||
@@ -85,6 +90,13 @@ public class InterviewWorkFlowService extends WorkFlowBaseService {
|
|||||||
if(userCalendarsEventDTO == null ){
|
if(userCalendarsEventDTO == null ){
|
||||||
throw new ApiException(ErrorCodeEnum.FEISHU_DELETE_SCHEDULE_ERROR);
|
throw new ApiException(ErrorCodeEnum.FEISHU_DELETE_SCHEDULE_ERROR);
|
||||||
}
|
}
|
||||||
|
} else if (Integer.parseInt(WorkflowStatusEnum.INTERVIEW_6.getCode()) == interviewBaseInfo.getStatus()) {
|
||||||
|
//删除稽核信息
|
||||||
|
HyInspectionDO rawHyInspection = inspectionMapper.selectByInterviewPlanId(interviewBaseInfo.getInterviewPlanId());
|
||||||
|
HyInspectionDO hyInspection = new HyInspectionDO();
|
||||||
|
hyInspection.setId(rawHyInspection.getId());
|
||||||
|
hyInspection.setDeleted(Boolean.TRUE);
|
||||||
|
inspectionMapper.updateByPrimaryKeySelective(hyInspection);
|
||||||
}
|
}
|
||||||
interviewService.rejectInterviewAndSuspendLine(interviewBaseInfo.getId(),interviewBaseInfo.getInterviewPlanId(),null);
|
interviewService.rejectInterviewAndSuspendLine(interviewBaseInfo.getId(),interviewBaseInfo.getInterviewPlanId(),null);
|
||||||
//记录日志
|
//记录日志
|
||||||
|
|||||||
Reference in New Issue
Block a user