gongzuming
2024-09-19 a768dc3daa04d35fedfbe75c0a59b9b2545b85c4
src/main/resources/mapper/point/CustomerPointDetailMapper.xml
@@ -29,9 +29,12 @@
        WHERE p.deleted= 0
        <if test="lastYear!=null ">
            <![CDATA[
               p.record_date <= #{lastYear}
               and p.record_date <= #{lastYear}
            ]]>
        </if>
        <if test="userId!=null and userId!=''">
            and p.user_id = #{userId}
        </if>
        GROUP BY
        p.user_id,
        p.customer_id