This commit is contained in:
zc
2026-04-12 18:28:02 +08:00
parent 371daf2eee
commit e6a12aaeb2
25 changed files with 661 additions and 29 deletions

View File

@@ -77,6 +77,39 @@
</foreach>
</update>
<update id="updateBatchNull">
UPDATE sys_material_info SET batch = null
</update>
<update id="updateBatchByCode">
UPDATE sys_material_info
<trim prefix="SET" suffixOverrides=",">
<if test="list != null and list.size() > 0">
batch = CASE
<foreach collection="list" item="item" separator="">
<if test="item.batch != null and item.batch != ''">
WHEN encoding = #{item.encoding} THEN #{item.batch}
</if>
</foreach>
ELSE batch
END,
update_user = CASE
<foreach collection="list" item="item" separator="">
<if test="item.updateUser != null">
WHEN encoding = #{item.encoding} THEN #{item.updateUser}
</if>
</foreach>
ELSE update_user
END,
update_time = NOW()
</if>
</trim>
WHERE encoding IN
<foreach collection="list" item="item" open="(" close=")" separator=",">
#{item.encoding}
</foreach>
</update>
<select id="selectMaterialInfoPage" resultType="top.wms.admin.material.model.resp.MaterialInfoResp">
SELECT
mi.*,