admin
2019-01-11 20f1758957a19bb5fec47fcc1c83818ee268676b
fanli/src/main/java/com/yeshi/fanli/mapping/hongbao/HongBaoV2Mapper.xml
@@ -230,7 +230,7 @@
      NOW()>=hb_pre_get_time limit
      #{count}
   </select>
   <select id="countInviteOrderCountByUidAndSettleTime" resultType="java.lang.Long">
      SELECT COUNT(h.hb_id) FROM yeshi_ec_hongbao_v2 h LEFT JOIN
      yeshi_ec_hongbao_order ho ON h.`hb_pid`=ho.`ho_hongbao_id` LEFT JOIN
@@ -242,6 +242,19 @@
   </select>
   <select id="getUnRecievedMoneyWithCreateTime" resultType="java.math.BigDecimal">
      SELECT
      SUM(h.`hb_money`) FROM yeshi_ec_hongbao_v2 h
      WHERE h.`hb_uid`=#{uid}
      AND (h.`hb_state`=1 OR
      h.`hb_state`=2) and hb_create_time>=#{minDate}
      and #{maxDate} > hb_create_time
   </select>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
      yeshi_ec_hongbao_v2 where hb_id = #{id,jdbcType=BIGINT}
   </delete>