feat: 增加事由和单据类型过滤条件

This commit is contained in:
2025-01-12 09:51:56 +08:00
parent 26e96fad40
commit 75df9ad402
2 changed files with 10 additions and 0 deletions

View File

@@ -13,6 +13,10 @@ public class WarehouseReportRequest {
private LocalDateTime startTime;
private LocalDateTime endTime;
private String reason;
private String receiptType;
private String code;
private String barCode;

View File

@@ -609,6 +609,12 @@ public class WarehouseReceiptService
</#if>
<#if endTime??>
and re.receipt_date <= :endTime
</#if>
<#if reason??>
and re.reason like '%' || :reason || '%'
</#if>
<#if receiptType??>
and re.receipt_type = :receiptType
</#if>
<#if supplierIds??>