INSERT into
(id, company_id, department_name, department_desc, p_id, create_id, create_time)
VALUES
(#{id}, #{companyId}, #{departmentName}, #{departmentDesc}, #{pId}, #{createId}, #{createTime})
DELETE
FROM
company_department
WHERE
id = #{id}
UPDATE company_department
department_name = #{departmentName},
department_desc = #{departmentDesc},
WHERE id = #{id}