refactor: 按甲方确认重构为一款多码(档案编号标识款、批次码、按款统计)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nixevol
2026-06-30 12:02:44 +08:00
co-authored by Cursor
parent 67c5887f8f
commit a16e6f1165
34 changed files with 445 additions and 353 deletions
@@ -13,10 +13,10 @@ class QueryLogQueryDto extends PaginationDto {
@IsString()
keyword?: string;
@ApiPropertyOptional({ description: 'SKU' })
@ApiPropertyOptional({ description: '档案编号' })
@IsOptional()
@IsString()
sku?: string;
archiveNo?: string;
@ApiPropertyOptional({ description: '批次编号' })
@IsOptional()
@@ -53,11 +53,10 @@ export class QueryLogController {
where.OR = [
{ shortCode: { contains: query.keyword } },
{ code: { contains: query.keyword } },
{ sku: { contains: query.keyword } },
{ archiveNo: { contains: query.keyword } },
];
}
if (query.sku) where.sku = { contains: query.sku };
if (query.archiveNo) where.archiveNo = { contains: query.archiveNo };
if (query.batchNo) where.batchNo = { contains: query.batchNo };
if (query.result) where.queryResult = query.result;
if (query.startTime || query.endTime) {