修改bug

This commit is contained in:
longbinbin
2024-12-11 14:30:36 +08:00
parent b3ecacf3a3
commit 54d9d077f1
7 changed files with 80 additions and 2 deletions

View File

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