功能重构开发

This commit is contained in:
2026-01-26 17:01:42 +08:00
parent 268e5f21fa
commit e5926e82fd
6 changed files with 233 additions and 139 deletions

View File

@@ -311,4 +311,11 @@
WHERE id = #{gysJhId}
</update>
<update id="decreaseRealQtyById">
UPDATE gys_jh
SET real_qty = IFNULL(real_qty, 0) - #{rollbackQty}
WHERE id = #{gysJhId}
AND IFNULL(real_qty, 0) >= #{rollbackQty}
</update>
</mapper>