|
|
|
@@ -1,14 +1,12 @@
|
|
|
|
package com.cool.store.service.impl;
|
|
|
|
package com.cool.store.service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
import com.cool.store.dao.HyOpenAreaInfoDAO;
|
|
|
|
import com.cool.store.dao.HyOpenAreaInfoDAO;
|
|
|
|
|
|
|
|
import com.cool.store.dao.LineInfoDAO;
|
|
|
|
import com.cool.store.entity.HyOpenAreaInfoDO;
|
|
|
|
import com.cool.store.entity.HyOpenAreaInfoDO;
|
|
|
|
import com.cool.store.entity.LineInfoDO;
|
|
|
|
import com.cool.store.entity.LineInfoDO;
|
|
|
|
import com.cool.store.entity.MemberQuestionDO;
|
|
|
|
import com.cool.store.entity.MemberQuestionDO;
|
|
|
|
import com.cool.store.entity.PartnerBaseInfoDO;
|
|
|
|
import com.cool.store.entity.PartnerBaseInfoDO;
|
|
|
|
import com.cool.store.enums.ErrorCodeEnum;
|
|
|
|
import com.cool.store.enums.*;
|
|
|
|
import com.cool.store.enums.WorkflowStageEnum;
|
|
|
|
|
|
|
|
import com.cool.store.enums.WorkflowSubStageEnum;
|
|
|
|
|
|
|
|
import com.cool.store.enums.WorkflowSubStageStatusEnum;
|
|
|
|
|
|
|
|
import com.cool.store.exception.ServiceException;
|
|
|
|
import com.cool.store.exception.ServiceException;
|
|
|
|
import com.cool.store.mapper.HyOpenAreaInfoMapper;
|
|
|
|
import com.cool.store.mapper.HyOpenAreaInfoMapper;
|
|
|
|
import com.cool.store.mapper.JoinIntentionMapper;
|
|
|
|
import com.cool.store.mapper.JoinIntentionMapper;
|
|
|
|
@@ -39,7 +37,7 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
|
|
|
|
JoinIntentionMapper joinIntentionMapper;
|
|
|
|
JoinIntentionMapper joinIntentionMapper;
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
LineInfoMapper lineInfoMapper;
|
|
|
|
LineInfoDAO lineInfoDAO;
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
HyOpenAreaInfoMapper openAreaInfoMapper;
|
|
|
|
HyOpenAreaInfoMapper openAreaInfoMapper;
|
|
|
|
@@ -60,7 +58,7 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//todo 目前写死为进入私海
|
|
|
|
//todo 目前写死为进入私海
|
|
|
|
lineInfoParam.setLineStatus(1);
|
|
|
|
lineInfoParam.setLineStatus(1);
|
|
|
|
lineInfoMapper.insertOrUpdate(lineInfoParam);
|
|
|
|
lineInfoDAO.insertOrUpdate(lineInfoParam);
|
|
|
|
|
|
|
|
|
|
|
|
MemberQuestionDO memberQuestionDO = request.toMemberQuestionDO();
|
|
|
|
MemberQuestionDO memberQuestionDO = request.toMemberQuestionDO();
|
|
|
|
memberQuestionDO.setLineId(lineInfoParam.getId());
|
|
|
|
memberQuestionDO.setLineId(lineInfoParam.getId());
|
|
|
|
@@ -78,24 +76,31 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
|
|
|
|
protected Boolean auditPass(Long auditId, LineInfoDO lineInfo) {
|
|
|
|
protected Boolean auditPass(Long auditId, LineInfoDO lineInfo) {
|
|
|
|
WorkflowSubStageEnum workflowSubStageEnum = WorkflowSubStageEnum.getWorkflowSubStageEnum(lineInfo.getWorkflowSubStage());
|
|
|
|
WorkflowSubStageEnum workflowSubStageEnum = WorkflowSubStageEnum.getWorkflowSubStageEnum(lineInfo.getWorkflowSubStage());
|
|
|
|
WorkflowSubStageEnum nextStage = workflowSubStageEnum.getNextStage();
|
|
|
|
WorkflowSubStageEnum nextStage = workflowSubStageEnum.getNextStage();
|
|
|
|
Integer nextStageInitStatus = nextStage.getInitStatus().getCode();
|
|
|
|
lineInfo.setWorkflowSubStage(nextStage.getCode());
|
|
|
|
return null;
|
|
|
|
lineInfo.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.INVITING_INTERVIEWS_10.getCode());
|
|
|
|
|
|
|
|
lineInfoDAO.updateLineInfo(lineInfo);
|
|
|
|
|
|
|
|
return Boolean.TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected Boolean auditReject(Long auditId, LineInfoDO lineInfo) {
|
|
|
|
protected Boolean auditReject(Long auditId, LineInfoDO lineInfo) {
|
|
|
|
return null;
|
|
|
|
lineInfo.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.INTENT_7.getCode());
|
|
|
|
|
|
|
|
lineInfoDAO.updateLineInfo(lineInfo);
|
|
|
|
|
|
|
|
return Boolean.TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected Boolean auditClose(Long auditId, LineInfoDO lineInfo) {
|
|
|
|
protected Boolean auditClose(Long auditId, LineInfoDO lineInfo) {
|
|
|
|
return null;
|
|
|
|
lineInfo.setLineStatus(LineStatusEnum.PUBLIC_SEAS.getCode());
|
|
|
|
|
|
|
|
lineInfoDAO.updateLineInfo(lineInfo);
|
|
|
|
|
|
|
|
return Boolean.TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public PartnerBaseInfoVO getByLineId(Long lineId) {
|
|
|
|
public PartnerBaseInfoVO getByLineId(Long lineId) {
|
|
|
|
MemberQuestionDO result = joinIntentionMapper.getByLineId(lineId);
|
|
|
|
MemberQuestionDO result = joinIntentionMapper.getByLineId(lineId);
|
|
|
|
LineInfoDO byLineId = lineInfoMapper.getByLineId(lineId);
|
|
|
|
LineInfoDO byLineId = lineInfoDAO.getLineInfo(lineId);
|
|
|
|
if (Objects.isNull(result)) {
|
|
|
|
if (Objects.isNull(result)) {
|
|
|
|
throw new ServiceException(LINE_ID_IS_NOT_EXIST);
|
|
|
|
throw new ServiceException(LINE_ID_IS_NOT_EXIST);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|