Helius
2021-01-16 9fbd7c475b86b79d2820fc6cf8b49c408dd279c7
zq-erp/src/main/resources/mybatis/mapper/hive/SysBusinessDataDao.xml
@@ -700,7 +700,7 @@
                        and a.company_id=#{companyId}
                    </if>
                    ) cardAchieve,
                (select IFNULL(sum(amount),0) from sys_order_flow where flow_type = '退款' and <![CDATA[ create_time > #{item.beginTime} and create_time < #{item.endTime}]]>
                (select IFNULL(sum(amount),0) from sys_order_flow where flow_type = '还款' and <![CDATA[ create_time > #{item.beginTime} and create_time < #{item.endTime}]]>
                    <if test="shopId != null">
                        and shop_id=#{shopId}
                    </if>