XiaoRuby
2023-07-27 b7145c10db0d3ace368689edfebb850760632c79
standard-server/src/main/resources/mapper/ProductMapper.xml
@@ -5,8 +5,9 @@
    <select id="pageProductInformation" resultType="map">
        SELECT COUNT(1) num, p.`father`
        FROM product p
        WHERE p.`specifications_id` = #{specificationsId}
        <if test="productCodeOrName != null and productCodeOrName != ''">
            WHERE p.`father` = #{productCodeOrName}
            AND p.`father` = #{productCodeOrName}
        </if>
        GROUP BY p.`father`
    </select>