XiaoRuby
2023-07-27 91c6d603bfc528398d03a6b05228b72a1912082a
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>