幸运24-后台-关注用户个人数据

This commit is contained in:
2025-09-27 20:59:03 +08:00
parent 481b034b3b
commit dc1f9ade6d
7 changed files with 151 additions and 49 deletions

View File

@@ -37,11 +37,11 @@ public interface Lucky24RecordMapper extends BaseMapper<Lucky24Record> {
List<Lucky24PersonalStat> listPersonal(@Param("zoneDate")String zoneDate, @Param("partitionId") Integer partitionId,
@Param("poolTypeList")List<Integer> poolTypeList,
@Param("startTime") Date startTime, @Param("endTime") Date endTime,
@Param("uid") Long uid, @Param("userRechargeLevel") String userRechargeLevel);
@Param("uidList") List<Long> uidList, @Param("userRechargeLevel") String userRechargeLevel);
List<Lucky24PersonalStat> listPersonalByPoolType(@Param("zoneDate")String zoneDate, @Param("partitionId") Integer partitionId,
@Param("poolTypeList")List<Integer> poolTypeList,
@Param("startTime") Date startTime, @Param("endTime") Date endTime,
@Param("uid") Long uid, @Param("userRechargeLevel") String userRechargeLevel);
@Param("uidList") List<Long> uidList, @Param("userRechargeLevel") String userRechargeLevel);
}

View File

@@ -247,8 +247,8 @@
where r.partition_id = #{partitionId}
and r.pool_type in <foreach collection="poolTypeList" item="poolType" separator="," open="(" close=")">#{poolType}</foreach>
and r.create_time between #{startTime} and #{endTime}
<if test="null != uid">
and r.uid = #{uid}
<if test="null != uidList and uidList.size() > 0">
and r.uid in <foreach collection="uidList" item="uid" separator="," open="(" close=")">#{uid}</foreach>
</if>
group by r.uid
</select>
@@ -274,8 +274,8 @@
where r.partition_id = #{partitionId}
and r.pool_type in <foreach collection="poolTypeList" item="poolType" separator="," open="(" close=")">#{poolType}</foreach>
and r.create_time between #{startTime} and #{endTime}
<if test="null != uid">
and r.uid = #{uid}
<if test="null != uidList and uidList.size() > 0">
and r.uid in <foreach collection="uidList" item="uid" separator="," open="(" close=")">#{uid}</foreach>
</if>
group by r.pool_type, r.uid
</select>