{
"id": 1, // 任务id,Long 类型
"maintPlanId": 2, // 保养计划 id,Long 类型
"maintPlanName": "Example Maintenance Plan", // 保养计划名称,String 类型
"maintPlanNum": "MP20250319", // 保养计划编号,String 类型
"taskNum": "T20250319001", // 任务编号,String 类型
"companyId": 1001, // 基地 id,Long 类型
"baseId": 2001, // 基础 id,Long 类型
"principalIds": "7,8,9", // 负责人 ids(sysId),String 类型,逗号分隔
"principalUserIds": "10,11,12", // 负责人 ids(userId),String 类型,逗号分隔
"principalNames": "Principal 1, Principal 2, Principal 3", // 负责人名称,String 类型
"maintenanceIds": "1,2,3", // 保养人员 ids(sys_id),String 类型,逗号分隔
"maintenanceUserIds": "4,5,6", // 保养人员 ids(user_id),String 类型,逗号分隔
"maintenanceNames": "王亚, 望月, 张三", // 巡检人员名称,String 类型
"state": 0, // 任务状态,Integer 类型(0 未开始等)
"checkState": 0, // 保养状态,Integer 类型(0 正常等)
"planStartDate": "2025-03-19 08:00:00", // 计划开始日期,Date 类型
"planEndDate": "2025-03-20 18:00:00", // 计划截止日期,Date 类型
"executeStartDate": null, // 执行开始日期,Date 类型
"executeEndDate": null, // 执行截止日期,Date 类型
"delayDay": null, // 延迟天数,BigDecimal 类型
"checkNum": 10, // 应检设备数,Integer 类型
"badNum": 0, // 异常设备数,Integer 类型
"maintenanceDate": null, // 保养时间,Date 类型
"deviceId": 3001, // 设备 id,Long 类型
"deviceName": "Device A", // 设备名称,String 类型
"deviceNumber": "DN001", // 设备编号,String 类型
"deviceTypeId": 5001, // 设备类型 id,Long 类型
"deviceTypeName": "Device Type A", // 设备类型名称,String 类型
"deviceParentTypeId": 5000, // 设备父类型 id,Long 类型
"deviceParentTypeName": "Parent Device Type", // 设备父类型名称,String 类型
"deviceModel": "Model X", // 设备型号,String 类型
"image": "http://example.com/deviceA.jpg", // 设备图片,String 类型
"createTime": "2025-03-19 09:00:00", // 添加时间,Date 类型
"createBy": "admin", // 添加人,String 类型
"updateTime": "2025-03-19 09:30:00", // 修改时间,Date 类型
"updateBy": "admin" // 修改人,String 类型
}
curl --location --request PUT '/api/v1/maintenance/task/edit' \
--header 'Token: {{TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 1, // 任务id,Long 类型
"maintPlanId": 2, // 保养计划 id,Long 类型
"maintPlanName": "Example Maintenance Plan", // 保养计划名称,String 类型
"maintPlanNum": "MP20250319", // 保养计划编号,String 类型
"taskNum": "T20250319001", // 任务编号,String 类型
"companyId": 1001, // 基地 id,Long 类型
"baseId": 2001, // 基础 id,Long 类型
"principalIds": "7,8,9", // 负责人 ids(sysId),String 类型,逗号分隔
"principalUserIds": "10,11,12", // 负责人 ids(userId),String 类型,逗号分隔
"principalNames": "Principal 1, Principal 2, Principal 3", // 负责人名称,String 类型
"maintenanceIds": "1,2,3", // 保养人员 ids(sys_id),String 类型,逗号分隔
"maintenanceUserIds": "4,5,6", // 保养人员 ids(user_id),String 类型,逗号分隔
"maintenanceNames": "王亚, 望月, 张三", // 巡检人员名称,String 类型
"state": 0, // 任务状态,Integer 类型(0 未开始等)
"checkState": 0, // 保养状态,Integer 类型(0 正常等)
"planStartDate": "2025-03-19 08:00:00", // 计划开始日期,Date 类型
"planEndDate": "2025-03-20 18:00:00", // 计划截止日期,Date 类型
"executeStartDate": null, // 执行开始日期,Date 类型
"executeEndDate": null, // 执行截止日期,Date 类型
"delayDay": null, // 延迟天数,BigDecimal 类型
"checkNum": 10, // 应检设备数,Integer 类型
"badNum": 0, // 异常设备数,Integer 类型
"maintenanceDate": null, // 保养时间,Date 类型
"deviceId": 3001, // 设备 id,Long 类型
"deviceName": "Device A", // 设备名称,String 类型
"deviceNumber": "DN001", // 设备编号,String 类型
"deviceTypeId": 5001, // 设备类型 id,Long 类型
"deviceTypeName": "Device Type A", // 设备类型名称,String 类型
"deviceParentTypeId": 5000, // 设备父类型 id,Long 类型
"deviceParentTypeName": "Parent Device Type", // 设备父类型名称,String 类型
"deviceModel": "Model X", // 设备型号,String 类型
"image": "http://example.com/deviceA.jpg", // 设备图片,String 类型
"createTime": "2025-03-19 09:00:00", // 添加时间,Date 类型
"createBy": "admin", // 添加人,String 类型
"updateTime": "2025-03-19 09:30:00", // 修改时间,Date 类型
"updateBy": "admin" // 修改人,String 类型
}'
{
"code": 200,
"data": null,
"message": "操作成功!",
"result": {
"current": "1",
"orders": [],
"pages": "2",
"records": [
{
"badNum": null,
"baseId": "2001",
"checkNum": 1,
"checkState": null,
"companyId": "1001",
"createBy": "admin",
"createTime": 1742374319000,
"delayDay": null,
"deviceId": "3001",
"deviceModel": "Model X",
"deviceName": "Device A",
"deviceNumber": "DN001",
"deviceParentTypeId": "5000",
"deviceParentTypeName": "Parent Device Type",
"deviceTypeId": "5001",
"deviceTypeName": "Device Type A",
"executeEndDate": null,
"executeStartDate": null,
"id": "1",
"image": "http://example.com/deviceA.jpg",
"maintPlanId": "1",
"maintPlanName": "Maintenance Plan 1",
"maintPlanNum": "BY250319165153562",
"maintenanceDate": null,
"maintenanceIds": "1,2,3",
"maintenanceNames": "王亚, 望月, 张三",
"maintenanceUserIds": "4,5,6",
"planEndDate": 1740844800000,
"planStartDate": 1740765600000,
"principalIds": "7,8,9",
"principalNames": "Principal 1, Principal 2, Principal 3",
"principalUserIds": "10,11,12",
"state": 0,
"taskNum": "250319165158734",
"updateBy": "",
"updateTime": 1742374374000
}
],
"searchCount": true,
"size": "10",
"total": "19"
},
"success": true,
"timestamp": "1742376888585"
}