test
This commit is contained in:
@@ -155,5 +155,25 @@
|
||||
where t1.id=#{userId} and t5.class_type='C'
|
||||
order by t5.class_order asc
|
||||
</select>
|
||||
|
||||
<select id="getMappedClassIdsUnion" resultType="int">
|
||||
select distinct classid from t_fondclass
|
||||
union
|
||||
select distinct classid from t_departmentclass
|
||||
</select>
|
||||
|
||||
<select id="getMappedClassIdsUnionBySelection" resultType="int">
|
||||
select distinct classid from (
|
||||
<if test="fondId != null">
|
||||
select classid from t_fondclass where fondid = #{fondId,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="fondId != null and deptId != null">
|
||||
union
|
||||
</if>
|
||||
<if test="deptId != null">
|
||||
select classid from t_departmentclass where deptid = #{deptId,jdbcType=INTEGER}
|
||||
</if>
|
||||
) t
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user