refactor(module/frozen-sale | mapper/Stock): 仓库状态同步 | 修复业务逻辑错误

增删改查操作时将动态同步仓库中的Item状态
移除了数量计算 (业务无关)
修改了仓储模块的部分 SQL (适配状态同步)
This commit is contained in:
2025-12-27 16:11:58 +08:00
parent 65b3b7c694
commit 5e54877119
7 changed files with 202 additions and 66 deletions

View File

@@ -33,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectDdFsVo"/>
<where>
<if test="code != null and code != ''"> and code like concat('%', #{code}, '%')</if>
<if test="stat != null and stat != ''">and stat = #{stat}</if>
<if test="tech != null and tech != ''"> and tech like concat('%', #{tech}, '%')</if>
<if test="params.beginFreezeDt != null and params.endFreezeDt != null">
and freeze_dt between #{params.beginFreezeDt} and #{params.endFreezeDt}

View File

@@ -138,7 +138,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete id="deleteDdSaleItemBySaleId" parameterType="Long">
delete from dd_sl_item where sale_id = #{saleId}
delete from dd_sl_item where sale_id = #{id}
</delete>
<insert id="batchDdSaleItem">