|
|
|
|
@ -68,17 +68,10 @@ public class WxNursingLogServiceImpl implements IWxNursingLogService {
|
|
|
|
|
totalNursingSecond += wxNursingLog.getNursingTime().toSecondOfDay();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
wxNursingStatisticsRet.setNursingTime(formatDuration(totalNursingSecond));
|
|
|
|
|
wxNursingStatisticsRet.setNursingTime(DateUtils.formatHMS(totalNursingSecond));
|
|
|
|
|
return wxNursingStatisticsRet;
|
|
|
|
|
}
|
|
|
|
|
return new WxNursingStatisticsRet(0, formatDuration(0));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private String formatDuration(int seconds) {
|
|
|
|
|
int hours = seconds / 3600;
|
|
|
|
|
int minutes = (seconds % 3600) / 60;
|
|
|
|
|
int remainingSeconds = seconds % 60;
|
|
|
|
|
return String.format("%02d:%02d:%02d", hours, minutes, remainingSeconds);
|
|
|
|
|
return new WxNursingStatisticsRet(0, DateUtils.formatHMS(0));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|