yys
maven
9 天以前 4b9661fc69e31534c3e17818ba32df167658f31a
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>