You've already forked FrameTour-BE
小程序首页景区列表,任务状态接口
This commit is contained in:
@ -42,7 +42,7 @@
|
||||
</if>
|
||||
</delete>
|
||||
<select id="list" resultType="com.ycwl.basic.model.pc.face.resp.FaceRespVO">
|
||||
select id, member_id, face_url, match_sample_ids, first_match_rate, match_result
|
||||
select id, member_id, face_url,score, match_sample_ids, first_match_rate, match_result
|
||||
from face
|
||||
<where>
|
||||
<if test="memberId!= null and memberId!= ''">
|
||||
@ -66,7 +66,7 @@
|
||||
</where>
|
||||
</select>
|
||||
<select id="getById" resultType="com.ycwl.basic.model.pc.face.resp.FaceRespVO">
|
||||
select id, member_id, face_url, match_sample_ids, first_match_rate, match_result
|
||||
select id, member_id, face_url,score, match_sample_ids, first_match_rate, match_result
|
||||
from face
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
@ -146,6 +146,31 @@
|
||||
from scenic s
|
||||
where `status` = 1 and s.id = #{id}
|
||||
</select>
|
||||
<select id="scenicListByLnLa" resultType="com.ycwl.basic.model.mobile.scenic.ScenicAppVO">
|
||||
select s.id,
|
||||
`name`,
|
||||
`phone`,
|
||||
introduction,
|
||||
longitude,
|
||||
latitude,
|
||||
radius,
|
||||
province,
|
||||
city,
|
||||
area,
|
||||
address,
|
||||
(SELECT COUNT(1) FROM device WHERE scenic_id = s.id AND status = 1) as deviceNum,
|
||||
ifnull(
|
||||
cast(
|
||||
ST_Distance_Sphere(
|
||||
Point(longitude, latitude), Point(#{params.longitude}, #{params.latitude})
|
||||
) AS
|
||||
DECIMAL(10, 2)
|
||||
), 0
|
||||
) AS distance
|
||||
from scenic s
|
||||
where `status` = 1
|
||||
ORDER BY distance ASC
|
||||
</select>
|
||||
|
||||
<resultMap id="scenicAndConfig" type="com.ycwl.basic.model.pc.scenic.resp.ScenicRespVO">
|
||||
<id property="id" column="id"/>
|
||||
|
@ -54,4 +54,7 @@
|
||||
</where>
|
||||
group by so.type
|
||||
</select>
|
||||
<select id="countByMemberId" resultType="java.lang.Integer">
|
||||
select count(1) from source where member_id = #{userId}
|
||||
</select>
|
||||
</mapper>
|
@ -45,4 +45,14 @@ from task
|
||||
from task
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="countByMemberIdStau" resultType="java.lang.Integer">
|
||||
select count(1) from task
|
||||
where member_id = #{userId} and status IN (0,2)
|
||||
</select>
|
||||
<select id="countByMemberIdStauFinish" resultType="java.lang.Integer">
|
||||
select count(1)
|
||||
from task
|
||||
where member_id = #{userId}
|
||||
and status = 1
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user