feat(wms): 添加发货单时间范围查询功能

在基板面板中新增发货单时间范围选择器,并调整后端接口以支持格式化日期参数
This commit is contained in:
砂糖
2026-04-03 14:40:53 +08:00
parent 0d4d7f4235
commit b9da0d6d76
2 changed files with 13 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ package com.klp.controller;
import java.util.List;
import java.util.Arrays;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.klp.domain.vo.WmsMaterialCoilBindVo;
import lombok.RequiredArgsConstructor;
@@ -119,8 +120,8 @@ public class WmsDeliveryWaybillDetailController extends BaseController {
public TableDataInfo<WmsMaterialCoilBindVo> boundCoilList(
WmsMaterialCoilBo bo,
PageQuery pageQuery,
@RequestParam(required = false) Date startTime,
@RequestParam(required = false) Date endTime) {
@RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date startTime,
@RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date endTime) {
List<Long> boundCoilIds;
if (startTime != null || endTime != null) {
boundCoilIds = iWmsDeliveryWaybillDetailService.getBoundCoilIdsByTimeRange(startTime, endTime);