|
|
@@ -785,7 +785,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN (
|
|
|
SELECT
|
|
|
rop.user_id,
|
|
|
- SUM(TIMESTAMPDIFF( MINUTE, ro.real_start_time, ro.real_end_time ) / 60 - IFNULL(gq.total_in_work_suspend_seconds, 0) / 3600) AS wxgs
|
|
|
+ SUM((TIMESTAMPDIFF( SECOND, ro.real_start_time, ro.real_end_time ) - IFNULL(gq.total_in_work_suspend_seconds, 0)) / 3600) AS wxgs
|
|
|
FROM
|
|
|
gxt_repair_order_person rop
|
|
|
LEFT JOIN gxt_repair_order ro ON rop.order_id = ro.id
|
|
|
@@ -800,7 +800,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN (
|
|
|
SELECT
|
|
|
rop.user_id,
|
|
|
- SUM( TIMESTAMPDIFF( MINUTE, ro.accept_time, ro.real_start_time ) / 60 ) + SUM( TIMESTAMPDIFF( MINUTE, ro.real_start_time, ro.real_end_time ) / 60 ) AS wxgs_last
|
|
|
+ SUM( TIMESTAMPDIFF( SECOND, ro.accept_time, ro.real_start_time ) / 3600 ) + SUM( TIMESTAMPDIFF( SECOND, ro.real_start_time, ro.real_end_time ) / 3600 ) AS wxgs_last
|
|
|
FROM
|
|
|
gxt_repair_order_person rop
|
|
|
LEFT JOIN gxt_repair_order ro ON rop.order_id = ro.id
|
|
|
@@ -816,7 +816,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN (
|
|
|
SELECT
|
|
|
wop.user_id,
|
|
|
- SUM(TIMESTAMPDIFF( MINUTE, wo.real_start_time, wo.real_end_time ) / 60 - IFNULL(gq.total_in_work_suspend_seconds, 0) / 3600) AS wbgs
|
|
|
+ SUM((TIMESTAMPDIFF( SECOND, wo.real_start_time, wo.real_end_time ) - IFNULL(gq.total_in_work_suspend_seconds, 0)) / 3600) AS wbgs
|
|
|
FROM
|
|
|
gxt_work_order_person wop
|
|
|
LEFT JOIN gxt_work_order wo ON wop.order_id = wo.id
|
|
|
@@ -831,7 +831,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN (
|
|
|
SELECT
|
|
|
wop.user_id,
|
|
|
- SUM( TIMESTAMPDIFF( MINUTE, h.process_time, i.complete_time ) / 60 ) AS wbgs_last
|
|
|
+ SUM( TIMESTAMPDIFF( SECOND, h.process_time, i.complete_time ) / 3600 ) AS wbgs_last
|
|
|
FROM
|
|
|
gxt_work_order_person wop
|
|
|
LEFT JOIN gxt_work_order wo ON wop.order_id = wo.id
|