8032-devToTest_2440 #3009
|
@ -95,13 +95,9 @@ BEGIN
|
||||||
CAST(COUNT(*) AS DECIMAL(10,0)) `lines`,
|
CAST(COUNT(*) AS DECIMAL(10,0)) `lines`,
|
||||||
st.classColor,
|
st.classColor,
|
||||||
CONCAT_WS(':',
|
CONCAT_WS(':',
|
||||||
IF(HOUR(t.shipped),
|
COALESCE(HOUR(t.shipped), HOUR(zc.hour), HOUR(z.hour)),
|
||||||
HOUR(t.shipped),
|
COALESCE(MINUTE(t.shipped), MINUTE(zc.hour), MINUTE(z.hour))
|
||||||
COALESCE(HOUR(zc.hour),HOUR(z.hour))),
|
) preparation
|
||||||
IF(MINUTE(t.shipped),
|
|
||||||
MINUTE(t.shipped),
|
|
||||||
COALESCE(MINUTE(zc.hour),MINUTE(z.hour)))
|
|
||||||
) preparation
|
|
||||||
FROM ticket t
|
FROM ticket t
|
||||||
JOIN sale s ON s.ticketFk = t.id
|
JOIN sale s ON s.ticketFk = t.id
|
||||||
JOIN saleVolume sv ON sv.saleFk = s.id
|
JOIN saleVolume sv ON sv.saleFk = s.id
|
||||||
|
|
Loading…
Reference in New Issue