29 lines
984 B
Java
29 lines
984 B
Java
|
|
package com.gunshi.project.xyt.mapper;
|
||
|
|
|
||
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||
|
|
import com.gunshi.project.xyt.model.AssessIndicator;
|
||
|
|
import com.gunshi.project.xyt.model.AssessTemplate;
|
||
|
|
import org.apache.ibatis.annotations.Mapper;
|
||
|
|
import org.apache.ibatis.annotations.Param;
|
||
|
|
import org.apache.ibatis.annotations.Select;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 描述: 考核模板
|
||
|
|
* author: xusan
|
||
|
|
* date: 2024-09-04 13:42:40
|
||
|
|
*/
|
||
|
|
@Mapper
|
||
|
|
public interface AssessTemplateMapper extends BaseMapper<AssessTemplate> {
|
||
|
|
|
||
|
|
@Select("""
|
||
|
|
<script>
|
||
|
|
select t1.*,t2.name from public.assess_indicator t1
|
||
|
|
left join public.assess_category t2 on t1.category_id = t2.id
|
||
|
|
where t1.id in (select indicator_id from public.assess_template_indicator_rel where template_id = #{id})
|
||
|
|
order by t1.order_index
|
||
|
|
</script>
|
||
|
|
""")
|
||
|
|
List<AssessIndicator> queryIndicators(@Param("id") Long id);
|
||
|
|
}
|