You've already forked FrameTour-BE
多环境
This commit is contained in:
@@ -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.SourceMapper">
|
||||
<insert id="add">
|
||||
insert into source(id, scenic_id, device_id, member_id, url, video_url, `type`, face_sample_id)
|
||||
values (#{id}, #{scenicId}, #{deviceId}, #{memberId}, #{url}, #{videoUrl}, #{type}, #{faceSampleId})
|
||||
insert into source(id, scenic_id, device_id, member_id, url, video_url, `type`, face_sample_id, pos_json)
|
||||
values (#{id}, #{scenicId}, #{deviceId}, #{memberId}, #{url}, #{videoUrl}, #{type}, #{faceSampleId}, #{posJson})
|
||||
</insert>
|
||||
<update id="update">
|
||||
update source
|
||||
@@ -16,6 +16,7 @@
|
||||
<if test="isBuy!=null">is_buy = #{isBuy}, </if>
|
||||
<if test="type!=null">`type` = #{type}, </if>
|
||||
<if test="faceSampleId!= null">face_sample_id = #{faceSampleId}, </if>
|
||||
<if test="posJson!= null">pos_json = #{posJson}, </if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
@@ -80,4 +81,10 @@
|
||||
</foreach>
|
||||
and type = 1
|
||||
</select>
|
||||
<select id="findBySampleId" resultType="com.ycwl.basic.model.pc.source.entity.SourceEntity">
|
||||
select *
|
||||
from source
|
||||
where type = 2 and face_sample_id = #{faceSampleId}
|
||||
limit 1
|
||||
</select>
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user