{
"output": "Success",
"code": 200,
"message": "查询教师列表成功",
"data": {
"records": [
{
"teacher_uuid": "f7b8495fb12945f69a7f4e910c7c0a0b",
"unit_uuid": "43f277dce2a44d22a5662a66c63d9251",
"user_uuid": null,
"id": "T002",
"name": "李四",
"english_name": "Li Si",
"ethnic": "汉族",
"sex": true,
"phone": null,
"type": "0d7bcfa6dabf45a797658675b8e8633e",
"email": null,
"job_title": null,
"desc": null,
"status": 2,
"created_at": 1742022277000,
"updated_at": 1742022277000
},
{
"teacher_uuid": "d243ecc8c75047c0b1292fc2453d3109",
"unit_uuid": "43f277dce2a44d22a5662a66c63d9251",
"user_uuid": null,
"id": "T001",
"name": "张三",
"english_name": "Zhang San",
"ethnic": "汉族",
"sex": true,
"phone": null,
"type": "0d7bcfa6dabf45a797658675b8e8633e",
"email": null,
"job_title": null,
"desc": null,
"status": 2,
"created_at": 1742022277000,
"updated_at": 1742022277000
},
{
"teacher_uuid": "a396496da8ef4343aabf01eeacb26399",
"unit_uuid": "43f277dce2a44d22a5662a66c63d9251",
"user_uuid": null,
"id": "T003",
"name": "王五",
"english_name": "Wang Wu",
"ethnic": "汉族",
"sex": true,
"phone": null,
"type": "f79d28f65b26436392e78a4d5e97b396",
"email": null,
"job_title": null,
"desc": null,
"status": 2,
"created_at": 1742022277000,
"updated_at": 1742022277000
},
{
"teacher_uuid": "612e27bbb9124268a69d9c87656c40a2",
"unit_uuid": "788fe488487143a9ac75013b0e8a8de9",
"user_uuid": null,
"id": "T004",
"name": "赵六",
"english_name": "Zhao Liu",
"ethnic": "汉族",
"sex": true,
"phone": null,
"type": "0d7bcfa6dabf45a797658675b8e8633e",
"email": null,
"job_title": null,
"desc": null,
"status": 2,
"created_at": 1742022277000,
"updated_at": 1742022277000
},
{
"teacher_uuid": "42aa755b358c4a00a37e4315eef357c6",
"unit_uuid": "788fe488487143a9ac75013b0e8a8de9",
"user_uuid": null,
"id": "T006",
"name": "周八",
"english_name": "Zhou Ba",
"ethnic": "汉族",
"sex": true,
"phone": null,
"type": "0788893f2bfc436dbd6f6a1348e7d9cd",
"email": null,
"job_title": null,
"desc": null,
"status": 2,
"created_at": 1742022277000,
"updated_at": 1742022277000
},
{
"teacher_uuid": "3390fa33e9b54e6bac229b2b38fbc1fc",
"unit_uuid": "788fe488487143a9ac75013b0e8a8de9",
"user_uuid": null,
"id": "T005",
"name": "孙七",
"english_name": "Sun Qi",
"ethnic": "汉族",
"sex": true,
"phone": null,
"type": "0d7bcfa6dabf45a797658675b8e8633e",
"email": null,
"job_title": null,
"desc": null,
"status": 2,
"created_at": 1742022277000,
"updated_at": 1742022277000
},
{
"teacher_uuid": "2373acc26c7740b7897bfe4c1e98d2a2",
"unit_uuid": "e3a6349330e24711b346e04d9ebabd26",
"user_uuid": "b551efd9ef6248e9b5240dbc9d579a81",
"id": "T10000",
"name": "测试教师",
"english_name": " Test Teacher",
"ethnic": "汉族",
"sex": true,
"phone": null,
"type": "0d7bcfa6dabf45a797658675b8e8633e",
"email": null,
"job_title": null,
"desc": null,
"status": 1,
"created_at": 1742022277000,
"updated_at": 1742022280000
}
],
"total": 7,
"size": 20,
"current": 1
}
}
Bug 概述
获取教师列表有bug
重现步骤
根据状态查询教师时,不管输入什么状态返回教师列表都没有数据,什么状态都不填时:
返回数据为
{ "output": "Success", "code": 200, "message": "查询教师列表成功", "data": { "records": [ { "teacher_uuid": "f7b8495fb12945f69a7f4e910c7c0a0b", "unit_uuid": "43f277dce2a44d22a5662a66c63d9251", "user_uuid": null, "id": "T002", "name": "李四", "english_name": "Li Si", "ethnic": "汉族", "sex": true, "phone": null, "type": "0d7bcfa6dabf45a797658675b8e8633e", "email": null, "job_title": null, "desc": null, "status": 2, "created_at": 1742022277000, "updated_at": 1742022277000 }, { "teacher_uuid": "d243ecc8c75047c0b1292fc2453d3109", "unit_uuid": "43f277dce2a44d22a5662a66c63d9251", "user_uuid": null, "id": "T001", "name": "张三", "english_name": "Zhang San", "ethnic": "汉族", "sex": true, "phone": null, "type": "0d7bcfa6dabf45a797658675b8e8633e", "email": null, "job_title": null, "desc": null, "status": 2, "created_at": 1742022277000, "updated_at": 1742022277000 }, { "teacher_uuid": "a396496da8ef4343aabf01eeacb26399", "unit_uuid": "43f277dce2a44d22a5662a66c63d9251", "user_uuid": null, "id": "T003", "name": "王五", "english_name": "Wang Wu", "ethnic": "汉族", "sex": true, "phone": null, "type": "f79d28f65b26436392e78a4d5e97b396", "email": null, "job_title": null, "desc": null, "status": 2, "created_at": 1742022277000, "updated_at": 1742022277000 }, { "teacher_uuid": "612e27bbb9124268a69d9c87656c40a2", "unit_uuid": "788fe488487143a9ac75013b0e8a8de9", "user_uuid": null, "id": "T004", "name": "赵六", "english_name": "Zhao Liu", "ethnic": "汉族", "sex": true, "phone": null, "type": "0d7bcfa6dabf45a797658675b8e8633e", "email": null, "job_title": null, "desc": null, "status": 2, "created_at": 1742022277000, "updated_at": 1742022277000 }, { "teacher_uuid": "42aa755b358c4a00a37e4315eef357c6", "unit_uuid": "788fe488487143a9ac75013b0e8a8de9", "user_uuid": null, "id": "T006", "name": "周八", "english_name": "Zhou Ba", "ethnic": "汉族", "sex": true, "phone": null, "type": "0788893f2bfc436dbd6f6a1348e7d9cd", "email": null, "job_title": null, "desc": null, "status": 2, "created_at": 1742022277000, "updated_at": 1742022277000 }, { "teacher_uuid": "3390fa33e9b54e6bac229b2b38fbc1fc", "unit_uuid": "788fe488487143a9ac75013b0e8a8de9", "user_uuid": null, "id": "T005", "name": "孙七", "english_name": "Sun Qi", "ethnic": "汉族", "sex": true, "phone": null, "type": "0d7bcfa6dabf45a797658675b8e8633e", "email": null, "job_title": null, "desc": null, "status": 2, "created_at": 1742022277000, "updated_at": 1742022277000 }, { "teacher_uuid": "2373acc26c7740b7897bfe4c1e98d2a2", "unit_uuid": "e3a6349330e24711b346e04d9ebabd26", "user_uuid": "b551efd9ef6248e9b5240dbc9d579a81", "id": "T10000", "name": "测试教师", "english_name": " Test Teacher", "ethnic": "汉族", "sex": true, "phone": null, "type": "0d7bcfa6dabf45a797658675b8e8633e", "email": null, "job_title": null, "desc": null, "status": 1, "created_at": 1742022277000, "updated_at": 1742022280000 } ], "total": 7, "size": 20, "current": 1 } }这里有个状态为1,我再设置请求数据中状态为1:
预期行为
后端应该返回状态为1的教师数据
实际行为
没有返回任何教师数据
环境信息
日志/错误信息
{ "output": "Success", "code": 200, "message": "查询教师列表成功", "data": { "records": [], "total": 0, "size": 20, "current": 1 } }