zhitan-system/src/main/resources/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>