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

@@ -1,8 +1,13 @@
package com.klp.mapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.klp.domain.WmsStock;
import com.klp.domain.WmsStockLog;
import com.klp.domain.vo.WmsStockLogVo;
import com.klp.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
/**
* 库存流水Mapper接口
@@ -12,4 +17,5 @@ import com.klp.common.core.mapper.BaseMapperPlus;
*/
public interface WmsStockLogMapper extends BaseMapperPlus<WmsStockLogMapper, WmsStockLog, WmsStockLogVo> {
Page<WmsStockLogVo> selectVoPagePlus(Page<?> page, @Param("ew") Wrapper<WmsStockLog> wrapper);
}