a.id AS "id",
a.office_id AS "office.id",
a.office_name AS "officeName",
a.region AS "region",
a.region_user_id AS "regionUserId",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.remarks AS "remarks",
a.del_flag AS "delFlag"
INSERT INTO show_office_region(
id,
office_id,
office_name,
region,
region_user_id,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag
) VALUES (
#{id},
#{office.id},
#{officeName},
#{region},
#{regionUserId},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag}
)
UPDATE show_office_region SET
office_id = #{office.id},
office_name = #{officeName},
region = #{region},
region_user_id = #{regionUserId},
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks}
WHERE id = #{id}
UPDATE show_office_region SET
del_flag = #{DEL_FLAG_DELETE}
WHERE id = #{id}