优化
This commit is contained in:
@@ -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.*,
|
||||
|
||||
Reference in New Issue
Block a user