xyc
2024-07-24 413eae5cb4d5fe78fc25258bf7b5e3b53740b1f9
modules/mainPart/src/main/resources/mapper/taskReliability/OperatConditModelDao.xml
@@ -53,4 +53,18 @@
        group by model_id
    </select>
    <select id="getGKModelTrees" resultType="com.zt.life.modules.mainPart.taskReliability.model.OperatConditModel">
        select
        a.*
        FROM
        operat_condit_model a
        inner join operat_condit b on b.id=a.operat_condit_id
        where
        a.is_delete = 0
        and b.is_delete = 0
        <if test="productId!=null">
            and b.product_id=${productId}
        </if>
        ORDER BY a.operat_condit_id, a.product_id
    </select>
</mapper>