bb_person_temporary
id, orgId, officeId, cardId, userId, userName,name, no, mnemonicCode, gender, nation, phone, type, photos,
faceIds, registerAddress, distributionIds, distributionNames, createBy, createTime,
updateBy, updateTime, remarks, delFlag, rev_json
t.delFlag = '0'
and t.name like concat('%', #{name}, '%')
and t.no like concat('%', #{no}, '%')
and t.orgId = #{orgId}
and t.officeId = #{officeId}
and t.cardId = #{cardId}
and t.gender = #{gender}
delete from
where id = #{id,jdbcType=VARCHAR}
/*keyProperty="id" useGeneratedKeys="true"*/
insert into
id,
orgId,
officeId,
cardId,
userId,
userName,
name,
no,
mnemonicCode,
gender,
nation,
phone,
type,
photos,
faceIds,
registerAddress,
distributionIds,
distributionNames,
createBy,
createTime,
updateBy,
updateTime,
remarks,
delFlag,
rev_json,
#{id,jdbcType=VARCHAR},
#{orgId,jdbcType=INTEGER},
#{officeId,jdbcType=INTEGER},
#{cardId,jdbcType=VARCHAR},
#{userId,jdbcType=INTEGER},
#{userName,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR},
#{no,jdbcType=VARCHAR},
#{mnemonicCode,jdbcType=VARCHAR},
#{gender,jdbcType=VARCHAR},
#{nation,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR},
#{type,jdbcType=VARCHAR},
#{photos,jdbcType=VARCHAR},
#{faceIds,jdbcType=VARCHAR},
#{registerAddress,jdbcType=VARCHAR},
#{distributionIds,jdbcType=VARCHAR},
#{distributionNames,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{remarks,jdbcType=VARCHAR},
#{delFlag,jdbcType=VARCHAR},
#{revJson,jdbcType=OTHER},
update
orgId = #{orgId,jdbcType=INTEGER},
officeId = #{officeId,jdbcType=INTEGER},
cardId = #{cardId,jdbcType=VARCHAR},
userId,
userName,
name = #{name,jdbcType=VARCHAR},
no = #{no,jdbcType=VARCHAR},
mnemonicCode = #{mnemonicCode,jdbcType=VARCHAR},
gender = #{gender,jdbcType=VARCHAR},
nation = #{nation,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
type = #{type,jdbcType=VARCHAR},
photos = #{photos,jdbcType=VARCHAR},
faceIds = #{faceIds,jdbcType=VARCHAR},
registerAddress = #{registerAddress,jdbcType=VARCHAR},
distributionIds = #{distributionIds,jdbcType=VARCHAR},
distributionNames = #{distributionNames,jdbcType=VARCHAR},
createBy = #{createBy,jdbcType=VARCHAR},
createTime = #{createTime,jdbcType=TIMESTAMP},
updateBy = #{updateBy,jdbcType=VARCHAR},
updateTime = #{updateTime,jdbcType=TIMESTAMP},
remarks = #{remarks,jdbcType=VARCHAR},
delFlag = #{delFlag,jdbcType=VARCHAR},
rev_json = #{revJson,jdbcType=OTHER},
where id = #{id,jdbcType=VARCHAR}
update
set
delFlag = '1'
where id = #{id,jdbcType=VARCHAR}