@@ -114,7 +114,6 @@ public class RedEnvelopeServiceImpl extends AbstractService<RedEnvelope> impleme
map.put("page", page);
map.put("size", size);
map.put("startTime", DateUtil.offsetDay(DateUtil.date(), -8));
- map.put("endTime", DateUtil.yesterday());
return cRedEnvelopeMapper.top(map);
}
@@ -46,7 +46,7 @@ public class UserTopBo {
@ApiModelProperty(value="7日收益")
- private BigDecimal L7DEarnings;
+ private BigDecimal l7DEarnings;
@@ -46,17 +46,16 @@
<select id="top" resultType="com.txz.cif.web.bo.UserTopBo">
SELECT
user_id as userId,
- SUM(amount) AS L7DEarnings,
+ SUM(amount) AS l7DEarnings,
count(id) AS groupNum
FROM
c_red_envelope
WHERE
create_time >= #{startTime}
- AND #{endTime} > create_time
GROUP BY
user_id
ORDER BY
- L7DEarnings DESC
+ l7DEarnings DESC
</select>
<select id="sumWithOrderNo" resultType="com.txz.cif.dto.EarningsDTO">