Browse Source

公司属性添加是否为内部公司

fllmoyu 5 years ago
parent
commit
a4bcc40c14

+ 2 - 0
common/src/main/java/com/jpsoft/enterprise/modules/base/entity/CompanyInfo.java

@@ -67,4 +67,6 @@ public class CompanyInfo {
     private String position;
     @ApiModelProperty(value = "企联职务(数据字典:企联职务)翻译")
     private String positionName;
+    @ApiModelProperty(value = "是否为内部公司")
+    private Boolean inside = false;
 }

+ 6 - 1
common/src/main/resources/mapper/base/CompanyInfo.xml

@@ -23,6 +23,7 @@
 			<result property="delFlag" column="del_flag" />
 			<result property="industryName" column="industry_name" />
 			<result property="position" column="position_" />
+			<result property="inside" column="inside_"/>
 			</resultMap>
 	<insert id="insert" parameterType="com.jpsoft.enterprise.modules.base.entity.CompanyInfo">
 	<!--
@@ -32,7 +33,7 @@
 	-->
 	<![CDATA[
 		insert into base_company_info
-	    (id_,company_name,type_,logo_url,credit_code,address_,business_license_url,scale_,industry_,region_,company_introduction,enterpriser_introduction,create_by,create_time,update_by,update_time,del_flag,position_)
+	    (id_,company_name,type_,logo_url,credit_code,address_,business_license_url,scale_,industry_,region_,company_introduction,enterpriser_introduction,create_by,create_time,update_by,update_time,del_flag,position_,inside_)
 		values
 		(
 #{id,jdbcType=VARCHAR}
@@ -53,6 +54,7 @@
 ,#{updateTime,jdbcType= TIMESTAMP }
 ,#{delFlag,jdbcType= NUMERIC }
 ,#{position,jdbcType=VARCHAR}
+,#{inside,jdbcType=NUMERIC}
 		)
 	]]>
 	</insert>
@@ -113,6 +115,9 @@
 			<if test="position!=null">
 				position_=#{position,jdbcType= VARCHAR },
 			</if>
+			<if test="inside!=null">
+				inside_=#{inside,jdbcType= NUMERIC },
+			</if>
 		</set>
 	where id_=#{id}
 	</update>