|
@@ -28,6 +28,8 @@
|
|
|
<result column="created_time_" jdbcType="TIMESTAMP" property="createdTime"/>
|
|
|
<result column="province_id_" jdbcType="INTEGER" property="provinceId"/>
|
|
|
<result column="province_name_" jdbcType="VARCHAR" property="provinceName"/>
|
|
|
+ <result column="current_has_school_num_" property="currentHasSchoolNum"/>
|
|
|
+ <result column="student_num_" property="studentNum"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
@@ -35,7 +37,8 @@
|
|
|
, tsign_name_, name_, area_id_, area_name_, email_, customer_service_phone_
|
|
|
, tsign_code_, address_, remark_, enterprise_liable_name_, enterprise_liable_phone_, legal_person_id_front_pic_
|
|
|
, legal_person_id_reverse_pic_, contacts_, phone_, tsign_pic_, tax_register_pic_, company_account_info_pic_
|
|
|
- , logo_, corporate_chops_, corporate_finance_chops_, state_, created_time_, province_id_, province_name_
|
|
|
+ , logo_, corporate_chops_, corporate_finance_chops_, state_, created_time_, province_id_,
|
|
|
+ province_name_,student_num_,current_has_school_num_
|
|
|
</sql>
|
|
|
|
|
|
<insert id="insertBatch" keyColumn="id_" keyProperty="id" useGeneratedKeys="true"
|
|
@@ -43,7 +46,7 @@
|
|
|
insert into tenant_pre_join(tsign_name_, name_, area_id_, area_name_, email_, customer_service_phone_,
|
|
|
tsign_code_, address_, remark_, enterprise_liable_name_, enterprise_liable_phone_, legal_person_id_front_pic_,
|
|
|
legal_person_id_reverse_pic_, contacts_, phone_, tsign_pic_, tax_register_pic_, company_account_info_pic_,
|
|
|
- logo_, corporate_chops_, corporate_finance_chops_, state_, created_time_, province_id_, province_name_)
|
|
|
+ logo_, corporate_chops_, corporate_finance_chops_, state_, created_time_, province_id_, province_name_,student_num_,current_has_school_num_)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
(#{entity.tsignName}, #{entity.name}, #{entity.areaId}, #{entity.areaName}, #{entity.email},
|
|
@@ -52,7 +55,7 @@
|
|
|
#{entity.legalPersonIdReversePic}, #{entity.contacts}, #{entity.phone}, #{entity.tsignPic},
|
|
|
#{entity.taxRegisterPic}, #{entity.companyAccountInfoPic}, #{entity.logo}, #{entity.corporateChops},
|
|
|
#{entity.corporateFinanceChops}, #{entity.state}, #{entity.createdTime}, #{entity.provinceId},
|
|
|
- #{entity.provinceName})
|
|
|
+ #{entity.provinceName},#{entity.studentNum},#{entity.currentHasSchoolNum})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -87,6 +90,8 @@
|
|
|
a.province_id_,
|
|
|
a.province_name_,
|
|
|
a.recommender_,
|
|
|
+ a.student_num_,
|
|
|
+ a.current_has_school_num_,
|
|
|
b.real_name_
|
|
|
FROM tenant_pre_join as a
|
|
|
left join sys_user as b on a.recommender_ = b.id_
|