修改套餐规则
This commit is contained in:
@@ -166,6 +166,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
)
|
||||
</delete>
|
||||
|
||||
<update id="softDeleteByPsvId">
|
||||
update prc_surcharge_rel r
|
||||
set r.is_del = '1', r.update_time = sysdate()
|
||||
where ifnull(r.is_del, '0') = '0'
|
||||
and (
|
||||
exists (
|
||||
select 1 from prc_price_set_product p
|
||||
where p.psp_id = r.product_id and p.psv_id = #{psvId}
|
||||
)
|
||||
or exists (
|
||||
select 1 from prc_price_set_detail d
|
||||
where d.psd_id = r.detail_id and d.psv_id = #{psvId}
|
||||
)
|
||||
)
|
||||
</update>
|
||||
|
||||
<!-- 附加费版本化编辑后,产品关联重指向新记录 -->
|
||||
<update id="rebindRelScId">
|
||||
update prc_surcharge_rel
|
||||
|
||||
Reference in New Issue
Block a user