<select id="getRevocationLeaders" resultType="org.jeecg.modules.business.dywLeader.entity.DywLeader"> select * from dyw_leader where del_flag = 0 and leave_type not in(1,100) and id in ( select leader_id from country_register where del_flag = 0 and process_state in <foreach collection="processStates" item="item" index="index" open="(" close=")" separator=","> #{item} </foreach> ) <if test="keyWords != null and keyWords != ''"> and leader_name like CONCAT('%', #{keyWords}, '%') </if> </select>
时间: 2024-04-28 12:27:25 浏览: 11
这是一个 MyBatis 的 SQL 查询语句,用于从数据库中获取符合条件的 DywLeader 对象列表。其中,<select> 标签的 id 属性为 getRevocationLeaders,resultType 属性为返回结果的类型。SQL 语句中使用了一些条件判断和子查询,如果 processStates 不为空,则查询 country_register 表中 process_state 在 processStates 列表中的 leader_id,同时过滤掉 leave_type 为 1 或 100 的数据,并根据 keyWords 进行模糊匹配筛选。
相关问题
<select id="environmentalDataPage" resultType="org.jeecg.modules.smartfarm.environmental.entity.TbEnvironmentalData">是什么意思
这是一个HTML标签,其中id="environmentalDataPage"表示该标签的唯一标识符,resultType="org.jeecg.modules.smartfarm.environmental.entity.TbEnvironmentalData"表示该标签的结果类型为org.jeecg.modules.smartfarm.environmental.entity.TbEnvironmentalData。这个标签可能是用于获取或显示环境数据页面上的相关信息。
<select id="selectAll" resultType="org.example.pojo.User">
这是一个 Mybatis 中的 XML 配置文件,其中 `<select>` 标签表示定义一个查询语句,`id` 属性为查询语句的唯一标识符,`resultType` 属性表示返回结果的类型。在这个示例中,查询语句的唯一标识符为 `selectAll`,返回结果的类型为 `org.example.pojo.User`。具体查询语句的实现需要在 XML 文件的后续部分进行定义。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)