fix: 统一钉钉通知工时格式化标准为8小时=1天

This commit is contained in:
Your Name 2026-01-13 18:04:27 +08:00
parent f811dd77d5
commit 4ee87abe73
2 changed files with 6 additions and 6 deletions

View File

@ -902,15 +902,15 @@ public class TaskApprovalService {
/**
* 格式化预估工时显示
* 将小时数转换为 "X天X小时" 格式
* 将小时数转换为 "X天X小时" 格式(8小时=1天)
*/
private String formatEstimatedHours(java.math.BigDecimal hours) {
if (hours == null) {
return "未设置";
}
int totalHours = hours.intValue();
int days = totalHours / 24;
int remainingHours = totalHours % 24;
int days = totalHours / 8;
int remainingHours = totalHours % 8;
StringBuilder sb = new StringBuilder();
if (days > 0) {

View File

@ -1347,15 +1347,15 @@ public class TaskItemService {
}
/**
* 格式化工时显示(与TaskApprovalService一致)
* 格式化工时显示(与TaskApprovalService一致,8小时=1天)
*/
private String formatEstimatedHours(java.math.BigDecimal hours) {
if (hours == null) {
return "未设置";
}
int totalHours = hours.intValue();
int days = totalHours / 24;
int remainingHours = totalHours % 24;
int days = totalHours / 8;
int remainingHours = totalHours % 8;
StringBuilder sb = new StringBuilder();
if (days > 0) {