|
@@ -8,6 +8,7 @@
|
|
|
<result property="companyId" column="company_id"/>
|
|
|
<result property="name" column="name_"/>
|
|
|
<result property="phone" column="phone_"/>
|
|
|
+ <result property="idCard" column="id_card"/>
|
|
|
<result property="openId" column="open_id"/>
|
|
|
<result property="faceEnabled" column="face_enabled"/>
|
|
|
<result property="cardEnabled" column="card_enabled"/>
|
|
@@ -33,7 +34,7 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into base_person_info
|
|
|
- (company_id,name_,phone_,open_id,face_enabled,card_enabled,
|
|
|
+ (company_id,name_,phone_,id_card,open_id,face_enabled,card_enabled,
|
|
|
app_enabled,password_enabled,guest_enabled,position1_,position2_,
|
|
|
position3_,position4_,position5_,del_flag,create_by,create_time,update_by,update_time)
|
|
|
values
|
|
@@ -41,6 +42,7 @@
|
|
|
#{companyId,jdbcType=VARCHAR}
|
|
|
,#{name,jdbcType=VARCHAR}
|
|
|
,#{phone,jdbcType=VARCHAR}
|
|
|
+ ,#{idCard,jdbcType=VARCHAR}
|
|
|
,#{openId,jdbcType= NUMERIC }
|
|
|
,#{faceEnabled,jdbcType= NUMERIC }
|
|
|
,#{cardEnabled,jdbcType= NUMERIC }
|
|
@@ -75,6 +77,9 @@
|
|
|
<if test="phone!=null">
|
|
|
phone_=#{phone,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="idCard!=null">
|
|
|
+ id_card=#{idCard,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="openId!=null">
|
|
|
open_id=#{openId,jdbcType= NUMERIC },
|
|
|
</if>
|
|
@@ -128,20 +133,21 @@
|
|
|
</update>
|
|
|
<select id="get" parameterType="string" resultMap="PersonInfoMap">
|
|
|
select
|
|
|
- id_,company_id,name_,phone_,open_id,face_enabled,card_enabled,app_enabled,password_enabled,guest_enabled,position1_,position2_,position3_,position4_,position5_,del_flag,create_by,create_time,update_by,update_time
|
|
|
- from base_person_info where id_=#{0}
|
|
|
+ *
|
|
|
+ from base_person_info where id_=#{0} and del_flag = 0
|
|
|
</select>
|
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
|
- select count(*) from base_person_info where id_=#{0}
|
|
|
+ select count(*) from base_person_info where id_=#{0} and del_flag = 0
|
|
|
</select>
|
|
|
<select id="list" resultMap="PersonInfoMap">
|
|
|
- select * from base_person_info
|
|
|
+ select * from base_person_info where del_flag = 0
|
|
|
</select>
|
|
|
<select id="search" parameterType="hashmap" resultMap="PersonInfoMap">
|
|
|
<![CDATA[
|
|
|
select * from base_person_info
|
|
|
]]>
|
|
|
<where>
|
|
|
+ del_flag = 0
|
|
|
<if test="searchParams.id != null">
|
|
|
and ID_ like #{searchParams.id}
|
|
|
</if>
|