jinlin
2024-09-13 316e1c18d0d55b28d64400923721bab2158ff251
modules/mainPart/src/main/resources/mapper/basicInfo/StatisticsDao.xml
@@ -10,13 +10,15 @@
            count(distinct c.id) AS operatConNum,
            count(distinct d.id) AS modelNum,
            count(distinct e.id) AS simulatNum,
            count(distinct f.id) AS testData
            count(distinct f.id) AS testData,
            count(distinct g.id) AS assessNum
        FROM product_model a
                 left join task b on  b.product_id = a.id and b.IS_DELETE=0
                 left join operat_condit c on  c.product_id = a.id and c.IS_DELETE=0
                 left join  model_rbd d on  d.ship_id = a.id and d.IS_DELETE=0
                 left join  simulat_assess e on e.product_id = a.id and e.IS_DELETE=0
                 left join  assess_item f on f.product_id = a.id and f.IS_DELETE=0
                 left join  assess_result g on g.product_id = a.id and g.IS_DELETE=0
        where a.product_type = 2 and a.IS_DELETE =0
        group by a.id,a.name
        order by a.name