修改计算产能不足一小时计算为0的情况
This commit is contained in:
@@ -318,7 +318,8 @@
|
||||
(
|
||||
SELECT
|
||||
device.productivity,
|
||||
device.productivity * TIMESTAMPDIFF( HOUR, realproducestart_date, now( ) ) AS max_productivity,
|
||||
CASE WHEN TIMESTAMPDIFF( HOUR, realproducestart_date, now( ) ) = '0' THEN device.productivity
|
||||
ELSE device.productivity * TIMESTAMPDIFF( HOUR, realproducestart_date, now( ) ) END AS max_productivity,
|
||||
shiftorder.produceorder_code,
|
||||
shiftorder.realproducestart_date
|
||||
FROM
|
||||
|
||||
Reference in New Issue
Block a user