You've already forked FrameTour-BE
人脸检测逻辑
This commit is contained in:
@ -53,4 +53,9 @@
|
||||
left join scenic s on d.scenic_id = s.id
|
||||
where d.id = #{id}
|
||||
</select>
|
||||
<select id="listByScenicId" resultType="com.ycwl.basic.model.pc.device.resp.DeviceRespVO">
|
||||
select d.id, d.name, no, d.status, create_at, d.update_at
|
||||
from device d
|
||||
where d.scenic_id = #{scenicId}
|
||||
</select>
|
||||
</mapper>
|
@ -2,8 +2,8 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ycwl.basic.mapper.pc.FaceMapper">
|
||||
<insert id="add">
|
||||
insert into face(id, member_id, face_url, match_sample_ids, first_match_rate, match_result)
|
||||
values (#{id}, #{memberId}, #{faceUrl}, #{matchSampleIds}, #{firstMatchRate}, #{matchResult})
|
||||
insert into face(id, score, member_id, face_url, match_sample_ids, first_match_rate, match_result)
|
||||
values (#{id}, #{score}, #{memberId}, #{faceUrl}, #{matchSampleIds}, #{firstMatchRate}, #{matchResult})
|
||||
</insert>
|
||||
<update id="update">
|
||||
update face
|
||||
@ -11,6 +11,9 @@
|
||||
<if test="memberId!= null ">
|
||||
member_id = #{memberId},
|
||||
</if>
|
||||
<if test="score!= null ">
|
||||
score = #{score},
|
||||
</if>
|
||||
<if test="faceUrl!= null and faceUrl!= ''">
|
||||
face_url = #{faceUrl},
|
||||
</if>
|
||||
|
@ -42,9 +42,12 @@
|
||||
</if>
|
||||
</delete>
|
||||
<select id="list" resultType="com.ycwl.basic.model.pc.faceSample.resp.FaceSampleRespVO">
|
||||
select id, device_id, face_url, match_sample_ids, first_match_rate, match_result,`status`
|
||||
select id, scenic_id, device_id, face_url, match_sample_ids, first_match_rate, match_result,`status`
|
||||
from face_sample
|
||||
<where>
|
||||
<if test="scenicId!= null and scenicId!= ''">
|
||||
and device_id = #{deviceId}
|
||||
</if>
|
||||
<if test="deviceId!= null and deviceId!= ''">
|
||||
and device_id = #{deviceId}
|
||||
</if>
|
||||
@ -69,7 +72,7 @@
|
||||
</where>
|
||||
</select>
|
||||
<select id="getById" resultType="com.ycwl.basic.model.pc.faceSample.resp.FaceSampleRespVO">
|
||||
select id, device_id, face_url, match_sample_ids, first_match_rate, match_result,`status`
|
||||
select id, scenic_id, device_id, face_url, match_sample_ids, first_match_rate, match_result,`status`
|
||||
from face_sample
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
Reference in New Issue
Block a user