This commit is contained in:
2025-02-26 16:07:07 +08:00
parent 0aadd1d064
commit 34924ad351
20 changed files with 601 additions and 44 deletions

View File

@ -247,4 +247,20 @@
and create_at <= #{endTime}
</if>
</select>
<select id="getBrokerIdListForUser" resultType="java.lang.Long">
select morph_id
from (
select morph_id, max(create_time) as createTime
from statistics
where type = 20 and member_id = #{memberId}
<if test="startTime!= null">
and create_time >= #{startTime}
</if>
<if test="endTime!= null">
and create_time &lt;= #{endTime}
</if>
group by morph_id
) a
order by createTime desc
</select>
</mapper>