价格配置加个状态

This commit is contained in:
2025-04-08 15:05:20 +08:00
parent 692df3a1a2
commit 75eb3732fc
8 changed files with 58 additions and 7 deletions

View File

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