1234567891011121314151617181920212223242526272829303132333435 |
- <?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.ruoyi.web.work.mapper.PositionMapper">
-
- <select id="selectList" resultType="com.ruoyi.web.work.domain.Position">
- select * from tb_position
- <where>
- <if test="userId != null "> and user_id = #{userId}</if>
- <if test="type != null "> and type = #{type}</if>
- <if test="title != null and title != ''"> and title like concat('%', #{name}, '%')</if>
- </where>
- </select>
- <select id="manageList" resultType="com.ruoyi.web.work.domain.Position">
- select * from tb_position
- <where>
- <if test="userId != null "> and user_id = #{userId}</if>
- <if test="type != null "> and type = #{type}</if>
- <if test="audit != null "> and audit = #{audit}</if>
- <if test="title != null and title != ''"> and title like concat('%', #{name}, '%')</if>
- </where>
- </select>
- <select id="indexList" resultType="com.ruoyi.web.work.domain.Position">
- SELECT
- *
- FROM
- tb_position
- WHERE
- state = 0
- AND audit = 1
- AND type = #{type}
- <if test="title != null and title != ''"> and title like concat('%', #{name}, '%')</if>
- </select>
- </mapper>
|