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
+17 -7
View File
@@ -17,6 +17,11 @@ import { TraceCodeStatus } from '@artveris/shared';
import { PaginationDto } from '../../common/dto/pagination.dto';
export class GenerateBatchDto {
@ApiProperty({ description: '所属作品(款)ID' })
@Type(() => Number)
@IsInt()
artworkId!: number;
@ApiProperty({ description: '生成数量', minimum: 1, maximum: 10000 })
@Type(() => Number)
@IsInt()
@@ -38,6 +43,12 @@ export class GenerateBatchDto {
}
export class QueryTraceCodeDto extends PaginationDto {
@ApiPropertyOptional({ description: '作品(款)ID' })
@IsOptional()
@Type(() => Number)
@IsInt()
artworkId?: number;
@ApiPropertyOptional({ description: '批次 ID' })
@IsOptional()
@Type(() => Number)
@@ -105,13 +116,6 @@ export class BatchStatusDto {
abnormal?: boolean;
}
export class BindArtworkDto {
@ApiProperty({ description: '艺术品 ID' })
@Type(() => Number)
@IsInt()
artworkId!: number;
}
export class QueryBatchDto extends PaginationDto {
@ApiPropertyOptional({ description: '关键词(批次编号)' })
@IsOptional()
@@ -125,6 +129,12 @@ export class ExportTraceCodeDto {
@IsIn(['xlsx', 'csv'])
format?: 'xlsx' | 'csv';
@ApiPropertyOptional({ description: '作品(款)ID' })
@IsOptional()
@Type(() => Number)
@IsInt()
artworkId?: number;
@ApiPropertyOptional({ description: '分组 ID' })
@IsOptional()
@Type(() => Number)