0元购逻辑,直接送

This commit is contained in:
2025-01-05 14:20:24 +08:00
parent 7befe07e70
commit 3907b5eb7a
19 changed files with 231 additions and 26 deletions

View File

@ -93,8 +93,8 @@
END AS goods_name,
CASE oi.goods_type
WHEN '0' THEN mvd.face_id
WHEN '1' THEN msd.face_id
WHEN '2' THEN msd.face_id
WHEN '1' THEN oi.goods_id
WHEN '2' THEN oi.goods_id
END AS face_id,
CASE oi.goods_type
WHEN '0' THEN mvd.video_url

View File

@ -187,6 +187,11 @@
from scenic_config
where scenic_id = #{scenicId}
</select>
<select id="get" resultType="com.ycwl.basic.model.pc.scenic.entity.ScenicEntity">
select *
from scenic
where id = #{id}
</select>
<resultMap id="scenic" type="com.ycwl.basic.model.pc.scenic.resp.ScenicRespVO">
<id property="id" column="id"/>

View File

@ -36,7 +36,7 @@
<if test="isBuy!=null">is_buy = #{isBuy}, </if>
<if test="orderId!=null">order_id = #{orderId}, </if>
</set>
where member_id = #{memberId} and source_id = #{sourceId} and type = #{type}
where member_id = #{memberId} and face_id = #{faceId} and type = #{type}
</update>
<delete id="deleteById">
delete from source where id = #{id}

View File

@ -39,7 +39,7 @@
</update>
<update id="updateRelationWhenTaskSuccess">
update member_video
set video_id = #{videoId}
set video_id = #{videoId}, is_buy = #{isBuy}
where task_id = #{taskId}
</update>
<delete id="deleteById">