parent
9469a15249
commit
6b14801bc7
@ -0,0 +1,19 @@
|
|||||||
|
<?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.NxSystemFileInfoDao">
|
||||||
|
|
||||||
|
<select id="findByName" resultType="com.example.entity.NxSystemFileInfo">
|
||||||
|
select `nx_system_file_info`.* from `nx_system_file_info`
|
||||||
|
where 1 = 1
|
||||||
|
<if test="name != null and name != '' and name != 'all'">
|
||||||
|
and `nx_system_file_info`.`originName` like concat('%', #{name}, '%')
|
||||||
|
</if>
|
||||||
|
order by `nx_system_file_info`.id
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findByFileName" resultType="com.example.entity.NxSystemFileInfo">
|
||||||
|
select `nx_system_file_info`.* from `nx_system_file_info`
|
||||||
|
where `nx_system_file_info`.`fileName` = #{name}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in new issue