|
|
@ -3,6 +3,7 @@ package com.project.question.mapper; |
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|
|
import com.project.question.domain.entity.QuestionKpRelEntity; |
|
|
import com.project.question.domain.entity.QuestionKpRelEntity; |
|
|
import org.apache.ibatis.annotations.Mapper; |
|
|
import org.apache.ibatis.annotations.Mapper; |
|
|
|
|
|
import org.apache.ibatis.annotations.Options; |
|
|
import org.apache.ibatis.annotations.Select; |
|
|
import org.apache.ibatis.annotations.Select; |
|
|
import org.springframework.data.repository.query.Param; |
|
|
import org.springframework.data.repository.query.Param; |
|
|
|
|
|
|
|
|
@ -21,6 +22,7 @@ public interface QuestionKpRelMapper extends BaseMapper<QuestionKpRelEntity> { |
|
|
" AND q.question_type = #{type} " + |
|
|
" AND q.question_type = #{type} " + |
|
|
" AND q.use_status = 0 " + |
|
|
" AND q.use_status = 0 " + |
|
|
" AND q.deleted = 0") |
|
|
" AND q.deleted = 0") |
|
|
|
|
|
@Options(flushCache = Options.FlushCachePolicy.TRUE) |
|
|
List<Long> findAvailableIdsByKpAndType(@Param("kpId") Long kpId, @Param("type") Integer type); |
|
|
List<Long> findAvailableIdsByKpAndType(@Param("kpId") Long kpId, @Param("type") Integer type); |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|