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