wuzeyu
2024-10-16 f6aeadcf6cc2dfdd5f3983547114600bb0b5c69a
pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeGeneralMapper.xml
@@ -250,7 +250,7 @@
  <!--获取指定日期、指定收银员、指定支付方式实收金额合计-->
  <select id="getPaymentSums" resultType="java.lang.Float">
    SELECT
    SUM(ope.trade_amount) AS tradeAmount
        (SUM(ope.trade_amount) + SUM(ope.card_cost)) AS tradeAmount
    FROM se_card_operate ope
    <where>
      AND ope.operate_valid = 2
@@ -305,6 +305,7 @@
        INNER JOIN ba_user us ON us.id = ope.operator
    <where>
      AND ope.operate_type IN(1,2,3,4,5)
      AND ope.operate_valid = 2
      <if test = "cashierId != null and cashierId > 0">
        AND us.id = #{cashierId}
      </if>