fix: 统一钉钉通知工时格式化标准为8小时=1天
This commit is contained in:
parent
f811dd77d5
commit
4ee87abe73
@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user