|
@@ -161,10 +161,7 @@ public class BiCallController : BaseController
|
|
d.LoginDuration = Math.Round(d.LoginDuration.Value, 2);
|
|
d.LoginDuration = Math.Round(d.LoginDuration.Value, 2);
|
|
}
|
|
}
|
|
d.RestDuration = _telRestRepository.Queryable().Where(q => q.UserId == d.UserId && q.CreationTime >= dto.StartTime && q.CreationTime <= dto.EndTime).Sum(q => q.RestDuration);
|
|
d.RestDuration = _telRestRepository.Queryable().Where(q => q.UserId == d.UserId && q.CreationTime >= dto.StartTime && q.CreationTime <= dto.EndTime).Sum(q => q.RestDuration);
|
|
- if (d.RestDuration!=null)
|
|
|
|
- {
|
|
|
|
- d.RestDuration = Math.Round(d.RestDuration, 2);
|
|
|
|
- }
|
|
|
|
|
|
+ d.RestDuration = Math.Round(d.RestDuration, 2);
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|