|
@@ -105,6 +105,11 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
|
|
|
IndexBaseMonthData indexBaseMonthData = new IndexBaseMonthData();
|
|
|
indexBaseMonthData.setMonth(Date.from(endDate.atStartOfDay(DateUtil.zoneId).toInstant()));
|
|
|
+ if(IndexDataType.HOMEWORK_CREATE_RATE.equals(dataType)
|
|
|
+ ||IndexDataType.HOMEWORK_SUBMIT_RATE.equals(dataType)
|
|
|
+ ||IndexDataType.HOMEWORK_COMMENT_RATE.equals(dataType)){
|
|
|
+ indexBaseMonthData.setMonth(Date.from(endDate.with(DateUtil.weekFields.dayOfWeek(), DayOfWeek.MONDAY.getValue()).atStartOfDay(DateUtil.zoneId).toInstant()));
|
|
|
+ }
|
|
|
indexBaseMonthData.setTotalNum(BigDecimal.ZERO);
|
|
|
indexBaseMonthData.setActivateNum(BigDecimal.ZERO);
|
|
|
indexBaseMonthData.setPercent(BigDecimal.ZERO);
|