结束跟进时删除稽核信息(如果有)

This commit is contained in:
feng.li
2023-07-25 16:34:22 +08:00
parent afa87f648d
commit cebad69c3a
3 changed files with 25 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ public interface HyInspectionMapper {
HyInspectionDO selectByPrimaryKey(Long id);
HyInspectionDO selectByInterviewPlanId(Long interviewPlanId);
int updateByPrimaryKeySelective(HyInspectionDO record);
int updateByPrimaryKey(HyInspectionDO record);

View File

@@ -28,7 +28,18 @@
<include refid="Base_Column_List" />
from hy_inspection
where id = #{id}
and deleted = 0
</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
eu.`name` AS interviewerName,