ustcyc
2025-01-07 90e30e1461f48721442d0391e46c2edde170d9e7
zhitan-system/target/classes/mapper/model/ModelNodeMapper.xml
@@ -414,10 +414,17 @@
        FROM "model_node" mn
        LEFT JOIN "node_index" ni ON mn.node_id = ni.node_id
        left join energy_index ei on ni.index_id = ei.index_id
        WHERE mn.model_code = #{modelCode}
        <where>
            mn.model_code = #{modelCode}
          AND mn.node_id in
        <foreach collection="nodeIds" index="index" item="item" open="(" separator="," close=")">
            #{item}
        </foreach>
        <if test="modelCode!=null and modelCode!='' and nodeIds.size>0">
            and ei.index_type='STATISTIC'
        </if>
        </where>
    </select>
</mapper>