|
|
@@ -487,7 +487,7 @@ public class DateUtil {
|
|
|
//得到两个日期相差的小时数
|
|
|
int hours = ((int) (overTime.getTime().getTime() / 1000) - (int) (dealTime.getTime().getTime() / 1000)) / 3600;
|
|
|
if (hours > 24) {
|
|
|
- int count = (int) Math.floor(hours / 24) - 1;
|
|
|
+ int count = (int) Math.floor(hours / 24);
|
|
|
List<String> days = getDays(dealDate, deadline, "yyyy-MM-dd HH:mm:ss", "MMdd");
|
|
|
for (String day : days) {
|
|
|
if (holiday.contains(day)) {
|
|
|
@@ -496,7 +496,7 @@ public class DateUtil {
|
|
|
}
|
|
|
overTimeStr = "提前" + count + "个工作日完成";
|
|
|
} else {
|
|
|
- int count =(int) Math.abs(Math.ceil(hours / 24) - 1);
|
|
|
+ int count = (int) Math.abs(Math.ceil(hours / 24));
|
|
|
List<String> days = getDays(deadline, dealDate, "yyyy-MM-dd HH:mm:ss", "MMdd");
|
|
|
for (String day : days) {
|
|
|
if (holiday.contains(day)) {
|
|
|
@@ -542,7 +542,7 @@ public class DateUtil {
|
|
|
//得到两个日期相差的小时数
|
|
|
int hours = ((int) (overTime.getTime().getTime() / 1000) - (int) (now.getTime().getTime() / 1000)) / 3600;
|
|
|
if (hours > 24) {
|
|
|
- int count = (int) Math.ceil(hours / 24) - 1;
|
|
|
+ int count = (int) Math.ceil(hours / 24);
|
|
|
List<String> days = getDays(nowDate, deadline, "yyyy-MM-dd HH:mm:ss", "MMdd");
|
|
|
for (String day : days) {
|
|
|
if (holiday.contains(day)) {
|
|
|
@@ -551,7 +551,7 @@ public class DateUtil {
|
|
|
}
|
|
|
overTimeStr = "剩余" + count + "个工作日";
|
|
|
} else {
|
|
|
- int count = (int) Math.abs(Math.ceil(hours / 24) - 1);
|
|
|
+ int count = (int) Math.abs(Math.ceil(hours / 24));
|
|
|
List<String> days = getDays(deadline, nowDate, "yyyy-MM-dd HH:mm:ss", "MMdd");
|
|
|
for (String day : days) {
|
|
|
if (holiday.contains(day)) {
|