This commit is contained in:
2026-01-05 19:09:55 +08:00
parent 775a7a3cc2
commit 98506927be
4 changed files with 87 additions and 4 deletions

View File

@@ -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>