吴羡
9 天以前 cde451468d868fc7d3044d915c5b71e7cb9cb203
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.production.mapper.WorkshopMapper">
 
    <select id="pageWorkshop" resultType="com.ruoyi.production.pojo.Workshop">
        select * from workshop
        <where>
            <if test="c.name != null and c.name != ''">
                and name like concat('%',#{c.name},'%')
            </if>
            <if test="c.code != null and c.code != ''">
                and code like concat('%',#{c.code},'%')
            </if>
            <if test="c.status != null">
                and status = #{c.status}
            </if>
        </where>
        order by id desc
    </select>
</mapper>