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.AgeDeviceMapper">
|
|
|
|
|
<select id="findList" resultType="com.central.device.model.AgeDevice">
|
2025-11-11 11:58:59 +08:00
|
|
|
select * from manage_device t where 1=1
|
|
|
|
|
<if test="p.deviceName != null and p.deviceName != ''">
|
|
|
|
|
and t.device_name like concat('%', #{p.deviceName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="p.deviceSn != null and p.deviceSn != ''">
|
|
|
|
|
and t.device_sn = #{p.deviceSn}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="p.deviceType != null and p.deviceType != ''">
|
|
|
|
|
and t.device_type = #{p.deviceType}
|
|
|
|
|
</if>
|
|
|
|
|
order by t.id desc
|
2024-12-23 16:21:22 +08:00
|
|
|
</select>
|
|
|
|
|
</mapper>
|