|
|
@@ -4,23 +4,27 @@
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.xjrsoft.module.evaluate.mapper.EvaluateTemplateMapper">
|
|
|
<select id="getPage" parameterType="com.xjrsoft.module.evaluate.dto.EvaluateTemplatePageDto" resultType="com.xjrsoft.module.evaluate.vo.EvaluateTemplatePageVo">
|
|
|
- SELECT t.id,t.name,t.evaluate_type,t.dept_ids,t.total,t.remark,t.status FROM evaluate_template t where t.delete_mark = 0
|
|
|
-
|
|
|
+ SELECT t.id, t.name,
|
|
|
+ (SELECT t1.name
|
|
|
+ FROM xjr_dictionary_detail t1
|
|
|
+ JOIN xjr_dictionary_item t2 ON t1.item_id = t2.id
|
|
|
+ WHERE t2.code = 'evaluate_type'
|
|
|
+ AND t1.code = t.evaluate_type) AS evaluate_type,
|
|
|
+ t.dept_ids, t.total, t.remark, t.status
|
|
|
+ FROM evaluate_template t
|
|
|
+ WHERE t.delete_mark = 0
|
|
|
<if test="dto.deptIds != null and dto.deptIds != ''">
|
|
|
- and t.dept_ids = #{dto.deptIds}
|
|
|
+ AND t.dept_ids = #{dto.deptIds}
|
|
|
</if>
|
|
|
<if test="dto.evaluateType != null and dto.evaluateType != ''">
|
|
|
- and t.evaluate_type = #{dto.evaluateType}
|
|
|
+ AND t.evaluate_type = #{dto.evaluateType}
|
|
|
</if>
|
|
|
<if test="dto.name != null">
|
|
|
- and t.name = #{dto.name}
|
|
|
+ AND t.name = #{dto.name}
|
|
|
</if>
|
|
|
<if test="dto.status != null">
|
|
|
- and t.status = #{dto.status}
|
|
|
+ AND t.status = #{dto.status}
|
|
|
</if>
|
|
|
-<!-- <if test="dto.status != null">-->
|
|
|
-<!-- and t.status = #{dto.status}-->
|
|
|
-<!-- </if>-->
|
|
|
ORDER BY t.id
|
|
|
</select>
|
|
|
|