SysTenantMapper.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.zhongzheng.modules.system.mapper.SysTenantMapper">
  6. <resultMap type="com.zhongzheng.modules.system.domain.SysTenant" id="SysTenantResult">
  7. <result property="tenantId" column="tenant_id"/>
  8. <result property="createTime" column="create_time"/>
  9. <result property="updateTime" column="update_time"/>
  10. <result property="status" column="status"/>
  11. <result property="tenantName" column="tenant_name"/>
  12. <result property="companyTypeId" column="company_type_id"/>
  13. <result property="companySizeId" column="company_size_id"/>
  14. <result property="industryTypeId" column="industry_type_id"/>
  15. <result property="industryTypeName" column="industry_type_name"/>
  16. <result property="companyIntroduce" column="company_introduce"/>
  17. <result property="logoUrl" column="logo_url"/>
  18. <result property="licenseUrl" column="license_url"/>
  19. <result property="societyCode" column="society_code"/>
  20. <result property="province" column="province"/>
  21. <result property="city" column="city"/>
  22. <result property="district" column="district"/>
  23. <result property="address" column="address"/>
  24. <result property="companyPh" column="company_ph"/>
  25. <result property="linkMan" column="link_man"/>
  26. <result property="postBox" column="post_box"/>
  27. <result property="hostPc" column="host_pc"/>
  28. <result property="hostH5" column="host_h5"/>
  29. <result property="hostLive" column="host_live"/>
  30. <result property="hostH5Seller" column="host_h5_seller"/>
  31. </resultMap>
  32. <select id="findTenantId" parameterType="com.zhongzheng.modules.system.bo.SysTenantQueryBo" resultType="long">
  33. select tenant_id
  34. from sys_tenant where (host_pc = #{hostPc} or host_h5 = #{hostH5} or host_live = #{hostLive} or host_h5_seller = #{hostH5Seller} or host_admin = #{hostAdmin})
  35. </select>
  36. <select id="getListNoTenant" parameterType="java.lang.Long" resultType="com.zhongzheng.modules.system.domain.SysTenant">
  37. SELECT * FROM sys_tenant WHERE share_class = 1 AND `status` = 1 AND tenant_id != #{tenantId}
  38. </select>
  39. </mapper>