forked from dyf/fys-Multi-tenant
Merge branch 'main' into dyf-device
This commit is contained in:
@ -23,6 +23,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
FROM device_repair_records dr
|
||||
JOIN device d ON dr.device_id = d.id
|
||||
<where>
|
||||
<if test="criteria.searchValue != null">
|
||||
and d.device_name like concat('%', TRIM(#{criteria.searchValue}), '%')
|
||||
</if>
|
||||
<if test="criteria.deviceId != null">
|
||||
and dr.device_id = #{criteria.deviceId}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user