|
|
@@ -9,7 +9,7 @@ export class HetongRenew {
|
|
|
|
|
|
@Column({ name: 'contract_id', type: 'int', unsigned: true })
|
|
|
@ForeignKey(() => Hetong)
|
|
|
- contractId!: string;
|
|
|
+ contractId!: number;
|
|
|
|
|
|
@Column({ name: 'amount', type: 'varchar', length: 50, nullable: true })
|
|
|
amount?: string;
|
|
|
@@ -58,9 +58,9 @@ export const HetongRenewSchema = z.object({
|
|
|
description: '续签记录ID',
|
|
|
example: 'HTR20230001'
|
|
|
}),
|
|
|
- contractId: z.string().max(50).openapi({
|
|
|
+ contractId: z.number().openapi({
|
|
|
description: '原合同ID',
|
|
|
- example: 'HT20230001'
|
|
|
+ example: 12345
|
|
|
}),
|
|
|
amount: z.string().max(50).nullable().openapi({
|
|
|
description: '续签金额',
|
|
|
@@ -113,9 +113,9 @@ export const HetongRenewSchema = z.object({
|
|
|
});
|
|
|
|
|
|
export const CreateHetongRenewDto = z.object({
|
|
|
- contractId: z.coerce.string().max(50).openapi({
|
|
|
+ contractId: z.coerce.number().int().positive().openapi({
|
|
|
description: '原合同ID',
|
|
|
- example: 'HT20230001'
|
|
|
+ example: 12345
|
|
|
}),
|
|
|
amount: z.string().max(50).nullable().optional().openapi({
|
|
|
description: '续签金额',
|
|
|
@@ -156,9 +156,9 @@ export const CreateHetongRenewDto = z.object({
|
|
|
});
|
|
|
|
|
|
export const UpdateHetongRenewDto = z.object({
|
|
|
- contractId: z.string().max(50).optional().openapi({
|
|
|
+ contractId: z.coerce.number().optional().openapi({
|
|
|
description: '原合同ID',
|
|
|
- example: 'HT20230001'
|
|
|
+ example: 12345
|
|
|
}),
|
|
|
amount: z.string().max(50).nullable().optional().openapi({
|
|
|
description: '续签金额',
|