人脸提取特征值(后台服务--公司版)
This commit is contained in:
parent
0876c3b840
commit
57c0bf4dda
File diff suppressed because one or more lines are too long
|
|
@ -4,21 +4,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.canteen.core.android.mapper.FaceMapper">
|
||||
<select id="getFaceFeatureList" resultType="com.bonus.canteen.core.user.domain.UserFace">
|
||||
select
|
||||
user_id,
|
||||
photo_url,
|
||||
features,
|
||||
face_state
|
||||
select user_id,
|
||||
photo_url,
|
||||
features,
|
||||
face_state
|
||||
from user_face
|
||||
<where>
|
||||
and face_state = '1'
|
||||
<if test="userId != null and userId != '' and userId != 0 and userId != '0'">
|
||||
and user_id = #{userId}
|
||||
</if>
|
||||
<if test="time != null and time != ''">
|
||||
and update_time >= #{time} - INTERVAL 10 SECOND
|
||||
</if>
|
||||
</where>
|
||||
where face_state = '1'
|
||||
and features_build_time >= NOW() - INTERVAL 1 DAY
|
||||
<if test="userId != null and userId != '' and userId != 0 and userId != '0'">
|
||||
and user_id = #{userId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getKitchenFaceFeatureList" resultType="com.bonus.canteen.core.user.domain.UserFace">
|
||||
|
|
@ -28,14 +23,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
features,
|
||||
face_state
|
||||
from kitchen_staff_face
|
||||
<where>
|
||||
and face_state = '1'
|
||||
where face_state = '1'
|
||||
and features_build_time >= NOW() - INTERVAL 1 DAY
|
||||
<if test="userId != null and userId != '' and userId != 0 and userId != '0'">
|
||||
and staff_id = #{userId}
|
||||
</if>
|
||||
<if test="time != null and time != ''">
|
||||
and update_time >= #{time} - INTERVAL 10 SECOND
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue