bb_face
insert into
(
id ,
orgId ,
resourceId ,
feature
)
values
(
#{id} ,
#{orgId} ,
#{resourceId} ,
#{feature}
)
/*keyProperty="id" keyColumn="id" useGeneratedKeys="true"*/
insert into bb_face
id,
resourceId,
delFlag,
feature,
createTime
#{Id,jdbcType=VARCHAR},
#{resourceId,jdbcType=VARCHAR},
0,
#{feature,jdbcType=LONGVARBINARY},
NOW()
update
set
id = #{id} ,
orgId = #{orgId} ,
resourceId = #{resourceId} ,
feature = #{feature}
and orgId = #{orgId}
and id = #{id}
update
set
delFlag = '1'
and orgId = #{orgId}
and id = #{id}
and delFlag='0'
id ,
orgId ,
resourceId ,
feature
update bb_face set delFlag = 1 WHERE id = (SELECT faceIds from bb_person_temporary where id = #{id}
and orgId = #{orgId}
)
and orgId = #{orgId}
DELETE FROM bb_face WHERE id = (SELECT faceIds from bb_person_base where id = #{id})