于紫祥_1901
2020-08-12 ad89f4965a05d37aeea1481c4ab53e21ab85ca2f
src/main/resources/mapper/DictionaryDataMapper.xml
@@ -16,8 +16,12 @@
    id, dict_id, dict_data_key, dict_data_name, dict_data_value, is_fixed, is_delete, 
    parent_id, description
  </sql>
  <select id="selectSupperOrgId" parameterType="java.lang.String" resultType="java.lang.Integer">
  <select id="selectSupperOrgId"  resultType="java.lang.Integer">
    select dict_data_value from dictionary_data
    where dict_data_key = 'auth_config_super_org'
  </select>
  <select id="isSupperOrgId"  resultType="java.lang.Boolean">
    select count(*) from dictionary_data
    where dict_data_key = 'auth_config_super_org' and dict_data_value = #{orgId,jdbcType=INTEGER}
  </select>
</mapper>