于紫祥_1901
2020-10-22 3a4442da13b6f1300956bd63a5d106c5b2fc7184
src/main/resources/mapper/AlarmConfigMapper.xml
@@ -114,4 +114,13 @@
    where dev.mac = #{mac,jdbcType=VARCHAR}
    limit 0,1
  </select>
    <select id="getValueByOrganizationId" resultType="java.lang.String">
      select `value`
      from alarm_config
      where organization_id = #{organizationId,jdbcType=INTEGER}
      limit 0,1
    </select>
  <select id="containOrgId" resultType="java.lang.Integer">
    select COUNT(*) from  alarm_config where id=#{orgId}
  </select>
</mapper>