gongchunyi
6 天以前 43d67f1b44403f6e998f2df23f46efb6d061b2e9
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>