p-honggang.li
9 天以前 c8a179a0bdbc7bdc987788e129efce16d467889f
src/main/resources/mapper/CartMapper.xml
@@ -43,6 +43,9 @@
        <if test="unitId !=null and unitId != ''">
            AND unit_id = #{unitId}
        </if>
        <if test="productId !=null and productId != ''">
            AND product_id = #{productId}
        </if>
        ORDER BY add_time DESC
    </select>
    
@@ -55,6 +58,7 @@
            AND unit_id = #{unitId}
        </if>
        AND pricing_id = #{pricingId}
        AND product_id = #{productId}
        LIMIT 1
    </select>
    
@@ -66,6 +70,9 @@
        <if test="unitId != '' and unitId != null">
            AND unit_id = #{unitId}
        </if>
        <if test="productId != '' and productId != null">
            AND product_id = #{productId}
        </if>
    </select>
    
    <select id="sumTotalAmountByUserIdAndUnitId" resultType="java.math.BigDecimal">