feat(service): 新增Wintopay物流服务并优化订单导出和物流处理 #70
|
|
@ -42,7 +42,7 @@ import DictSeeder from '../db/seeds/dict.seeder';
|
||||||
import CategorySeeder from '../db/seeds/category.seeder';
|
import CategorySeeder from '../db/seeds/category.seeder';
|
||||||
import CategoryAttributeSeeder from '../db/seeds/category_attribute.seeder';
|
import CategoryAttributeSeeder from '../db/seeds/category_attribute.seeder';
|
||||||
import { SiteSku } from '../entity/site-sku.entity';
|
import { SiteSku } from '../entity/site-sku.entity';
|
||||||
import { logisticsAlias } from '../entity/logistics_alias.emtity';
|
import { logisticsAlias } from '../entity/logistics_alias.entity';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
// use for cookie sign key, should change to your own and keep security
|
// use for cookie sign key, should change to your own and keep security
|
||||||
|
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
|
|
||||||
import { ApiProperty } from '@midwayjs/swagger';
|
|
||||||
import { Entity,CreateDateColumn,UpdateDateColumn, PrimaryGeneratedColumn, Column } from 'typeorm';
|
|
||||||
|
|
||||||
@Entity('logistics_alias')
|
|
||||||
export class logisticsAlias {
|
|
||||||
@PrimaryGeneratedColumn()
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
@ApiProperty({ type: 'string' })
|
|
||||||
@Column()
|
|
||||||
logistics_company:string
|
|
||||||
|
|
||||||
@ApiProperty({ type: 'string' })
|
|
||||||
@Column()
|
|
||||||
logistics_alias:string
|
|
||||||
|
|
||||||
@ApiProperty({ type: 'string' })
|
|
||||||
@Column()
|
|
||||||
platform:string
|
|
||||||
|
|
||||||
|
|
||||||
// 是否可删除
|
|
||||||
@Column({ default: true, comment: '是否可删除' })
|
|
||||||
deletable: boolean;
|
|
||||||
// 创建时间
|
|
||||||
@CreateDateColumn()
|
|
||||||
createdAt: Date;
|
|
||||||
|
|
||||||
// 更新时间
|
|
||||||
@UpdateDateColumn()
|
|
||||||
updatedAt: Date;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
|
||||||
|
import { ApiProperty } from '@midwayjs/swagger';
|
||||||
|
import { Entity, CreateDateColumn, UpdateDateColumn, PrimaryGeneratedColumn, Column } from 'typeorm';
|
||||||
|
|
||||||
|
@Entity('logistics_alias')
|
||||||
|
export class logisticsAlias {
|
||||||
|
@PrimaryGeneratedColumn()
|
||||||
|
id: number;
|
||||||
|
|
||||||
|
@ApiProperty({ type: 'string' })
|
||||||
|
@Column()
|
||||||
|
logistics_company: string
|
||||||
|
|
||||||
|
@ApiProperty({ type: 'string' })
|
||||||
|
@Column()
|
||||||
|
logistics_alias: string
|
||||||
|
|
||||||
|
@ApiProperty({ type: 'string' })
|
||||||
|
@Column()
|
||||||
|
platform: string
|
||||||
|
|
||||||
|
|
||||||
|
// 是否可删除
|
||||||
|
@Column({ default: true, comment: '是否可删除' })
|
||||||
|
deletable: boolean;
|
||||||
|
// 创建时间
|
||||||
|
@CreateDateColumn()
|
||||||
|
createdAt: Date;
|
||||||
|
|
||||||
|
// 更新时间
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updatedAt: Date;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -42,7 +42,7 @@ import { UnifiedOrderDTO } from '../dto/site-api.dto';
|
||||||
import { CustomerService } from './customer.service';
|
import { CustomerService } from './customer.service';
|
||||||
import { ProductService } from './product.service';
|
import { ProductService } from './product.service';
|
||||||
import { Site } from '../entity/site.entity';
|
import { Site } from '../entity/site.entity';
|
||||||
import { logisticsAlias } from '../entity/logistics_alias.emtity';
|
import { logisticsAlias } from '../entity/logistics_alias.entity';
|
||||||
@Provide()
|
@Provide()
|
||||||
export class OrderService {
|
export class OrderService {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue