|
|
|
@ -82,6 +82,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
|
|
|
|
<!-- 设备管理员精确匹配 --> |
|
|
|
<!-- 设备管理员精确匹配 --> |
|
|
|
<if test="inCharge != null and inCharge != ''"> AND eb.in_charge = #{inCharge} </if> |
|
|
|
<if test="inCharge != null and inCharge != ''"> AND eb.in_charge = #{inCharge} </if> |
|
|
|
|
|
|
|
<!-- ✅ 设备名称模糊匹配 --> |
|
|
|
|
|
|
|
<if test="name != null and name != ''"> |
|
|
|
|
|
|
|
AND eb.name LIKE CONCAT('%', #{name}, '%') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ✅ 设备编号精准匹配 --> |
|
|
|
|
|
|
|
<if test="equNumber != null and equNumber != ''"> |
|
|
|
|
|
|
|
AND eb.equ_number = #{equNumber} |
|
|
|
|
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</where> |
|
|
|
<!-- 按 batch 从大到小排序 --> |
|
|
|
<!-- 按 batch 从大到小排序 --> |
|
|
|
ORDER BY am.batch DESC |
|
|
|
ORDER BY am.batch DESC |
|
|
|
|