XiaoRuby
2023-07-28 a33396e17dd847f31b62f416f7d9c5a58b79126b
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>