|
|
@@ -1,5 +1,5 @@
|
|
|
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, OneToMany, ManyToOne, JoinColumn, Index } from 'typeorm';
|
|
|
-import { OrderPerson } from './order-person.entity';
|
|
|
+import type { OrderPerson } from './order-person.entity';
|
|
|
import { OrderStatus, WorkStatus } from '@d8d/allin-enums';
|
|
|
import { Company } from '@d8d/allin-company-module';
|
|
|
import { Platform } from '@d8d/allin-platform-module';
|
|
|
@@ -109,7 +109,7 @@ export class EmploymentOrder {
|
|
|
updateTime!: Date;
|
|
|
|
|
|
// 关系定义
|
|
|
- @OneToMany(() => OrderPerson, (orderPerson) => orderPerson.order)
|
|
|
+ @OneToMany('OrderPerson', 'order')
|
|
|
orderPersons!: OrderPerson[];
|
|
|
|
|
|
// 关联关系 - 公司
|