zhanghl
2025-04-18 4fab586f605fcd99850c2e1575089f80e00846f1
aps-modules/aps-core/src/main/resources/mapper/core/ApsPlantMapper.xml
@@ -22,8 +22,8 @@
    <select id="selectApsPlantList" parameterType="ApsPlant" resultMap="ApsPlantResult">
        <include refid="selectApsPlantVo"/>
        <where>  
            <if test="plantName != null  and plantName != ''"> and plant_name like '%' || #{plantName} || '%'</if>
            <if test="plantCode != null  and plantCode != ''"> and plant_code like '%' || #{plantCode} || '%'</if>
            <if test="plantName != null  and plantName != ''"> and plant_name = #{plantName}</if>
            <if test="plantCode != null  and plantCode != ''"> and plant_code = #{plantCode}</if>
            <if test="status != null  and status != ''"> and status = #{status}</if>
        </where>
    </select>