xiaoyong931011
2021-11-24 35d0c67bb3391d69a8333e5fad664a88a8ccfd0e
src/main/resources/mapper/walletCoinOrder/OrderCoinsDao.xml
@@ -35,11 +35,30 @@
   </select>
   <select id="selectCoinOrderOnTrade" resultType="com.xcong.excoin.modules.coin.entity.OrderCoinsEntity">
      select *
      from coins_order
      where order_status=1
      select a.id,
      a.deal_price,
      a.entrust_amount,
      a.fee_amount,
      a.entrust_cnt,
      a.mark_price,
      a.member_id,
      a.order_no,
      a.order_status,
      a.order_type,
      a.symbol,
      a.trade_type,
      a.version,
      a.create_by,
      a.create_time,
      a.update_by,
      a.update_time,
      a.entrust_price,
      (select sum(symbol_cnt) from coins_order_deal where order_id = a.id) as deal_cnt,
      (select sum(deal_amount) from coins_order_deal where order_id = a.id) as deal_amount
      from coins_order a
      where a.order_status=1
      <if test="list != null">
         and symbol in
         and a.symbol in
         <foreach collection="list" separator="," item="item" open="(" close=")">
            #{item}
         </foreach>