jinlin
2024-04-01 652ec7d6dfdee121704961847fae3a3a5be3f5b6
modules/mainPart/src/main/resources/mapper/taskReliability/ModelRbdDao.xml
@@ -8,10 +8,15 @@
        CASE
        WHEN b.end =1  THEN '已完成'
        WHEN c.num >0  THEN '正在编辑'
        ELSE '未编辑' END AS modelState
        ELSE '未编辑' END AS modelState,
        d.num as quoteNum
        from model_rbd a
        left join (select model_id,1 as end from algorithm where model_type = 'end' ) b on b.model_id = a.id
        left join (select model_id, count(1) as num from algorithm group by model_id ) c on c.model_id = a.id
        left join (select model_id,1 as end from algorithm where model_type = 'end' and is_delete=0 ) b on b.model_id =
        a.id
        left join (select model_id, count(1) as num from algorithm where is_delete=0 group by model_id ) c on c.model_id
        = a.id
        left join (select model_id,count(1) as num from operat_condit_model where is_delete=0 group by model_id ) d on
        d.model_id = a.id
        <where>
            a.is_delete = 0
            <if test="productId!=null and productId!=''">