refactor: 按甲方确认重构为一款多码(档案编号标识款、批次码、按款统计)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user