|
@@ -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">
|