| | |
| | | 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 |
| | |
| | | </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> |