gongchunyi
2026-03-31 01b9fbea755e02deee2dd870b7538722a0f417e4
src/main/resources/mapper/measuringinstrumentledger/SparePartsMapper.xml
@@ -6,8 +6,8 @@
        from spare_parts sp
        left join spare_parts sp1 on sp1.id = sp.parent_id
        <where>
            <if test="spareParts.name != null">
                and name like concat('%',#{spareParts.name},'%')
            <if test="spareParts.name != null and spareParts.name != ''">
                and sp.name like concat('%',#{spareParts.name},'%')
            </if>
        </where>
    </select>