Ver código fonte

修改风机部件查询接口(只查询启用规则)

tianye 2 anos atrás
pai
commit
786fbe5793

+ 1 - 0
warning-web/src/main/resources/mappers-postgresql/Alertrule2Mapper.xml

@@ -123,6 +123,7 @@
             <if test="modelid !=null and modelid !=''">
                 and a.modelid = #{modelid}
             </if>
+            and a.enabled = true
         </where>
     </select>
     <select id="getById" parameterType="java.util.Map" resultType="com.gyee.wisdom.alarm.sharding.entity.Alertrule2">