|
|
@ -21,7 +21,6 @@ import com.epmet.service.stats.FactArticlePublishedGridDailyService; |
|
|
|
import com.epmet.service.stats.user.FactRegUserGridMonthlyService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.collections4.ListUtils; |
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
@ -138,7 +137,8 @@ public class CalGridIndexServiceImpl implements CalGridIndexService { |
|
|
|
if (!CollectionUtils.isEmpty(gridUserCountList)){ |
|
|
|
gridUserCountList.forEach(count -> { |
|
|
|
if (r.getGridId().equals(count.getGridId())){ |
|
|
|
BeanUtils.copyProperties(count,r); |
|
|
|
r.setUserCount(count.getUserCount()); |
|
|
|
r.setPartyCount(count.getPartyCount()); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
@ -320,7 +320,8 @@ public class CalGridIndexServiceImpl implements CalGridIndexService { |
|
|
|
if (!CollectionUtils.isEmpty(gridIssueTotalList)) { |
|
|
|
gridIssueTotalList.forEach(total -> { |
|
|
|
if (r.getGridId().equals(total.getGridId())) { |
|
|
|
BeanUtils.copyProperties(total, r); |
|
|
|
r.setIssueTotal(total.getIssueTotal()); |
|
|
|
r.setAvgIssueCount(total.getAvgIssueCount()); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|