insert into ${tableName} ( ${key} ,DEL_FLAG ,REVISION ,CREATED_TIME ,UPDATED_TIME ) values ( #{value} ,'0' ,'0' ,NOW() ,NOW() ) UPDATE ${tableName} SET ${key} = #{value} ,UPDATED_TIME = NOW() WHERE id = #{id} ic_resi_user.DEL_FLAG = '0' AND ${resultTableName}.ID IS NOT NULL AND ( NAME = #{keyword} or MOBILE = #{keyword} or ID_CARD = #{keyword} ) and ic_resi_user.customer_id=#{customerId} and (ic_resi_user.AGENCY_ID =#{currentStaffAgencyId} or ic_resi_user.pids like concat(#{staffOrgPath},'%')) and ${subCondition.tableName}.${subCondition.columnName} = #{subCondition.columnValue[0]} and ${subCondition.tableName}.${subCondition.columnName} like concat('%',#{subCondition.columnValue[0]},'%') and ${subCondition.tableName}.${subCondition.columnName} between #{subCondition.columnValue[0]} and #{subCondition.columnValue[1]} ic_resi_user.DEL_FLAG = '0' and ic_resi_user.customer_id=#{customerId} and ${subCondition.tableName}.${subCondition.columnName} = #{subCondition.columnValue[0]} and ${subCondition.tableName}.${subCondition.columnName} like concat('%',#{subCondition.columnValue[0]},'%') and ${subCondition.tableName}.${subCondition.columnName} between #{subCondition.columnValue[0]} and #{subCondition.columnValue[1]} update ic_resi_user set del_flag='1' where id=#{icResiUserId} update ${subTalbeName} set del_flag='1' where IC_RESI_USER=#{icResiUserId}