and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} id, personnel_id, company_id, personnel_type, `position`, department, is_default, start_date, end_date, position_order, create_by, create_time, update_by, update_time, delete_tag delete from person_company_position_mapping where id = #{id,jdbcType=VARCHAR} delete from person_company_position_mapping insert into person_company_position_mapping (id, personnel_id, company_id, personnel_type, `position`, department, is_default, start_date, end_date, position_order, create_by, create_time, update_by, update_time, delete_tag ) values (#{id,jdbcType=VARCHAR}, #{personnelId,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{personnelType,jdbcType=INTEGER}, #{position,jdbcType=VARCHAR}, #{department,jdbcType=VARCHAR}, #{isDefault,jdbcType=INTEGER}, #{startDate,jdbcType=DATE}, #{endDate,jdbcType=DATE}, #{positionOrder,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER} ) insert into person_company_position_mapping id, personnel_id, company_id, personnel_type, `position`, department, is_default, start_date, end_date, position_order, create_by, create_time, update_by, update_time, delete_tag, #{id,jdbcType=VARCHAR}, #{personnelId,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{personnelType,jdbcType=INTEGER}, #{position,jdbcType=VARCHAR}, #{department,jdbcType=VARCHAR}, #{isDefault,jdbcType=INTEGER}, #{startDate,jdbcType=DATE}, #{endDate,jdbcType=DATE}, #{positionOrder,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}, update person_company_position_mapping id = #{record.id,jdbcType=VARCHAR}, personnel_id = #{record.personnelId,jdbcType=VARCHAR}, company_id = #{record.companyId,jdbcType=VARCHAR}, personnel_type = #{record.personnelType,jdbcType=INTEGER}, `position` = #{record.position,jdbcType=VARCHAR}, department = #{record.department,jdbcType=VARCHAR}, is_default = #{record.isDefault,jdbcType=INTEGER}, start_date = #{record.startDate,jdbcType=DATE}, end_date = #{record.endDate,jdbcType=DATE}, position_order = #{record.positionOrder,jdbcType=INTEGER}, create_by = #{record.createBy,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_by = #{record.updateBy,jdbcType=VARCHAR}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, delete_tag = #{record.deleteTag,jdbcType=INTEGER}, update person_company_position_mapping set id = #{record.id,jdbcType=VARCHAR}, personnel_id = #{record.personnelId,jdbcType=VARCHAR}, company_id = #{record.companyId,jdbcType=VARCHAR}, personnel_type = #{record.personnelType,jdbcType=INTEGER}, `position` = #{record.position,jdbcType=VARCHAR}, department = #{record.department,jdbcType=VARCHAR}, is_default = #{record.isDefault,jdbcType=INTEGER}, start_date = #{record.startDate,jdbcType=DATE}, end_date = #{record.endDate,jdbcType=DATE}, position_order = #{record.positionOrder,jdbcType=INTEGER}, create_by = #{record.createBy,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_by = #{record.updateBy,jdbcType=VARCHAR}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, delete_tag = #{record.deleteTag,jdbcType=INTEGER} update person_company_position_mapping personnel_id = #{personnelId,jdbcType=VARCHAR}, company_id = #{companyId,jdbcType=VARCHAR}, personnel_type = #{personnelType,jdbcType=INTEGER}, `position` = #{position,jdbcType=VARCHAR}, department = #{department,jdbcType=VARCHAR}, is_default = #{isDefault,jdbcType=INTEGER}, start_date = #{startDate,jdbcType=DATE}, end_date = #{endDate,jdbcType=DATE}, position_order = #{positionOrder,jdbcType=INTEGER}, create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, update_time = #{updateTime,jdbcType=TIMESTAMP}, delete_tag = #{deleteTag,jdbcType=INTEGER}, where id = #{id,jdbcType=VARCHAR} update person_company_position_mapping set personnel_id = #{personnelId,jdbcType=VARCHAR}, company_id = #{companyId,jdbcType=VARCHAR}, personnel_type = #{personnelType,jdbcType=INTEGER}, `position` = #{position,jdbcType=VARCHAR}, department = #{department,jdbcType=VARCHAR}, is_default = #{isDefault,jdbcType=INTEGER}, start_date = #{startDate,jdbcType=DATE}, end_date = #{endDate,jdbcType=DATE}, position_order = #{positionOrder,jdbcType=INTEGER}, create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, update_time = #{updateTime,jdbcType=TIMESTAMP}, delete_tag = #{deleteTag,jdbcType=INTEGER} where id = #{id,jdbcType=VARCHAR} update person_company_position_mapping when id = #{item.id,jdbcType=VARCHAR} then #{item.personnelId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.companyId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.personnelType,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.position,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.department,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.isDefault,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.startDate,jdbcType=DATE} when id = #{item.id,jdbcType=VARCHAR} then #{item.endDate,jdbcType=DATE} when id = #{item.id,jdbcType=VARCHAR} then #{item.positionOrder,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER} where id in #{item.id,jdbcType=VARCHAR} update person_company_position_mapping when id = #{item.id,jdbcType=VARCHAR} then #{item.personnelId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.companyId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.personnelType,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.position,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.department,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.isDefault,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.startDate,jdbcType=DATE} when id = #{item.id,jdbcType=VARCHAR} then #{item.endDate,jdbcType=DATE} when id = #{item.id,jdbcType=VARCHAR} then #{item.positionOrder,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER} where id in #{item.id,jdbcType=VARCHAR} insert into person_company_position_mapping (id, personnel_id, company_id, personnel_type, `position`, department, is_default, start_date, end_date, position_order, create_by, create_time, update_by, update_time, delete_tag) values (#{item.id,jdbcType=VARCHAR}, #{item.personnelId,jdbcType=VARCHAR}, #{item.companyId,jdbcType=VARCHAR}, #{item.personnelType,jdbcType=INTEGER}, #{item.position,jdbcType=VARCHAR}, #{item.department,jdbcType=VARCHAR}, #{item.isDefault,jdbcType=INTEGER}, #{item.startDate,jdbcType=DATE}, #{item.endDate,jdbcType=DATE}, #{item.positionOrder,jdbcType=INTEGER}, #{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteTag,jdbcType=INTEGER} ) insert into person_company_position_mapping (id, personnel_id, company_id, personnel_type, `position`, department, is_default, start_date, end_date, position_order, create_by, create_time, update_by, update_time, delete_tag) values (#{id,jdbcType=VARCHAR}, #{personnelId,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{personnelType,jdbcType=INTEGER}, #{position,jdbcType=VARCHAR}, #{department,jdbcType=VARCHAR}, #{isDefault,jdbcType=INTEGER}, #{startDate,jdbcType=DATE}, #{endDate,jdbcType=DATE}, #{positionOrder,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER} ) on duplicate key update id = #{id,jdbcType=VARCHAR}, personnel_id = #{personnelId,jdbcType=VARCHAR}, company_id = #{companyId,jdbcType=VARCHAR}, personnel_type = #{personnelType,jdbcType=INTEGER}, `position` = #{position,jdbcType=VARCHAR}, department = #{department,jdbcType=VARCHAR}, is_default = #{isDefault,jdbcType=INTEGER}, start_date = #{startDate,jdbcType=DATE}, end_date = #{endDate,jdbcType=DATE}, position_order = #{positionOrder,jdbcType=INTEGER}, create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, update_time = #{updateTime,jdbcType=TIMESTAMP}, delete_tag = #{deleteTag,jdbcType=INTEGER} insert into person_company_position_mapping id, personnel_id, company_id, personnel_type, `position`, department, is_default, start_date, end_date, position_order, create_by, create_time, update_by, update_time, delete_tag, values #{id,jdbcType=VARCHAR}, #{personnelId,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{personnelType,jdbcType=INTEGER}, #{position,jdbcType=VARCHAR}, #{department,jdbcType=VARCHAR}, #{isDefault,jdbcType=INTEGER}, #{startDate,jdbcType=DATE}, #{endDate,jdbcType=DATE}, #{positionOrder,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}, on duplicate key update id = #{id,jdbcType=VARCHAR}, personnel_id = #{personnelId,jdbcType=VARCHAR}, company_id = #{companyId,jdbcType=VARCHAR}, personnel_type = #{personnelType,jdbcType=INTEGER}, `position` = #{position,jdbcType=VARCHAR}, department = #{department,jdbcType=VARCHAR}, is_default = #{isDefault,jdbcType=INTEGER}, start_date = #{startDate,jdbcType=DATE}, end_date = #{endDate,jdbcType=DATE}, position_order = #{positionOrder,jdbcType=INTEGER}, create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, update_time = #{updateTime,jdbcType=TIMESTAMP}, delete_tag = #{deleteTag,jdbcType=INTEGER},