master
parent
d7145b6be8
commit
86911b841c
|
|
@ -1815,11 +1815,22 @@ public class GroupLogService {
|
|||
String hp_reward_key = String.format("g%s:hp_reward", groupId);
|
||||
String total_round = String.format("g%s:round", groupId);
|
||||
String valid_round = String.format("g%s:valid_room", groupId);
|
||||
valid_count = _getCountValue(jedis9, valid_round, beginTime, endTime);
|
||||
GroupBean gb = GroupCache.getGroup(groupId);
|
||||
|
||||
String roundSql = "select ifnull(sum(round_cnt),0) round_cnt,ifnull(sum(bigwin_cnt),0) bigwin_cnt from team_round_stat_day where uid=" + gb.owner + " and stat_day>="
|
||||
+ beginTime +" and stat_day<"+endTime;
|
||||
|
||||
ITArray roundArr = DataBase.use().executeQueryByTArray(roundSql);
|
||||
if (roundArr.size() > 0) {
|
||||
ITObject userData = roundArr.getTObject(0);
|
||||
valid_count = userData.getDouble("bigwin_cnt").intValue()>0?userData.getDouble("bigwin_cnt").intValue():valid_count;
|
||||
}
|
||||
|
||||
// String reward_hp = String.format("g{%s}:m%s:", groupId,uids);
|
||||
hp_cost = _getCountValue(jedis9, hp_cost_key, beginTime, endTime);
|
||||
hp_reward = _getCountValue(jedis9, hp_reward_key, beginTime, endTime);
|
||||
count = _getCountValue(jedis9, total_round, beginTime, endTime);
|
||||
valid_count = _getCountValue(jedis9, valid_round, beginTime, endTime);
|
||||
// reward_hpnum = _getCountValue(jedis9,reward_hp +
|
||||
// "reward_log",beginTime,endTime);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue