feat:人脸质量
This commit is contained in:
1 parent
3effd6f9be
commit
241e9b0c46
2 files changed
+30
No files matched your search
@@ -10,6 +10,11 @@
|
||||
a.process_id,
|
||||
a.process_status,
|
||||
a.face_img,
|
||||
a.quality_score,
|
||||
a.quality_status,
|
||||
a.quality_checked_at,
|
||||
a.quality_error_code,
|
||||
a.quality_device_id,
|
||||
a.create_by,
|
||||
a.create_time,
|
||||
a.update_by,
|
||||
@@ -33,6 +38,23 @@
|
||||
<if test="pa.processStatus != null">
|
||||
and a.process_status = #{pa.processStatus}
|
||||
</if>
|
||||
<!-- 固定 0.60 阈值与终端默认在库阈值、PC 列表质量标签的分类规则保持一致。 -->
|
||||
<if test="pa.qualityCategory != null and pa.qualityCategory != ''">
|
||||
<choose>
|
||||
<when test="pa.qualityCategory == 'qualified'">
|
||||
and a.quality_status = 'detected' and a.quality_score >= 0.60
|
||||
</when>
|
||||
<when test="pa.qualityCategory == 'low'">
|
||||
and a.quality_status = 'detected' and a.quality_score < 0.60
|
||||
</when>
|
||||
<when test="pa.qualityCategory == 'failed'">
|
||||
and a.quality_status = 'failed'
|
||||
</when>
|
||||
<when test="pa.qualityCategory == 'pending'">
|
||||
and a.quality_status is null
|
||||
</when>
|
||||
</choose>
|
||||
</if>
|
||||
<if test="pa.isProcessIdNotNull != null and pa.isProcessIdNotNull == true ">
|
||||
and a.process_id is not null
|
||||
</if>
|
||||
|
||||
Reference in new issue
Block a user