|
@@ -803,7 +803,8 @@ public class SwdlServiceImpl extends GenericProvider implements SwdlService {
|
|
|
// 8. 班次时长统计,标准工作时长
|
|
// 8. 班次时长统计,标准工作时长
|
|
|
if (shiftDuration != null && !shiftDuration.isEmpty()) {
|
|
if (shiftDuration != null && !shiftDuration.isEmpty()) {
|
|
|
try {
|
|
try {
|
|
|
- double duration = Double.parseDouble(shiftDuration)/60;
|
|
|
|
|
|
|
+ //double duration = Double.parseDouble(shiftDuration)/60;
|
|
|
|
|
+ double duration = Math.round(Double.parseDouble(shiftDuration)/60);
|
|
|
addTo(userStats, "ban_ci_shi_chang", duration);
|
|
addTo(userStats, "ban_ci_shi_chang", duration);
|
|
|
} catch (NumberFormatException e) {
|
|
} catch (NumberFormatException e) {
|
|
|
// 忽略格式错误
|
|
// 忽略格式错误
|
|
@@ -813,7 +814,8 @@ public class SwdlServiceImpl extends GenericProvider implements SwdlService {
|
|
|
// 9. 实际工作时长统计
|
|
// 9. 实际工作时长统计
|
|
|
if (workDuration != null && !workDuration.isEmpty()) {
|
|
if (workDuration != null && !workDuration.isEmpty()) {
|
|
|
try {
|
|
try {
|
|
|
- double duration = Double.parseDouble(workDuration)/60;
|
|
|
|
|
|
|
+ // double duration = Double.parseDouble(workDuration)/60;
|
|
|
|
|
+ double duration = Math.round(Double.parseDouble(shiftDuration)/60);
|
|
|
addTo(userStats, "gong_zuo_shi_chang", duration);
|
|
addTo(userStats, "gong_zuo_shi_chang", duration);
|
|
|
} catch (NumberFormatException e) {
|
|
} catch (NumberFormatException e) {
|
|
|
// 忽略格式错误
|
|
// 忽略格式错误
|