Commit 66909669 authored by maoying's avatar maoying

修改运行天数算法

parent db8f5ae2
......@@ -1346,6 +1346,10 @@ public class DateUtil {
int toDay = to.get(Calendar.DAY_OF_YEAR);
int year = toYear - fromYear;
int day = toDay - fromDay;
if(day < 0){
day +=365;
year -=1;
}
param.put("year", year);
param.put("day", day);
return param;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment