<?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>
|