- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.pavis.ai.oqas.mapper.ConfigMapper">
- <select id="selectByUserId" resultType="Config">
- select *
- from config c
- left join config_user cu on c.id = cu.config_id
- where cu.user_id = #{userId}
- and c.deleted = false
- or remark = 'system'
- </select>
- </mapper>
|