You've already forked FrameTour-BE
价格配置加个状态
This commit is contained in:
@@ -22,6 +22,12 @@
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<update id="updateStatus">
|
||||
update price_config
|
||||
set `status` = IF(`status` = 0, 1, 0),
|
||||
update_time = now()
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteById">
|
||||
delete from price_config where id = #{id}
|
||||
@@ -51,7 +57,7 @@
|
||||
<select id="getPriceByScenicTypeGoods" resultType="com.ycwl.basic.model.pc.price.entity.PriceConfigEntity">
|
||||
select * from price_config
|
||||
where scenic_id = #{scenicId}
|
||||
and type = #{type}
|
||||
and type = #{type} and status = 1
|
||||
<if test="goodsId != null and goodsId != ''">
|
||||
and goods_ids like concat('%', #{goodsId}, '%')
|
||||
</if>
|
||||
|
Reference in New Issue
Block a user