折线图显示规则修改
parent
165a7e1046
commit
6ed589ef3d
|
|
@ -228,14 +228,14 @@ public class SzCaseController extends AbstractCommonFileController{
|
||||||
|
|
||||||
if (CollectionUtils.isNotEmpty(list)){
|
if (CollectionUtils.isNotEmpty(list)){
|
||||||
Calendar calendar = Calendar.getInstance();
|
Calendar calendar = Calendar.getInstance();
|
||||||
|
int month = calendar.get(Calendar.MONTH) + 1;
|
||||||
for (int i = 1; i <= 12; i++) {
|
for (int i = 1; i <= month; i++) {
|
||||||
int finalI = i;
|
int finalI = i;
|
||||||
long count = list.stream()
|
long count = list.stream()
|
||||||
.filter(item ->
|
.filter(item ->
|
||||||
{
|
{
|
||||||
calendar.setTime(item.getCaseDate());
|
calendar.setTime(item.getCaseDate());
|
||||||
return calendar.get(Calendar.MONTH) + 1 == finalI;
|
return month == finalI;
|
||||||
})
|
})
|
||||||
.count();
|
.count();
|
||||||
vos.add(new SzCaseStatisticsVo(i,null,Integer.valueOf(String.valueOf(count))));
|
vos.add(new SzCaseStatisticsVo(i,null,Integer.valueOf(String.valueOf(count))));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue