feat(wms): 添加钢卷库区操作记录导出功能以及优化查询速率

- 在服务接口中新增 exportBySecondWarehouseIdAndTimeRange 方法用于导出功能
- 在控制器中新增 exportByWarehouseAndTime 接口支持报表导出
- 在映射器中新增 selectVoListWithJoin 查询方法优化关联查询
- 在 XML 映射文件中新增完整的关联查询 SQL 和结果映射配置
- 在服务实现类中重构查询逻辑使用新的关联查询方法
- 新增 WmsCoilWarehouseOperationLogExportVo 导出数据对象
- 实现导出逻辑将操作记录转换为 Excel 格式并支持多表关联
- 添加状态描述转换方法支持中文显示
- 更新 VO 类继承 BaseEntity 基础实体类
This commit is contained in:
2026-03-24 10:35:57 +08:00
parent 1fc85c990f
commit ad100083ed
7 changed files with 382 additions and 40 deletions

View File

@@ -8,6 +8,7 @@ import com.klp.common.core.domain.PageQuery;
import javax.validation.constraints.NotNull;
import java.util.Collection;
import com.klp.domain.vo.WmsCoilWarehouseOperationLogExportVo;
import java.util.Date;
import java.util.List;
@@ -72,4 +73,16 @@ public interface IWmsCoilWarehouseOperationLogService {
* @return 操作记录列表(含钢卷信息和库区信息)
*/
List<WmsCoilWarehouseOperationLogVo> queryByCoilId(Long coilId, Integer operationType, Integer inOutType, Date startTime, Date endTime);
/**
* 导出钢卷库区操作记录(报表导出)
*
* @param secondWarehouseId 二级库区ID
* @param operationType 操作类型
* @param inOutType 出入库类型
* @param startTime 开始时间
* @param endTime 结束时间
* @return 导出数据列表
*/
List<WmsCoilWarehouseOperationLogExportVo> exportBySecondWarehouseIdAndTimeRange(Long secondWarehouseId, Integer operationType, Integer inOutType, Date startTime, Date endTime);
}