Commit ee504d72 authored by lisong's avatar lisong

修改临期报废设备列表bug

parent 3c71cd49
...@@ -1026,7 +1026,7 @@ ...@@ -1026,7 +1026,7 @@
ed.`name` AS specificName, ed.`name` AS specificName,
IFNULL( ed.standard, '' ) AS modelNumber, IFNULL( ed.standard, '' ) AS modelNumber,
DATEDIFF( DATE_ADD( DATE_FORMAT( ed.production_date, '%Y-%m-%d' ), INTERVAL e.expiry_date YEAR ), CURRENT_DATE ) AS dayNum, DATEDIFF( DATE_ADD( DATE_FORMAT( ed.production_date, '%Y-%m-%d' ), INTERVAL e.expiry_date YEAR ), CURRENT_DATE ) AS dayNum,
COUNT( ed.CODE ) sum, format(nullif(SUM(sd.amount), 0), 0) sum,
IFNULL( ws.full_name, '' ) AS equipAddress IFNULL( ws.full_name, '' ) AS equipAddress
FROM FROM
wl_equipment_specific es wl_equipment_specific es
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment