|
@@ -5,12 +5,14 @@
|
|
|
<select id="faceCountError" resultType="java.util.Map">
|
|
|
select
|
|
|
sum(t.tmpCount) as tmpCount,
|
|
|
- group_concat(t.photoUrl) as photoUrls
|
|
|
+ group_concat(t.photoUrl) as photoUrls,
|
|
|
+ min(t.createTime) as createTime
|
|
|
from
|
|
|
(
|
|
|
select
|
|
|
count(1) as tmpCount,
|
|
|
- group_concat(tofvh.photo_url) as photoUrl
|
|
|
+ group_concat(tofvh.photo_url) as photoUrl,
|
|
|
+ min(tofvh.create_time) as createTime
|
|
|
from
|
|
|
t_oe_face_verify_history tofvh
|
|
|
<where>
|
|
@@ -33,14 +35,15 @@
|
|
|
union all
|
|
|
select
|
|
|
count(1) as tmpCount,
|
|
|
- group_concat(t.photoUrl)
|
|
|
+ group_concat(t.photoUrl),
|
|
|
+ min(t.create_time) as createTime
|
|
|
from
|
|
|
(
|
|
|
select
|
|
|
CONVERT((tolvh.actions->>'$.faceCount')
|
|
|
USING utf8) as faceCount, tolvh.`exception`,
|
|
|
CONVERT((tolvh.actions->>'$.photoUrl')
|
|
|
- USING utf8) as photoUrl
|
|
|
+ USING utf8) as photoUrl,tolvh.create_time
|
|
|
from
|
|
|
t_oe_liveness_verify_history tolvh
|
|
|
<where>
|
|
@@ -67,12 +70,14 @@
|
|
|
<select id="faceCompareError" resultType="java.util.Map">
|
|
|
select
|
|
|
sum(t.tmpCount) as tmpCount,
|
|
|
- group_concat(t.photoUrl) as photoUrls
|
|
|
+ group_concat(t.photoUrl) as photoUrls,
|
|
|
+ min(t.createTime) as createTime
|
|
|
from
|
|
|
(
|
|
|
select
|
|
|
count(1) as tmpCount,
|
|
|
- group_concat(tofvh.photo_url) as photoUrl
|
|
|
+ group_concat(tofvh.photo_url) as photoUrl,
|
|
|
+ min(tofvh.create_time) as createTime
|
|
|
from
|
|
|
t_oe_face_verify_history tofvh
|
|
|
<where>
|
|
@@ -85,20 +90,27 @@
|
|
|
</where>
|
|
|
group by tofvh.`exception`
|
|
|
union all
|
|
|
- select
|
|
|
+ select
|
|
|
count(1) as tmpCount,
|
|
|
+ group_concat(t.photoUrl),
|
|
|
+ min(t.create_time) as createTime
|
|
|
+ from
|
|
|
+ (
|
|
|
+ select
|
|
|
+ CONVERT((tolvh.actions->>'$.faceCount')
|
|
|
+ USING utf8) as faceCount, tolvh.`exception`,
|
|
|
CONVERT((tolvh.actions->>'$.photoUrl')
|
|
|
- USING utf8) as photoUrl
|
|
|
- from
|
|
|
+ USING utf8) as photoUrl,tolvh.create_time
|
|
|
+ from
|
|
|
t_oe_liveness_verify_history tolvh
|
|
|
- <where>
|
|
|
- <if test="recordId != null and recordId != ''">
|
|
|
- and tolvh.exam_record_id = #{recordId}
|
|
|
- </if>
|
|
|
- <if test="exception != null and exception != ''">
|
|
|
- and tolvh.`exception` = #{exception}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- group by tolvh.`exception`) t
|
|
|
+ <where>
|
|
|
+ <if test="recordId != null and recordId != ''">
|
|
|
+ and tolvh.exam_record_id = #{recordId}
|
|
|
+ </if>
|
|
|
+ <if test="exception != null and exception != ''">
|
|
|
+ and tolvh.`exception` = #{exception}
|
|
|
+ </if>
|
|
|
+ </where> ) t
|
|
|
+ group by t.`exception`) t
|
|
|
</select>
|
|
|
</mapper>
|