mybatis的xml带where固定条件查询

255 阅读1分钟

mybatis的xml带where固定条件查询

where parent_id != 0
            <if test="problemName != null  and problemName != ''"> and problem_name like concat('%', #{problemName}, '%')</if>
            <if test="problemQuestion != null  and problemQuestion != ''"> and problem_question = #{problemQuestion}</if>

mybatis的xml带where固定条件查询

csdn写的博客部分正文会丢失,得转到其他网站