瀏覽代碼

机构入驻加字段

zouxuan 3 年之前
父節點
當前提交
be8c9756ec

+ 22 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/dto/TenantPreJoinDto.java

@@ -103,6 +103,28 @@ public class TenantPreJoinDto implements Serializable {
     @ApiModelProperty(value = "企业财务公章图片地址")
     private String corporateFinanceChops;
 
+    @ApiModelProperty(value = "现有学校数量")
+    private Integer currentHasSchoolNum;
+
+    @ApiModelProperty(value = "学员数量")
+    private Integer studentNum;
+
+    public Integer getCurrentHasSchoolNum() {
+        return currentHasSchoolNum;
+    }
+
+    public void setCurrentHasSchoolNum(Integer currentHasSchoolNum) {
+        this.currentHasSchoolNum = currentHasSchoolNum;
+    }
+
+    public Integer getStudentNum() {
+        return studentNum;
+    }
+
+    public void setStudentNum(Integer studentNum) {
+        this.studentNum = studentNum;
+    }
+
     public Integer getRecommender() {
         return recommender;
     }

+ 22 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/entity/TenantPreJoin.java

@@ -127,6 +127,28 @@ public class TenantPreJoin implements Serializable {
     @ApiModelProperty(value = "省份名称")
     private String provinceName;
 
+    @ApiModelProperty(value = "现有学校数量")
+    private Integer currentHasSchoolNum;
+
+    @ApiModelProperty(value = "学员数量")
+    private Integer studentNum;
+
+    public Integer getCurrentHasSchoolNum() {
+        return currentHasSchoolNum;
+    }
+
+    public void setCurrentHasSchoolNum(Integer currentHasSchoolNum) {
+        this.currentHasSchoolNum = currentHasSchoolNum;
+    }
+
+    public Integer getStudentNum() {
+        return studentNum;
+    }
+
+    public void setStudentNum(Integer studentNum) {
+        this.studentNum = studentNum;
+    }
+
     public Integer getRecommender() {
         return recommender;
     }

+ 8 - 3
mec-biz/src/main/resources/config/mybatis/TenantPreJoinMapper.xml

@@ -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_