Files
gofly-platform-services/zlt-business/device-center/src/main/resources/mapper/LineFileMapper.xml
T

25 lines
1.0 KiB
XML
Raw Normal View History

2024-12-23 16:21:22 +08:00
<?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">
2025-11-04 11:53:35 +08:00
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
2024-12-23 16:21:22 +08:00
</select>
</mapper>