小程序首页景区列表,任务状态接口

This commit is contained in:
songmingsong
2024-12-06 16:15:13 +08:00
parent 961df0a151
commit 8cb58289df
21 changed files with 270 additions and 26 deletions

View File

@ -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>

View File

@ -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"/>

View File

@ -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>

View File

@ -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>