parent
731986c95f
commit
269b427a1d
@ -0,0 +1,15 @@
|
|||||||
|
<?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.example.dao.ClassifyInfoDao">
|
||||||
|
|
||||||
|
<select id="findByName" resultType="com.example.vo.ClassifyInfoVo">
|
||||||
|
select `classify_info`.* from `classify_info`
|
||||||
|
where 1 = 1
|
||||||
|
<if test="name != null and name != '' and name != 'all'">
|
||||||
|
and `classify_info`.`name` like concat('%', #{name}, '%')
|
||||||
|
</if>
|
||||||
|
order by `classify_info`.id
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in new issue