25 lines
1.0 KiB
XML
25 lines
1.0 KiB
XML
<?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.central.device.mapper.LineFileMapper">
|
|
<select id="findList" resultType="com.central.device.model.LineFile">
|
|
select * from wayline_file t where 1=1
|
|
<if test="p.name != null and p.name != ''">
|
|
and t.name like concat('%', #{p.name}, '%')
|
|
</if>
|
|
<if test="p.waylineId != null and p.waylineId != ''">
|
|
and t.wayline_id = #{p.waylineId}
|
|
</if>
|
|
<if test="p.workspaceId != null and p.workspaceId != ''">
|
|
and t.workspace_id = #{p.workspaceId}
|
|
</if>
|
|
<if test="p.droneModelKey != null and p.droneModelKey != ''">
|
|
and t.drone_model_key = #{p.droneModelKey}
|
|
</if>
|
|
<if test="p.userName != null and p.userName != ''">
|
|
and t.user_name like concat('%', #{p.userName}, '%')
|
|
</if>
|
|
order by t.create_time desc
|
|
</select>
|
|
</mapper>
|