/api/SpiAoi(示例完整地址:http://192.168.1.251:10054/api/SpiAoi)application/json; charset=utf-8status:整数,0 表示成功,1 表示失败message:字符串,返回说明或错误信息data:对象,业务数据载体TotalCount:整数,仅分页接口使用,表示总记录数设备与产线:
- machineName:字符串,可空。检测机台名称。
- lineDisplayName:字符串,可空。产线显示名称。
缺陷计数(均为整数,必须 ≥0):
- offsetCount:偏位数量(器件贴装偏移)。
- missingCount:缺件数量(器件缺失)。
- reverseCount:反向数量(器件极性/方向反装)。
- liftedCount:翘起数量(器件一端或整体翘起)。
- floatHighCount:浮高数量(器件高度超差)。
- tombstoneCount:立碑数量(片式器件一端竖起)。
- flipCount:翻转数量(器件翻面/翻身)。
- wrongPartCount:错件数量(型号/规格错误)。
- leadLiftCount:翘脚数量(引脚未贴伏)。
- coldJointCount:虚焊数量(冷焊/假焊)。
- noSolderCount:空焊数量(焊料缺失)。
- insufficientSolderCount:少锡数量(焊料不足)。
- excessSolderCount:多锡数量(焊料过量)。
- bridgeCount:连锡数量(焊锡桥连)。
- copperExposureCount:漏铜数量(焊盘/线路铜箔外露)。
- spikeCount:拉尖数量(锡料拉尖)。
- foreignMatterCount:异物数量(污染/颗粒)。
- glueOverflowCount:溢胶数量(胶水外溢)。
- pinOffsetCount:引脚偏位数量(引脚未对中)。
产线统计(除比率外为整数,必须 ≥0):
- inputBoards:投入板数(进入检测的板数量)。
- okBoards:OK 板数(检测为 OK 的板数量)。
- passBoards:通过板数(最终判定通过的板数量)。
- passRate:小数,单位百分比。合格率,例如 98.00 表示 98%。
- defectBoards:不良板数(最终判定不良的板数量)。
- defectRate:小数,单位百分比。不良率。
- defectPpm:整数,单位 PPM。不良数(百万分率)。
- defectPoints:不良点数(缺陷点合计)。
- measuredPoints:实测点数(实际完成检测的点数)。
- pendingPoints:待测点数(未完成检测的点数)。
返回字段示例:
- headerId:数据库生成的 ID
- createdAt:创建时间
updatedAt:更新时间以下两个接口覆盖单笔与批量入库场景,均使用 POST。
POST /api/SpiAoi/UploadAoiHeaderjson { "testDate": "2025-10-10", "testTime": "14:33:21", "testResult": "0;0;0:1", "surface": "T", "totalPoints": 500, "actualDefects": 3, "equipmentModel": "SPI-9000", "workOrder": "WO20251010-01", "productModel": "MODEL-ABC", "boardBarcode": "BC123456789", "smtGroup": "A1", "lineName": "SMT-01" } json { "status": 0, "message": "OK", "data": { "headerId": 12001, "message": "AOI header upload succeeded" }, "TotalCount": 0 } POST /api/SpiAoi/UploadAoiHeaderBatchjson [ { "testDate": "2025-10-10", "testTime": "14:33:21", "testResult": "0;0;0:1", "surface": "T", "boardBarcode": "BC123456789" }, { "testDate": "2025-10-10", "testTime": "14:34:00", "testResult": "0;0;0:1", "surface": "B", "boardBarcode": "BC123456790" } ] json { "status": 0, "message": "OK", "data": { "headerIds": [12001, 12002], "message": "AOI header batch upload succeeded" }, "TotalCount": 0 } message,再结合消息中心记录和服务端日志定位问题。