|
@ -904,6 +904,9 @@ public class DateUtil {
|
|
while (dEnd.after(calBegin.getTime())) {
|
|
while (dEnd.after(calBegin.getTime())) {
|
|
// 根据日历的规则,为给定的日历字段添加或减去指定的时间量
|
|
// 根据日历的规则,为给定的日历字段添加或减去指定的时间量
|
|
calBegin.add(Calendar.DAY_OF_MONTH, 1);
|
|
calBegin.add(Calendar.DAY_OF_MONTH, 1);
|
|
|
|
if(!dEnd.after(calBegin.getTime())){
|
|
|
|
break;
|
|
|
|
}
|
|
Map<String,Object> stt = new HashedMap();
|
|
Map<String,Object> stt = new HashedMap();
|
|
stt.put("date",DateUtil.dateToStr(calBegin.getTime(),"yyyy-MM-dd"));
|
|
stt.put("date",DateUtil.dateToStr(calBegin.getTime(),"yyyy-MM-dd"));
|
|
stt.put("avg",0);
|
|
stt.put("avg",0);
|
|
@ -934,6 +937,9 @@ public class DateUtil {
|
|
while (dEnd.after(calBegin.getTime())) {
|
|
while (dEnd.after(calBegin.getTime())) {
|
|
// 根据日历的规则,为给定的日历字段添加或减去指定的时间量
|
|
// 根据日历的规则,为给定的日历字段添加或减去指定的时间量
|
|
calBegin.add(Calendar.DAY_OF_MONTH, 1);
|
|
calBegin.add(Calendar.DAY_OF_MONTH, 1);
|
|
|
|
if(!dEnd.after(calBegin.getTime())){
|
|
|
|
break;
|
|
|
|
}
|
|
if(checkDateMonday(calBegin)){
|
|
if(checkDateMonday(calBegin)){
|
|
Map<String,Object> stt = new HashedMap();
|
|
Map<String,Object> stt = new HashedMap();
|
|
stt.put("date",DateUtil.dateToStr(calBegin.getTime(),"yyyy-MM-dd"));
|
|
stt.put("date",DateUtil.dateToStr(calBegin.getTime(),"yyyy-MM-dd"));
|
|
@ -966,6 +972,9 @@ public class DateUtil {
|
|
while (dEnd.after(calBegin.getTime())) {
|
|
while (dEnd.after(calBegin.getTime())) {
|
|
// 根据日历的规则,为给定的日历字段添加或减去指定的时间量
|
|
// 根据日历的规则,为给定的日历字段添加或减去指定的时间量
|
|
calBegin.add(Calendar.DAY_OF_MONTH, 1);
|
|
calBegin.add(Calendar.DAY_OF_MONTH, 1);
|
|
|
|
if(!dEnd.after(calBegin.getTime())){
|
|
|
|
break;
|
|
|
|
}
|
|
if(checkFristDayOfDateMonth(calBegin)){
|
|
if(checkFristDayOfDateMonth(calBegin)){
|
|
Map<String,Object> stt = new HashedMap();
|
|
Map<String,Object> stt = new HashedMap();
|
|
stt.put("date",DateUtil.dateToStr(calBegin.getTime(),"yyyy-MM"));
|
|
stt.put("date",DateUtil.dateToStr(calBegin.getTime(),"yyyy-MM"));
|