Merge remote-tracking branch 'hsayi/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,
|
||||||
|
|||||||
@@ -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