liujie
2025-09-05 2d113b48ea098ed7bc0829d18900dae177bc5844
ruoyi-service/ruoyi-study/src/main/resources/mapper/sutdy/TSubjectMapper.xml
@@ -34,7 +34,19 @@
        <if test="req.type != null and req.type != ''">
            and `type` like concat('%',#{req.type},'%')
        </if>
        <if test="null != req.ids and req.ids.size()>0" >
        <if test="null != req.ids and req.ids.size()>0 and type ==1">
            and firstCategory in
            <foreach collection="req.ids" close=")" open="(" item="item" separator=",">
                #{item}
            </foreach>
        </if>
        <if test="null != req.ids and req.ids.size()>0 and type ==2">
            and secondCategory in
            <foreach collection="req.ids" close=")" open="(" item="item" separator=",">
                #{item}
            </foreach>
        </if>
        <if test="null != req.ids and req.ids.size()>0 and type ==0">
            and firstCategory in
            <foreach collection="req.ids" close=")" open="(" item="item" separator=",">
                #{item}