fix(qc): 修复WmsCheckItemMapper.xml中的SQL语法错误

- 更正了foreach循环中的变量引用,将"ids"改为"id"
- 修复了SQL查询中的语法问题,确保IN子句正确解析参数列表
- 调整了XML标签结构,避免不必要的空行影响SQL执行
This commit is contained in:
2025-12-05 17:46:28 +08:00
parent 0e70da1874
commit 1a797a160d

View File

@@ -36,10 +36,11 @@
remark remark
FROM wms_check_item FROM wms_check_item
WHERE item_id IN WHERE item_id IN
<foreach item="ids" collection="list" separator="," close=")" open="(" index=""> <foreach item="id" collection="ids" separator="," close=")" open="(" index="">
#{ids} #{id}
</foreach> </foreach>
</select> </select>
</mapper> </mapper>