feat:产品编码已存在

This commit is contained in:
苏竹红
2025-06-24 17:24:21 +08:00
parent c8d2651841
commit 88b6cefffb
5 changed files with 25 additions and 0 deletions

View File

@@ -37,6 +37,15 @@
ORDER BY sort_order DESC
</select>
<select id="queryByProductCode" resultMap="BaseResultMap">
SELECT * FROM xfsg_pre_fried_products and deleted = 0
<where>
<if test="productCode != null and productCode != ''">
AND product_code = #{productCode}
</if>
</where>
</select>
<delete id="batchDelete">
UPDATE xfsg_pre_fried_products
SET deleted = 1,