Prechádzať zdrojové kódy

企业客户实体添加企业名字段

yanliming 1 mesiac pred
rodič
commit
5ab804d468

+ 3 - 0
common/src/main/java/com/jpsoft/employment/modules/base/entity/CustomerInfo.java

@@ -67,5 +67,8 @@ public class CustomerInfo {
 	
 				@ApiModelProperty(value = "更新人")
 	private String updateBy;
+
+	@ApiModelProperty(value = "企业名称")
+	private String companyName;
 	
 		}

+ 7 - 3
common/src/main/resources/mapper/base/CustomerInfo.xml

@@ -20,6 +20,7 @@
 			<result property="delFlag" column="del_flag" />
 			<result property="createBy" column="create_by" />
 			<result property="updateBy" column="update_by" />
+			<result property="companyName" column="company_name" />
 			</resultMap>
 	<insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.CustomerInfo">
 	<!--
@@ -29,7 +30,7 @@
 	-->
 	<![CDATA[
 		insert into base_customer_info
-	    (id_,user_name,password_,open_id,phone_,id_card,id_card_image,real_name,gender_,region_,image_,create_time,update_time,del_flag,create_by,update_by)
+	    (id_,user_name,password_,open_id,phone_,id_card,id_card_image,real_name,gender_,region_,image_,create_time,update_time,del_flag,create_by,update_by,company_name)
 		values
 		(
 #{id,jdbcType=VARCHAR}
@@ -48,6 +49,7 @@
 ,#{delFlag,jdbcType= NUMERIC }
 ,#{createBy,jdbcType=VARCHAR}
 ,#{updateBy,jdbcType=VARCHAR}
+,#{companyName,jdbcType=VARCHAR}
 		)
 	]]>
 	</insert>
@@ -102,12 +104,14 @@
 				<if test="updateBy!=null">
 		update_by=#{updateBy,jdbcType=VARCHAR},
 		</if>
+			<if test="companyName!=null">
+				company_name=#{companyName,jdbcType=VARCHAR},
+			</if>
 		</set>
 	where id_=#{id}
 	</update>
 	<select id="get" parameterType="string" resultMap="CustomerInfoMap">
-		select 
-id_,user_name,password_,open_id,phone_,id_card,id_card_image,real_name,gender_,region_,image_,create_time,update_time,del_flag,create_by,update_by		from base_customer_info where id_=#{0}
+		select * from base_customer_info where id_=#{0}
 	</select>
 	<select id="exist" parameterType="string" resultType="int">
 		select count(*) from base_customer_info where id_=#{0}