返回包含成功消息和更新后的部门数据的响应实体
此方法首先会检查传入的部门UUID是否为空或空白,如果为空或空白,则抛出业务异常, 表示参数错误接着,调用部门服务的updateDepartment方法更新部门信息最后,使用ResultUtil 工具类生成包含“部门修改成功”消息和更新后的部门数据的响应实体返回
{
"output": "string",
"code": 0,
"message": "string",
"error_message": "string",
"data": {
"department_uuid": "string",
"department_code": "string",
"department_name": "string",
"department_order": 0,
"department_english_name": "string",
"department_short_name": "string",
"department_address": "string",
"is_entity": true,
"administrative_head": "string",
"party_committee_head": "string",
"establishment_date": "string",
"expiration_date": "string",
"unit_category": "string",
"unit_type": "string",
"parent_department": "string",
"assigned_teaching_building": [
"string"
],
"is_teaching_college": true,
"is_attending_college": true,
"fixed_phone": "string",
"remark": "string",
"is_teaching_office": true,
"is_enabled": true,
"created_at": 0,
"updated_at": 0
}
}