Helius
2021-04-26 43d0db50bed72ff0f5c9f1279b26d77403f43faf
zq-erp/src/main/resources/mybatis/mapper/fenxiao/ShopRevenueFlowDao.xml
@@ -32,4 +32,18 @@
         <result property="companyId" column="company_id" />
   </resultMap>
    <select id="selectRevenuFlowList" resultType="com.matrix.system.fenxiao.entity.ShopRevenueFlow">
      select * from shop_revenue_flow
      where user_id=#{record.userId}
        and DATE_FORMAT(create_time,'%Y-%m')=#{record.queryTime}
      <if test="record.revenueType==1">
         and amount>0
      </if>
      <if test="record.revenueType==2">
         <![CDATA[ and amount<0 ]]>
      </if>
      order by create_time desc
   </select>
</mapper>