forked from dyf/fys-Multi-tenant
Merge branch 'dyf-device' into 6170
This commit is contained in:
@ -29,9 +29,10 @@
|
||||
and da.treatment_state = #{bo.treatmentState}
|
||||
</if>
|
||||
<if test="bo.queryTime1 != null and bo.queryTime2 != null ">
|
||||
and da.start_time between #{bo.queryTime1} and #{bo.queryTime2}
|
||||
and da.start_time BETWEEN #{bo.queryTime1} AND #{bo.queryTime2}
|
||||
</if>
|
||||
</where>
|
||||
order by da.create_time DESC
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
@ -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