feat(wms): 增加库存流水自定义查询功能

- 在 WmsStockLogMapper 中添加 selectVoPagePlus 方法,支持自定义查询条件
- 在 WmsStockLogServiceImpl 中实现自定义查询方法,使用 QueryWrapper 替代 LambdaQueryWrapper
- 在 WmsStockLogVo 中添加 warehouseName 字段,用于显示仓库/库区名称
- 更新 mapper XML 文件,添加自定义查询 SQL 语句
This commit is contained in:
JR
2025-08-11 15:34:19 +08:00
parent f81c99b8bc
commit e1db17435f
4 changed files with 36 additions and 3 deletions

View File

@@ -21,5 +21,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="delFlag" column="del_flag"/>
</resultMap>
<select id="selectVoPagePlus" resultType="com.klp.domain.vo.WmsStockLogVo">
select sl.*, w.warehouse_name
from wms_stock_log sl
left join wms_warehouse w on sl.warehouse_id = w.warehouse_id
${ew.customSqlSegment}
</select>
</mapper>