|
@@ -42,11 +42,13 @@
|
|
<result column="name_" jdbcType="VARCHAR" property="name"/>
|
|
<result column="name_" jdbcType="VARCHAR" property="name"/>
|
|
<result column="contacts_" jdbcType="VARCHAR" property="contacts"/>
|
|
<result column="contacts_" jdbcType="VARCHAR" property="contacts"/>
|
|
<result column="phone_" jdbcType="VARCHAR" property="phone"/>
|
|
<result column="phone_" jdbcType="VARCHAR" property="phone"/>
|
|
|
|
+ <result column="email_" jdbcType="VARCHAR" property="email"/>
|
|
<result column="pay_state_" jdbcType="INTEGER" property="payState"/>
|
|
<result column="pay_state_" jdbcType="INTEGER" property="payState"/>
|
|
<result column="state_" jdbcType="INTEGER" property="state"/>
|
|
<result column="state_" jdbcType="INTEGER" property="state"/>
|
|
<result column="logo_" jdbcType="VARCHAR" property="logo"/>
|
|
<result column="logo_" jdbcType="VARCHAR" property="logo"/>
|
|
<result column="real_name_" jdbcType="VARCHAR" property="createdName"/>
|
|
<result column="real_name_" jdbcType="VARCHAR" property="createdName"/>
|
|
<result column="studentCount" jdbcType="INTEGER" property="studentCount"/>
|
|
<result column="studentCount" jdbcType="INTEGER" property="studentCount"/>
|
|
|
|
+ <result column="userId" jdbcType="INTEGER" property="userId"/>
|
|
<!-- 机构产品信息-->
|
|
<!-- 机构产品信息-->
|
|
<result column="serve_name_" jdbcType="VARCHAR" property="serveName"/>
|
|
<result column="serve_name_" jdbcType="VARCHAR" property="serveName"/>
|
|
<result column="student_up_limit_" jdbcType="INTEGER" property="studentUpLimit"/>
|
|
<result column="student_up_limit_" jdbcType="INTEGER" property="studentUpLimit"/>
|
|
@@ -58,6 +60,7 @@
|
|
a.`name_`,
|
|
a.`name_`,
|
|
a.`contacts_`,
|
|
a.`contacts_`,
|
|
a.`phone_`,
|
|
a.`phone_`,
|
|
|
|
+ a.`email_`,
|
|
a.`pay_state_`,
|
|
a.`pay_state_`,
|
|
a.`state_`,
|
|
a.`state_`,
|
|
a.logo_,
|
|
a.logo_,
|
|
@@ -65,7 +68,8 @@
|
|
c.`name_` AS serve_name_,
|
|
c.`name_` AS serve_name_,
|
|
d.`student_up_limit_`,
|
|
d.`student_up_limit_`,
|
|
b.`expiry_date_`,
|
|
b.`expiry_date_`,
|
|
- ifnull(st.studentCount, 0) as studentCount
|
|
|
|
|
|
+ ifnull(st.studentCount, 0) as studentCount,
|
|
|
|
+ a.user_id_ as userId
|
|
FROM tenant_info AS a
|
|
FROM tenant_info AS a
|
|
LEFT JOIN tenant_product_info AS b ON a.`id_` = b.`tenant_id_` and b.using_ = 0
|
|
LEFT JOIN tenant_product_info AS b ON a.`id_` = b.`tenant_id_` and b.using_ = 0
|
|
LEFT JOIN platform_serve AS c ON b.`serve_id_` = c.`id_`
|
|
LEFT JOIN platform_serve AS c ON b.`serve_id_` = c.`id_`
|
|
@@ -96,6 +100,9 @@
|
|
<if test="param.endDate != null ">
|
|
<if test="param.endDate != null ">
|
|
AND b.`expiry_date_` <![CDATA[ <= ]]> #{param.endDate}
|
|
AND b.`expiry_date_` <![CDATA[ <= ]]> #{param.endDate}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="param.expiryDate != null ">
|
|
|
|
+ AND b.`expiry_date_` = #{param.expiryDate}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -125,37 +132,6 @@
|
|
where id_ = (select tenant_id_ from organization where id_ = #{organId})
|
|
where id_ = (select tenant_id_ from organization where id_ = #{organId})
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="queryExpiryTenant" resultMap="BaseResultMap">
|
|
|
|
- SELECT a.id_,
|
|
|
|
- a.name_,
|
|
|
|
- a.contacts_,
|
|
|
|
- a.phone_,
|
|
|
|
- address_,
|
|
|
|
- a.email_,
|
|
|
|
- a.logo_,
|
|
|
|
- a.customer_service_phone_,
|
|
|
|
- a.remark_,
|
|
|
|
- a.domain_name_,
|
|
|
|
- a.data_source_,
|
|
|
|
- a.pay_state_,
|
|
|
|
- a.state_,
|
|
|
|
- a.created_by_,
|
|
|
|
- a.created_time_,
|
|
|
|
- a.updated_by_,
|
|
|
|
- a.updated_time_,
|
|
|
|
- a.tsign_code_,
|
|
|
|
- a.tsign_name_,
|
|
|
|
- a.area_id_,
|
|
|
|
- a.user_id_
|
|
|
|
- FROM `tenant_info` AS a
|
|
|
|
- LEFT JOIN `tenant_product_info` AS b
|
|
|
|
- ON a.id_ = b.`tenant_id_`
|
|
|
|
- WHERE a.`state_` = 1
|
|
|
|
- AND a.`pay_state_` = 1
|
|
|
|
- AND b.`using_` = 0
|
|
|
|
- AND b.`expiry_date_` = #{expiryDate}
|
|
|
|
- </select>
|
|
|
|
-
|
|
|
|
<select id="queryUserByTenantId" resultType="integer">
|
|
<select id="queryUserByTenantId" resultType="integer">
|
|
select id_ from sys_user where tenant_id_ = #{tenantId} limit 1
|
|
select id_ from sys_user where tenant_id_ = #{tenantId} limit 1
|
|
</select>
|
|
</select>
|