| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.zhongzheng.modules.system.mapper.SysTenantMapper">
- <resultMap type="com.zhongzheng.modules.system.domain.SysTenant" id="SysTenantResult">
- <result property="tenantId" column="tenant_id"/>
- <result property="createTime" column="create_time"/>
- <result property="updateTime" column="update_time"/>
- <result property="status" column="status"/>
- <result property="tenantName" column="tenant_name"/>
- <result property="companyTypeId" column="company_type_id"/>
- <result property="companySizeId" column="company_size_id"/>
- <result property="industryTypeId" column="industry_type_id"/>
- <result property="industryTypeName" column="industry_type_name"/>
- <result property="companyIntroduce" column="company_introduce"/>
- <result property="logoUrl" column="logo_url"/>
- <result property="licenseUrl" column="license_url"/>
- <result property="societyCode" column="society_code"/>
- <result property="province" column="province"/>
- <result property="city" column="city"/>
- <result property="district" column="district"/>
- <result property="address" column="address"/>
- <result property="companyPh" column="company_ph"/>
- <result property="linkMan" column="link_man"/>
- <result property="postBox" column="post_box"/>
- <result property="hostPc" column="host_pc"/>
- <result property="hostH5" column="host_h5"/>
- <result property="hostLive" column="host_live"/>
- <result property="hostH5Seller" column="host_h5_seller"/>
- </resultMap>
- <select id="findTenantId" parameterType="com.zhongzheng.modules.system.bo.SysTenantQueryBo" resultType="long">
- select tenant_id
- from sys_tenant where (host_pc = #{hostPc} or host_h5 = #{hostH5} or host_live = #{hostLive} or host_h5_seller = #{hostH5Seller} or host_admin = #{hostAdmin})
- </select>
- <select id="getListNoTenant" parameterType="java.lang.Long" resultType="com.zhongzheng.modules.system.domain.SysTenant">
- SELECT * FROM sys_tenant WHERE share_class = 1 AND `status` = 1 AND tenant_id != #{tenantId}
- </select>
- </mapper>
|