增加删除功能

This commit is contained in:
wuweihua
2026-10-10 13:52:28 +08:00
parent fab2ec7d9c
commit eeaea52c17
8 changed files with 144 additions and 4 deletions
@@ -171,6 +171,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and (effective_date is null or effective_date < #{newEffectiveDate})
</update>
<update id="reopenExpiredByProductCodeAndExpireDate">
update product_country
set expire_date = null,
update_time = sysdate()
where product_code = #{productCode}
and expire_date = #{expireDate}
</update>
<update id="expireOpenByProductCodeAndCountry">
update product_country
set expire_date = #{newEffectiveDate},
@@ -207,6 +207,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
</update>
<update id="reopenExpiredByProductCodeAndExpireDate">
update product
set expire_date = null,
update_time = sysdate()
where product_code = #{productCode}
and expire_date = #{expireDate}
</update>
<update id="refreshStatusByDates">
update product
set status = case