You've already forked FrameTour-BE
修改bug
This commit is contained in:
@ -7,6 +7,10 @@
|
||||
values (#{id}, #{openId}, #{avatarUrl},#{nickname}, #{realName}, #{promoCode}, #{brokerId}, #{agreement}, #{phone},
|
||||
#{country}, #{province}, #{city})
|
||||
</insert>
|
||||
<insert id="addScenicServiceNoticeStatus">
|
||||
insert into scenic_notification(member_id, scenic_id, `status`)
|
||||
values (#{memberId}, #{scenicId}, 1)
|
||||
</insert>
|
||||
<update id="update">
|
||||
update member
|
||||
<set>
|
||||
@ -46,6 +50,17 @@
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<update id="updateScenicServiceNoticeStatus">
|
||||
update scenic_notification
|
||||
set status = (
|
||||
case status
|
||||
when 0 then 1
|
||||
when 1 then 0
|
||||
else status
|
||||
end
|
||||
)
|
||||
where member_id = #{memberId} and scenic_id = #{scenicId}
|
||||
</update>
|
||||
<delete id="deleteById">
|
||||
delete
|
||||
from member
|
||||
@ -105,4 +120,9 @@
|
||||
from member
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="getScenicServiceNoticeStatus" resultType="java.lang.Integer">
|
||||
select status
|
||||
from scenic_notification
|
||||
where member_id = #{memberId} and scenic_id = #{scenicId}
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user