|
@@ -30,6 +30,7 @@
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="popedom" column="popedom_"/>
|
|
|
<result property="wechatNoticeEnabled" column="wechat_notice_enabled"/>
|
|
|
+ <result property="allowViewLocal" column="allow_view_local"/>
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.smart.modules.base.entity.PersonInfo">
|
|
|
<selectKey resultType="long" keyColumn="id_" keyProperty="id">
|
|
@@ -40,7 +41,7 @@
|
|
|
(company_id,name_,phone_,id_card,open_id,face_enabled,face_bound,card_enabled,
|
|
|
app_enabled,password_enabled,guest_enabled,position1_,position2_,
|
|
|
position3_,position4_,position5_,face_image_url,del_flag,
|
|
|
- create_by,create_time,update_by,update_time,popedom_,wechat_notice_enabled)
|
|
|
+ create_by,create_time,update_by,update_time,popedom_,wechat_notice_enabled,allow_view_local)
|
|
|
values
|
|
|
(
|
|
|
#{companyId,jdbcType=VARCHAR}
|
|
@@ -67,6 +68,7 @@
|
|
|
,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
,#{popedom,jdbcType= VARCHAR }
|
|
|
,#{wechatNoticeEnabled,jdbcType= NUMERIC }
|
|
|
+ ,#{allowViewLocal,jdbcType= NUMERIC }
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
@@ -148,6 +150,9 @@
|
|
|
<if test="wechatNoticeEnabled!=null">
|
|
|
wechat_notice_enabled=#{wechatNoticeEnabled,jdbcType= VARCHAR },
|
|
|
</if>
|
|
|
+ <if test="allowViewLocal!=null">
|
|
|
+ allow_view_local=#{allowViewLocal,jdbcType= VARCHAR },
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|
|
@@ -334,7 +339,6 @@
|
|
|
<foreach collection="list" index="index" item="item" open="and company_id in(" separator="," close=")">
|
|
|
#{item.id}
|
|
|
</foreach>
|
|
|
-
|
|
|
</select>
|
|
|
|
|
|
<select id="findById" resultMap="PersonInfoMap">
|